Azure / Azure/bicep-registry-modules

[AVM Module Issue]: 0.5.1~0.8.3 incompatible with BYO vnet PodSubnetID `container-service/managed-cluster`

Open
#3,860 11 comments 0 reactions 1 assignee Assigned to @JPEasier View on GitHub
Class: Resource Module :package: Status: In PR :point_right: Type: AVM :a: :v: :m: Type: Bug :bug:
Dominant language
Bicep
Stars
736
Forks
564
Avg merge
3d 15h
Merged PRs (30d)
30

Description

### Check for previous/existing GitHub issues

- [x] I have checked for previous/existing GitHub issues

### Issue Type?

Bug

### Module Name

avm/res/container-service/managed-cluster

### (Optional) Module Version

0.5.1

### Description

0.8.3 ❌ braking change is still included
0.5.1 ❌ introduced a braking change when used with BYO vnet "PodSubnetID"
0.5.0 ✅ worked fine previously

```
primaryAgentPoolProfiles: [
{
vnetSubnetResourceId: aksSystemNodeSubnet.id
podSubnetResourceId: aksSystemPodSubnet.id
// other config omitted..
}
]
agentPools: [
{
vnetSubnetResourceId: aksUserNodeSubnet.id
podSubnetResourceId: aksUserPodSubnet.id
// other config omitted..
}
]

networkDataplane: 'cilium'
networkPlugin: 'azure'
networkPluginMode: null
```

which results with the following error:
```
Preflight validation check for resource(s) for container service myakscluster in resource group myresourcegroup failed.
Message: NetworkPluginMode overlay cannot be used with PodSubnetID.
Details: (Code: BadRequest)
```

### (Optional) Correlation Id

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.