azure-stack-docs icon indicating copy to clipboard operation
azure-stack-docs copied to clipboard

Missing Azure Kubernetes Mapping and Failed to resolve the extension version from the given values.

Open Remigijus-D opened this issue 3 years ago • 5 comments

Hello,

This is a few errors I get when I try to follow this manual:

az k8s-extension create --cluster-type appliances --cluster-name $resource_name --resource-group $resource_group --name hci-vmoperator --extension-type Microsoft.AZStackHCI.Operator --scope cluster --release-namespace helm-operator2 --configuration-settings Microsoft.CustomLocation.ServiceAccount=hci-vmoperator --configuration-protected-settings-file $csv_path\ResourceBridge\hci-config.json --configuration-settings HCIClusterID=$hciClusterId --auto-upgrade true

(ExtensionOperationFailed) The extension operation failed with the following error: Failed to resolve the extension version from the given values. Code: ExtensionOperationFailed Message: The extension operation failed with the following error: Failed to resolve the extension version from the given values.

For the above I used workaround to provide --version '1.2.3' and it worked.


az azurestackhci virtualnetwork create --subscription $subscription --resource-group $resource_group --extended-location name="/subscriptions/$subscription/resourceGroups/$resource_group/providers/Microsoft.ExtendedLocation/customLocations/$customloc_name" type="CustomLocation" --location $Location --network-type "Transparent" --name $vnetName

Command group 'azurestackhci' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus

MissingAzureKubernetesMapping: The custom location '/subscriptions/sub-id/resourceGroups/AzureStackHCI/providers/Microsoft.ExtendedLocation/customLocations/cl-name' does not support resource type 'Microsoft.AzureStackHCI/virtualnetworks' with api-version '2021-09-01-preview'. The currently enabled api-versions for the resource type 'Microsoft.AzureStackHCI/virtualnetworks' are [2020-11-01-preview,2021-07-01-preview]. Please select one of the enabled api-versions for this version of the 'Microsoft.AzureStackHCI' cluster extension.

Please help :/


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Remigijus-D avatar Sep 06 '22 10:09 Remigijus-D