resource "azurerm_public_ip" "${MyResource}" {
         name = "acceptanceTestPublicIp1"
         resource_group_name = "\${azurerm_resource_group.test.name}"
         public_ip_address_allocation = "static"
         location = "West US"
      }
      Terraform language logo

      azurerm_public_ip

      0

      0

      avatar
      lucycodes42
      Terraform snippets

      The code specifies an Azure resource named "acceptanceTestPublicIp1." The resource has a name, a resource group name, a public IP allocation, and a location. The code also specifies a resource parameter named "resource_group_name." The resource group name is used to group resources together. The code assigns the public IP address allocation to the resource group name and sets the location to West US.

      Shortcut: tf_azurerm_public_ip

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.