Home > Mobile >  What should be the value of the sku field when creating Azure NAT Gateway?
What should be the value of the sku field when creating Azure NAT Gateway?

Time:04-29

I want to create a NAT gateway and there is a parameter called SKU is there in the list of parameters. Here is the code for the same

$nat = @{
        ResourceGroupName = $coreResourceGroupName
        Name = $natGatewayName
        Sku = 'Standard'
        Location = $location
        PublicIpAddress = $publicIP
    }
$natGateway = New-AzNatGateway @nat

Now I am wondering whether I can give 'Premium' in place of 'Standard' for the Sku field. I have googled and seen multiple examples, but everywhere I see they are using 'Standard' only.

So what are the acceptable values of the paramenter 'Sku' while creating NAT gateway?

CodePudding user response:

So what are the acceptable values of the paramenter _**'Sku'**_ while creating NAT gateway?

Yes, NAT is only compatible with standard SKU public IP, public IP prefix, and load balancer resources. It is not supported to work with basic and other SKU's.

You can refer this MSFT-Document for limitations.

CodePudding user response:

As mentioned by Rajkumar Mamidi, NAT currently supports standard SKU only and it don't support other SKUs like Basic or Premium.

Here is a terraform doc which is basically a wrapper on Azure Powershell that supports the above argument.

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/nat_gateway

  • Related