Azure / Azure/azure-cli-extensions

MissingAzureKubernetesMapping: does not support resource type with api-version 2025-04-01-preview

Open
#8,705 3 comments 0 reactions 0 assignees View on GitHub
Auto-Assign bug Connected Kubernetes customer-reported Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### Describe the bug

It seems like "stack-hci-vm": "1.8.1" isn't compatible with: "customlocation": "0.1.4".

### Related command

az stack-hci-vm update

### Errors

(MissingAzureKubernetesMapping) The custom location '/subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.ExtendedLocation/customLocations/xxxx' does not support resource type 'Microsoft.AzureStackHCI/virtualMachineInstances' with api-version '2025-04-01-preview'.

### Issue script & Debug output

az_command_data_logger: command args: stack-hci-vm update --name {} --resource-group {} --enable-vm-config-agent {} --debug
......
az_command_data_logger: extension name: stack-hci-vm
az_command_data_logger: extension version: 1.8.1
.....

cli.azure.cli.core.sdk.policies: {"error":{"code":"MissingAzureKubernetesMapping","message":"The custom location '/subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.ExtendedLocation/customLocations/xxxx' does not support resource type 'Microsoft.AzureStackHCI/virtualMachineInstances' with api-version '2025-04-01-preview'. The currently enabled api-versions for the resource type 'Microsoft.AzureStackHCI/virtualMachineInstances' are [2020-11-01-preview,2021-07-01-preview,2021-09-01-preview,2022-12-15-preview,2023-07-01-preview,2023-09-01-preview,2024-01-15-preview,2024-01-01,2024-02-01-preview,2024-05-01-preview,2024-08-01-preview,2024-10-01-preview]. Please select one of the enabled api-versions for this version of the 'Microsoft.AzureStackHCI' cluster extension."}}

### Expected behavior

N/A

### Environment Summary

Azure Local

{
"azure-cli": "2.71.0",
"azure-cli-core": "2.71.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"arcappliance": "1.3.1",
"connectedk8s": "1.10.7",
"customlocation": "0.1.4",
"k8s-extension": "1.6.4",
"stack-hci-vm": "1.8.1"
}
}

### Additional context

Set up Kubernetes cluster through Azure Local (Azure Portal), tried to enable the: "Application services extension (Preview)". That deployment failed, then I tried: "Enable guest management for migrated VMs (preview)" i.e az stack-hci-vm update command and received the error.

Found the mentioned issue: https://github.com/Azure/azure-cli-extensions/issues/5326 and decided to report it.

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.