azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Set-AzApiManagement: Unrecognized Sku 'StandardV2'

Open austinlee0527 opened this issue 1 month ago • 3 comments

Description

I attempted to update the Standard V2 APIM using the Set-AzApiManagement cmdlet but encountered the error: ‘Set-AzApiManagement: Unrecognized Sku StandardV2’. Upon reviewing the code, I noticed that the V2 tiers are not included in the MapSku method. https://github.com/Azure/azure-powershell/blob/main/src/ApiManagement/ApiManagement/Helpers/Mappers.cs#L76

Issue script & Debug output

$apimServiceInstance = Get-AzApiManagement -ResourceGroupName $resourceGroupName -Name $apimServiceName
Set-AzApiManagement -InputObject $apimServiceInstance

Environment data

Name                           Value
----                           -----
PSVersion                      7.5.4
PSEdition                      Core
GitCommitId                    7.5.4
OS                             Microsoft Azure Linux 3.0
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     5.3.0                 Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script     10.5.0                Az.Compute                          {Add-AzGalleryInVMAccessControlProfileVersionRulesIdentity, Add-AzGalleryInVMAccessControlProfileVersionRulesPrivilege, Add-AzGaller…
Script     7.23.0                Az.Network                          {Add-AzApplicationGatewayAuthenticationCertificate, Add-AzApplicationGatewayBackendAddressPool, Add-AzApplicationGatewayBackendHttpS…
Script     8.1.1                 Az.Resources                        {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment…}
Script     9.3.0                 Az.Storage                          {Add-AzRmStorageContainerLegalHold, Add-AzStorageAccountManagementPolicyAction, Add-AzStorageAccountNetworkRule, Close-AzStorageFile…
Script     1.1.3                 Az.Tools.Predictor                  {Disable-AzPredictor, Enable-AzPredictor, Open-AzPredictorSurvey, Send-AzPredictorRating}
Script     0.0.0.10              AzureAD.Standard.Preview            {Add-AzureADApplicationOwner, Add-AzureADDeviceRegisteredOwner, Add-AzureADDeviceRegisteredUser, Add-AzureADDirectoryRoleMember…}
Script     0.9.3                 AzurePSDrive

Error output

Set-AzApiManagement: Unrecognized Sku 'StandardV2'

austinlee0527 avatar Nov 13 '25 03:11 austinlee0527

Here are some similar issues that might help you. Please check if they can solve your problem.

  • #5812

Possible solution (Extracted from existing issue, might be incorrect; please verify carefully)

Solution 1:

We are working on the update to the cmdlets which will fix this issue.

Reference:

  • https://github.com/azure/azure-powershell/issues/5812#issuecomment-376538208

Solution 2:

We are actively working on this. Should be out within the next month.

Reference:

  • https://github.com/azure/azure-powershell/issues/5812#issuecomment-386481390

Solution 3:

This is now supported with release https://github.com/Azure/azure-powershell/releases/tag/v6.1.0-May2018

Reference:

  • https://github.com/azure/azure-powershell/issues/5812#issuecomment-391070825

Powered by issue-sentinel

github-actions[bot] avatar Nov 13 '25 03:11 github-actions[bot]

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @solankisamir, @mikebudzynski, @KedarJoshi, @yingru97.

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @solankisamir, @mikebudzynski, @KedarJoshi, @yingru97.