Switch-AzureMode AzureResourceManager is not recognized

时间:2016-04-25 09:31:47

标签: powershell azure

There is no alert for Backup vault in Azure. So, I followed Alert notification section in following article:

https://azure.microsoft.com/en-us/documentation/articles/backup-azure-manage-vms/

After login in Azure account using Azure powershell, I ran following command as mentioned in above article:

Switch-AzureMode AzureResourceManager

The command is not recognized and giving following error. Any ideas? Thanks :)

Arnold..

-------
Switch-AzureMode : The term 'Switch-AzureMode' is not recognized as the name of a cmdlet, function, script 
file, or operable program. Check the 
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Switch-AzureMode AzureResourceManager
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Switch-AzureMode:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
-------

2 个答案:

答案 0 :(得分:1)

You can use azure CLI:

azure config mode arm

答案 1 :(得分:1)

Switch-AzureMode was deprecated。 在启用产品组side-by-side commandlets execution时,您应该可以不执行该命令行开关。如果这不起作用,请尝试检查Azure Powershell是否已更新。