Check for previous/existing GitHub issues
Issue Type?
Bug
Module Name
avm/res/network/virtual-network-gateway
(Optional) Module Version
0.11.1
Description
A Basic SKU VPN gateway fails deployment with:
"details": [
{
"code": "PublicIpWithBasicSkuNotAllowedOnVPNGatewaysBasicSku",
"message": "Basic SKU VPN Gateway is not allowed with Basic IP Address. Please use Standard IP with Basic SKU VPN GW. Follow the link for more details : https://go.microsoft.com/fwlink/p/?linkid=2241350 /subscriptions/000-000-000-000-000/resourceGroups/rg-hub-networking-uksouth/providers/Microsoft.Network/virtualNetworkGateways/vgw-hub-uksouth",
"details": []
}
This was fixed here: #1435
Then regressed here: #1722
The offending line looks to be:
skuName: skuName == 'Basic' ? 'Basic' : 'Standard'
https://github.com/Azure/bicep-registry-modules/blob/main/avm/res/network/virtual-network-gateway/main.bicep#L546C16-L546C57
Basic SKU IPs have been retired, so the skuName for the public IP should be Standard in all cases i think.
https://azure.microsoft.com/en-gb/updates?id=upgrade-to-standard-sku-public-ip-addresses-in-azure-by-30-september-2025-basic-sku-will-be-retired
(Optional) Correlation Id
No response
Check for previous/existing GitHub issues
Issue Type?
Bug
Module Name
avm/res/network/virtual-network-gateway
(Optional) Module Version
0.11.1
Description
A Basic SKU VPN gateway fails deployment with:
This was fixed here: #1435
Then regressed here: #1722
The offending line looks to be:
https://github.com/Azure/bicep-registry-modules/blob/main/avm/res/network/virtual-network-gateway/main.bicep#L546C16-L546C57
Basic SKU IPs have been retired, so the
skuNamefor the public IP should beStandardin all cases i think.https://azure.microsoft.com/en-gb/updates?id=upgrade-to-standard-sku-public-ip-addresses-in-azure-by-30-september-2025-basic-sku-will-be-retired
(Optional) Correlation Id
No response