ResourceModules icon indicating copy to clipboard operation
ResourceModules copied to clipboard

[Bug Report]: Microsoft.Network/vpnGateways/connections] `ConnectionBandwidth` property has been deprecated

Open chris5287 opened this issue 2 years ago • 1 comments

Describe the bug

It appears the ConnectionBandwidth property has been deprecated, but the ARM docs haven't been updated here: https://docs.microsoft.com/en-us/azure/templates/microsoft.network/vpngateways/vpnconnections?tabs=bicep#vpnconnectionproperties

This means deployments fail and there is no way to use the module as it has a default value in the bicep file :(

To reproduce

https://github.com/Azure/ResourceModules/blob/80c29bd5fef1d522354b801b6bb59106e74ad67c/modules/Microsoft.Network/vpnGateways/connections/deploy.bicep#L38

https://github.com/Azure/ResourceModules/blob/80c29bd5fef1d522354b801b6bb59106e74ad67c/modules/Microsoft.Network/vpnGateways/connections/deploy.bicep#L76

Code snippet

module vpnc 'main/modules/Microsoft.Network/vpnGateways/connections/deploy.bicep' = {
  name: '${deployment().name}_vpnc'
  params: {
    name: 'vpnGatewayConnection'
    vpnGatewayName: 'vpnGateway'
    remoteVpnSiteResourceId: 'remoteVpnSiteResourceId'
    vpnLinkConnections: [...]
  }
}

Relevant log output

{
    "status": "Failed",
    "error": {
        "code": "VpnConnectionPropertyIsDeprecated",
        "message": "Update request for VpnConnection /subscriptions/....../resourceGroups/..../providers/Microsoft.Network/vpnGateways/..../vpnConnections/.... contains deprecated property ConnectionBandwidth. Please use corresponding VpnSiteLinkConnection property instead.",
        "details": []
    }
}

chris5287 avatar Jul 06 '22 20:07 chris5287

I will investigate this bug

krbar avatar Aug 08 '22 21:08 krbar

@chris5287 I'm having trouble reproducing the issue. The module deployment using module pipeline worked for me, also changing the "ConnectionBandwidth" property was successful. Can you please share more details, which could help me to reproduce the issue? For example: In which region are you deploying, are you using the latest version of the modules?

krbar avatar Aug 16 '22 16:08 krbar

I was using 0.6.0 deploying into the uksouth and canadacentral regions

chris5287 avatar Aug 16 '22 17:08 chris5287