Open ld0614 opened 3 months ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @bastionsuppgithub.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @bastionsuppgithub.
@ld0614 I ran into this same issue, and found your GH issue here. If you're still experiencing this, I was able to work around it by just not providing the -Sku
parameter. Its value is Basic by default, if not provided, according to this learn article.
Obviously not proposing it as a permanent solution, but seems to have worked for me!
Thanks @tbisque it's most appreciated!
@ld0614, I spoke too soon. Omitting the -Sku
parameter created a standard tier bastion (in Azure US Government at least) :(
Description
When running the command
New-AzBastion -ResourceGroupName $VNetRG -Name "$VNetName-bastion" -PublicIpAddressRgName $ResourceGroupName -PublicIpAddressName $BastionPIPName -VirtualNetworkRgName $VNetRG -VirtualNetworkName $VNetName -Sku "Basic"
I get the error
As you can see from the above the -Sku is set to Basic and I am not explicitly setting the -ScaleUnit parameter which suggests that a default value is being included somewhere or validation can't handle $null correctly.
I've tried setting -ScaleUnit to 0 and $null without any change in the error message
Happy to provide more info/logs if relevant
Issue script & Debug output
Environment data
Module versions
Error output