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 configurationPolicyGroupAssociations incorectly marked as readonly #2348

Open
1 task done
sandorhofman opened this issue Nov 13, 2024 · 0 comments

Comments

@sandorhofman
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 just deployed a p2sVPNGateway with 4 p2SConnectionConfigurations. The property configurationPolicyGroupAssociations fo the p2SConnectionConfiguration is marked as readOnly - but i was able to configure the group assocatiation nonetheless.

The issue relates to Azure/azure-rest-api-specs#28431 where it is not solved yet.

Bicep Repro

resource resVpnServer 'Microsoft.Network/p2svpnGateways@2024-03-01' = [
for (hub, i) in parVirtualWanHubs: if ((parVirtualHubEnabled) && (hub.parVpnGatewayEnabled)) {
name: '${parVpnServerName}-${hub.parHubLocation}'
location: hub.parHubLocation
tags: parTags
properties: {
customDnsServers: parVpnServerDnsServers
isRoutingPreferenceInternet: false
p2SConnectionConfigurations: [
for config in parVpnServerP2SConnectionConfigurations: {
name: config.name
properties: {
vpnClientAddressPool: {
addressPrefixes: config.addressPrefixes
}
configurationPolicyGroupAssociations: [
{
id: '${resVpnServerConfiguration.id}/configurationPolicyGroups/${config.name}'
}
]
}
}
]
virtualHub: {
id: resVhub[i].id
}
vpnGatewayScaleUnit: 1
vpnServerConfiguration: {
id: resVpnServerConfiguration.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