Azure / bicep

Bicep is a declarative language for describing and deploying Azure resources
MIT License
3.21k stars 746 forks source link

Public IP Sku for NatGW validated but failed deploy #5914

Open jmschafferer opened 2 years ago

jmschafferer commented 2 years ago

2.198.0 Azure CLI task from public Azure DevOps agent.

Describe the bug Referencing the ID of a Public IP without a Sku specified to a NAT Gateway resource passes validation, but deployment fails due to Basic Sku as default on the Public IP.

To Reproduce Create Public IP Resource without a sku specified and reference it's ID on Nat Gateway resource. az deployment group validate (passes) az deployment group create (fails due to basic license on the public IP) Additional context Both the public ip and the Nat Gateway is created using 'for', not sure if that messes the referencing up. main-bicep.txt

alex-frankel commented 2 years ago

This would be a bug in the Network RPs handling of the validation request. There is not anything we can do on the bicep side.