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

Microsoft.Network/p2svpnGateways Ability to set configurationPolicyGroupAssociations #2379

Open
1 task done
mafiheron opened this issue Nov 29, 2024 · 0 comments
Open
1 task done

Comments

@mafiheron
Copy link

Resource Type

Microsoft.Network/p2svpnGateways

Api Version

2024-03-01

Issue Type

Property(s) inaccurately marked read-only/write-only

Other Notes

I have found no way of associating a configurationPolicyGroup with a p2SConnectionConfigurations because the configurationPolicyGroupAssociations is marked as read-only. The only way around this i have found is to suppress the warning

Bicep Repro

var test = vpnServerConfig.properties.configurationPolicyGroups[0].id
var test2 = vpnServerConfig.properties.configurationPolicyGroups[1].id

resource vpnGateway 'Microsoft.Network/p2svpnGateways@2024-03-01' = {
  name: 'p2s-${resourceSuffix}'
  location: location
  properties: {
    virtualHub: {
      id: hubId
    }
    p2SConnectionConfigurations: [
      {
        id: test
        name: 'P2SConfig'
        properties: {
          vpnClientAddressPool: {
            addressPrefixes: [
              '10.16.0.0/28'
            ]
          }
          configurationPolicyGroupAssociations: [{
            id: test
          }
          {
            id: test2
          }]
        }
      }
    ]
    vpnGatewayScaleUnit: 1
    vpnServerConfiguration: {
      id: vpnServerConfig.id
    }
  }
}

Confirm

  • I have read the troubleshooting guide and looked for duplicates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant