orange-whale-70892
02/10/2022, 4:10 PM'@pulumi/azure-native/containerinstance/v20211001/index.js'
now and got the subnetIds
property, but when I add the subnetIds
to the containergroup:
const myAppApp = new containerinstance.ContainerGroup('gpu-containergroup', {
osType: 'linux'
, restartPolicy: containerinstance.ContainerGroupRestartPolicy.Never // [TODO] change
, resourceGroupName: resourceGroup.name
,subnetIds:[{
id:backendSubnetId
,name:'backend-subnet'
}]
, ipAddress: {
ports: [{ port: 6000, protocol: 'tcp' }]
, type: 'private'
}
, containers: [{
name: "myApp",
image: myAppImage.imageName,
resources: {
requests: {
cpu: 1.0
, memoryInGB: 1.5
, gpu: {
count: 1
, sku: "K80"
}
}
},
ports:[{port:6000,protocol: 'tcp'}]
}]
, ...
}, {})
I get the following error:error: autorest/azure: Service returned an error. Status=<nil> Code="ServiceUnavailable" Message="The requested resource is not available in the location 'westeurope' at this moment. Please retry with a different resource request or in another location. Resource requested: '1' CPU '1.5' GB memory 'Linux' OS '1' 'K80' GPU virtual network"