Azure / bicep-types-az

Bicep type definitions for ARM resources
MIT License
86 stars 27 forks source link

[Microsoft.Network/BastionHosts]: `dnsName` property should be read-only #1348

Open ehanlon opened 1 year ago

ehanlon commented 1 year ago

Resource Type

Microsoft.Network/BastionHosts

Api Version

2022-07-01

Issue Type

Property(s) should be marked as read-only/write-only

Other Notes

Modifications are displayed in What-if output - however it is a no-op during deploy:

Resource and property changes are indicated with these symbols:
  - Delete
  ~ Modify
  = Nochange
  * Ignore

The deployment will update the following scope:

Scope: /subscriptions/<subscription.id>/resourceGroups/<resourceGroup.name>

  ~ Microsoft.Network/bastionHosts/myvnet-bastion [2022-07-01]
    - properties.dnsName: "bst-<GUID>.bastion.azure.com"

Bicep Repro

resource bastion 'Microsoft.Network/bastionHosts@2022-07-01' = {
  name: 'test-bastion'
  location: location
  sku: {
    name: 'Standard'
  }
  properties: {
    dnsName: 'mycustomfqdn.bastion.azure.com'
    ipConfigurations: [
      {
        id: ipconfigId
        properties: {
          subnet: {
            id: vnetSubnetId
          }
        }
      }
    ]
  }
}

Confirm

ghost commented 1 year 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.

Issue Details
### Resource Type Microsoft.Network/BastionHosts ### Api Version 2022-07-01 ### Issue Type Property(s) should be marked as read-only/write-only ### Other Notes Modifications are displayed in What-if output - however it is a no-op during deploy: ```pwsh Resource and property changes are indicated with these symbols: - Delete ~ Modify = Nochange * Ignore The deployment will update the following scope: Scope: /subscriptions//resourceGroups/ ~ Microsoft.Network/bastionHosts/myvnet-bastion [2022-07-01] - properties.dnsName: "bst-.bastion.azure.com" ``` ### Bicep Repro ```bastion resource bastion 'Microsoft.Network/bastionHosts@2022-07-01' = { name: 'test-bastion' location: location sku: { name: 'Standard' } properties: { dnsName: 'mycustomfqdn.bastion.azure.com' ipConfigurations: [ { id: ipconfigId properties: { subnet: { id: vnetSubnetId } } } ] } } ``` ### Confirm - [X] I have searched this repository and have not found similar issue reports.
Author: ehanlon
Assignees: -
Labels: `inaccuracy`, `RP: Microsoft.Network`, `Service Attention`, `Network - Bastion`
Milestone: -