Share via

Upgrade azure VM basic SKU to standard using terraform

Reshma Nair 140 Reputation points
2023-05-25T13:59:59.1766667+00:00

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.

0 comments No comments
{count} votes

Answer accepted by question author
  1. risolis 8,806 Reputation points
    2023-05-26T05:15:35.78+00:00

    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

    Cheers,

    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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.