Upgrade azure VM basic SKU to standard using terraform

Reshma Nair 20 Reputation points

I am performing the task of upgrading the azure VM public ip SKU from basic to standard using terraform code. My plan is

  1. Disassociate nic from UI
  2. Include sku = "Standard" in my existing terraform VM code (IP allocation is static and is not specified to any zones)

I executed terraform plan but didn't find this particular change.

I am a complete beginner. Can anyone suggest whether this will work? Any help will be appreciated. Thanks in advance.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,228 questions
0 comments No comments
{count} votes

Accepted answer
  1. risolis 8,151 Reputation points

    Hello @Reshma Nair

    Thank you for posting this concern on this community.

    I wonder if you have tried to verify this change in this way shown below:

    az network public-ip show \
      --resource-group myResourceGroup \
      --name myBasicPublicIP \
      --query sku \
      --output tsv

    I hope that can be useful for you.

    Looking forward to hearing from you


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful