Azure-Samples / Azure-Samples/aks-store-demo

Bicep deploy fails: AVM AKS module 0.9.0 uses a retired API version

Open Beginner friendly
#397 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
308
Forks
814
Avg merge
1d 17h
Merged PRs (30d)
1

Description

`infra/bicep/kubernetes.bicep` line 15 pins:

```bicep
module managedCluster 'br/public:avm/res/container-service/managed-cluster:0.9.0' = {
```

That version uses AKS API `2024-09-02-preview`, which Azure [retired on July 1, 2026](https://learn.microsoft.com/azure/aks/concepts-preview-api-life-cycle). So `azd up` now fails:

```
NoRegisteredProviderFound: No registered resource provider found for location 'westus3'
and API version '2024-09-02-preview' for type 'managedClusters'.
```

It names a region, but it's not region-specific, I tried using `westus3`, `eastus2`, and `swedencentral`.

**Fix:** bump the module to `0.14.0`, which uses the GA API `2025-10-01`. (`0.11.1` also works but is using another preview that'll expire someday.)

Contributor guide

Open the contributing guide

Research direction

Open infra/bicep/kubernetes.bicep and inspect the module reference on line 15. Run azd up after updating the AVM AKS module version; done means deployment succeeds without the retired 2024-09-02-preview API error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
92/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.