1
resposta

Erro ao criar VM nessa aula

adriano@Azure:~$ az vm create -n MyVm1 -g labazcli --image UbuntuLTS --generate-ssh-keys

It is recommended to use parameter "--public-ip-sku Standard" to create new VM with Standard public IP. Please note that the default public IP used for VM creation will be changed from Basic to Standard in the future.

{"error":{"code":"InvalidTemplateDeployment","message":"The template deployment failed with error: 'The resource with id: '/subscriptions/1bc80011-704a-476e-b34b-cd89c74ddc46/resourceGroups/labazcli/providers/Microsoft.Compute/virtualMachines/MyVm1' failed validation with message: 'The requested size for resource '/subscriptions/1bc80011-704a-476e-b34b-cd89c74ddc46/resourceGroups/labazcli/providers/Microsoft.Compute/virtualMachines/MyVm1' is currently not available in location 'eastus' zones '' for subscription '1bc80011-704a-476e-b34b-cd89c74ddc46'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details.'.'."}}

1 resposta

Existe esse troubleshooting na documentação relatando este erro https://docs.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/error-sku-not-available?tabs=azure-cli.

Consegui resolver executando os seguintes passos: 1) Rodei o script para verificar onde tem VM disponível

az vm list-skus  --size Standard_D --all --output table

2) Criei um novo resource group em uma região com VM disponível 3) Rodei o script de criação de VM

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software