Azure / bicep-types-az

Bicep type definitions for ARM resources
MIT License
80 stars 26 forks source link

Bastion: Deploying Bastion with Developer Sku using Bicep #1979

Open vnnyjr opened 7 months ago

vnnyjr commented 7 months ago

Resource Type

Microsoft.Network/bastionHosts

Api Version

2023-04-01

Issue Type

Missing property(s)

Other Notes

trying to deploy bastion dev sku using bicep

resource bastion 'Microsoft.Network/bastionHosts@2023-04-01' = {
  name: 'name'
  location: location
  sku: {
    name: 'Developer'
  }
}

but it keeps throwing up this error:

{
  "code": "BastionHostVnetIdNotProvided",
  "message": "Virtual Network Id is a mandatory field for Developer BastionHost SKU.",
  "details": []
}

so i try

resource bastion 'Microsoft.Network/bastionHosts@2023-04-01' = {
  name: '${prefix}${currentTime}'
  location: location
  sku: {
    name: 'Developer'
  }
  virtualnetwork: {
    id: vnet.id 
  }

but it says: The property "virtualNetwork" is not allowed on objects of type "Microsoft.Network/bastionHosts". Permissible properties include "asserts", "dependsOn", "properties", "tags". If this is an inaccuracy in the documentation, please report it to the Bicep Team.bicephttps://aka.ms/bicep-type-issues

Bicep Repro

No response

Confirm

microsoft-github-policy-service[bot] commented 4 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @bastionsuppgithub. Please see https://aka.ms/biceptypesinfo for troubleshooting help.