Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Noise in WhatIf Microsoft.Network/privateEndpoints/privateDnsZoneGroups : etag, provisioningState, id #363

Open
dj-r1 opened this issue May 13, 2024 · 0 comments

Comments

@dj-r1
Copy link

dj-r1 commented May 13, 2024

Describe the noise

Resource type
Microsoft.Network/privateEndpoints/privateDnsZoneGroups

apiVersion
2023-11-01, 2023-09-01, 2023-04-01

Client (PowerShell, Azure CLI, or API)
PowerShell

Relevant Bicep code

resource privateDNSZoneGroup 'Microsoft.Network/privateEndpoints/privateDnsZoneGroups@2023-09-01' = {
  name: 'RESOURCENAME-pe/default'
  properties: {
    privateDnsZoneConfigs: [
      {
        name: RESOURCENAME
        properties: {
          privateDnsZoneId: resourceId(0000bb0-000b-0bb0-0000-bb00b0b0b00, MY_RESOURCE_GROUPNAME,'Microsoft.Network/privateDnsZones',NAME1-NAME2)
        }
      }
    ]
  }
  dependsOn: [
    privateEndpoint
  ]
}

Expected response

{
  "apiVersion": "2023-09-01",
  "id": "/subscriptions/0000bb0-000b-0bb0-0000-bb00b0b0b00/resourceGroups/MY_RESOURCE_GROUPNAME/providers/Microsoft.Network/privateEndpoints/RESOURCENAME-PE/privateDnsZoneGroups/default",
  "name": "default",
  "properties": {
    "privateDnsZoneConfigs": [
      {
        "name": "NAME1-NAME2-io",
        "properties": {
          "privateDnsZoneId": "/subscriptions/0000bb0-000b-0bb0-0000-bb00b0b0b00/resourceGroups/MY_RESOURCE_GROUPNAME/providers/Microsoft.Network/privateDnsZones/NAME1-NAME2-io"
        },
        "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups/privateDnsZoneConfigs"
      }
    ]
  }
}

Current (noisy) response

{
  "apiVersion": "2023-09-01",
  "id": "/subscriptions/0000bb0-000b-0bb0-0000-bb00b0b0b00/resourceGroups/MY_RESOURCE_GROUPNAME/providers/Microsoft.Network/privateEndpoints/RESOURCENAME-PE/privateDnsZoneGroups/default",
  "name": "default",
  "properties": {
    "privateDnsZoneConfigs": [
      {
        "etag": "W/\"000aa000-0000-0a00-00a0-aa0000a000a0\"",
        "id": "/subscriptions/0000bb0-000b-0bb0-0000-bb00b0b0b00/resourceGroups/MY_RESOURCE_GROUPNAME/providers/Microsoft.Network/privateEndpoints/RESOURCENAME-PE/privateDnsZoneGroups/default/privateDnsZoneConfigs/NAME1-NAME2-io",
        "name": "NAME1-NAME2-io",
        "properties": {
          "privateDnsZoneId": "/subscriptions/0000bb0-000b-0bb0-0000-bb00b0b0b00/resourceGroups/MY_RESOURCE_GROUPNAME/providers/Microsoft.Network/privateDnsZones/NAME1-NAME2-io",
          "provisioningState": "Succeeded"
        },
        "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups/privateDnsZoneConfigs"
      }
    ]
  }
}

Additional context
WhatIf should not output parameters like etag or provisioningState.
Noisy parameters:

  • properties.privateDnsZoneConfigs[0].etag
  • properties.privateDnsZoneConfigs[0].id
  • properties.privateDnsZoneConfigs[0].properties.provisioningState
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant