Get-AzureWebSite : Requested value 'PremiumV2&

2019-08-23 01:38发布

I added a new Premium V2 app service plan. Now when running Get-AzureWebSite in PowerShell I'm getting the following error message:

get-azurewebsite : Requested value 'PremiumV2' was not found.
At line:1 char:1
+ get-azurewebsite
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-AzureWebsite], ArgumentException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Websites.GetAzureWebsiteCommand

What is the error about?

1条回答
看我几分像从前
2楼-- · 2019-08-23 02:10

The old CmdLets are no longer well supported, and don't know about new features like Premium V2.

Try using the ARM based CmdLets instead, like Get-AzureRmWebApp.

查看更多
登录 后发表回答