Azure / Azure/bicep-types-az

Microsoft.Network/p2svpnGateways Ability to set configurationPolicyGroupAssociations

Open
#2,379 2 comments 1 reaction 0 assignees View on GitHub
inaccuracy
Dominant language
TypeScript
Stars
108
Forks
44
Avg merge
18h 53m
Merged PRs (30d)
29

Description

### 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

- [x] I have read the troubleshooting guide and looked for duplicates.

Contributor guide

No contributing guide indexed for this repository

Research direction

Use the Microsoft.Network/p2svpnGateways@2024-03-01 resource definition as the entry point, focusing on p2SConnectionConfigurations.configurationPolicyGroupAssociations. Compare its declared mutability with the Bicep repro, then verify that associations can be specified without a read-only warning; the issue mentions no file or test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, typescript
Domain
cloud, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.