You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems the input parameter for virtualNetworkGateways module is not tailored for accepting all ExpressRoute gateway sku names. When I am authoring a main Bicep file referencing the virtualNetworkGateways module, I want to send a sku as a parameter.
Error message when authoring this in VSCode:
The property "virtualNetworkGatewaySku" expected a value of type "'Basic' | 'ErGw1AZ' | 'ErGw2AZ' | 'ErGw3AZ' | 'VpnGw1' | 'VpnGw1AZ' | 'VpnGw2' | 'VpnGw2AZ' | 'VpnGw3' | 'VpnGw3AZ'" but the provided value is of type "'ErGw1AZ' | 'ErGw2AZ' | 'ErGw3AZ' | 'HighPerformance' | 'Standard' | 'UltraPerformance'".bicep(BCP036)
Steps to reproduce
Create a main bicep file referencing virtualNetworkGateways module.
Create a parameter input 'gatewaySku' to this main bicep file with validation as noted above.
Use the parameter 'gatewaySku' for configuring virtualNetworkGatewaySku in params for the module.
Screenshots
Suggested solution
Update validation for module virtualNetworkGatewaySku with these skus:
@description('Required. The Sku of the Gateway.')
@allowed([
'Basic''VpnGw1''VpnGw2''VpnGw3''VpnGw1AZ''VpnGw2AZ''VpnGw3AZ''Standard''HighPerformance''UltraPerformance''ErGw1AZ''ErGw2AZ''ErGw3AZ'
])
paramvirtualNetworkGatewaySkustring
This solution is deployed locally, and seems to work.
The text was updated successfully, but these errors were encountered:
Description
It seems the input parameter for virtualNetworkGateways module is not tailored for accepting all ExpressRoute gateway sku names. When I am authoring a main Bicep file referencing the virtualNetworkGateways module, I want to send a sku as a parameter.
Error message when authoring this in VSCode:
The property "virtualNetworkGatewaySku" expected a value of type "'Basic' | 'ErGw1AZ' | 'ErGw2AZ' | 'ErGw3AZ' | 'VpnGw1' | 'VpnGw1AZ' | 'VpnGw2' | 'VpnGw2AZ' | 'VpnGw3' | 'VpnGw3AZ'" but the provided value is of type "'ErGw1AZ' | 'ErGw2AZ' | 'ErGw3AZ' | 'HighPerformance' | 'Standard' | 'UltraPerformance'".bicep(BCP036)
Steps to reproduce
Screenshots
Suggested solution
Update validation for module virtualNetworkGatewaySku with these skus:
This solution is deployed locally, and seems to work.
The text was updated successfully, but these errors were encountered: