Powershell 找不到Get-AzureSqlServerUpgrade命令集
找不到Powershell 找不到Get-AzureSqlServerUpgrade命令集,powershell,azure,azure-sql-database,Powershell,Azure,Azure Sql Database,找不到 Stop-AzureSqlServerUpgrade Start-AzureSqlServerUpgrade Get-AzureSqlServerUpgrade 计划升级到SQL数据库V12所需的命令。如何安装这些命令 疑难解答详细信息 PS C:\Windows\system32> Get-Module Azure ModuleType Version Name ExportedCommands
Stop-AzureSqlServerUpgrade
Start-AzureSqlServerUpgrade
Get-AzureSqlServerUpgrade
计划升级到SQL数据库V12所需的命令。如何安装这些命令
疑难解答详细信息
PS C:\Windows\system32> Get-Module Azure
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Manifest 0.9.7 Azure {Add-AzureAccount, Add-AzureApplicati...
PS C:\Windows\system32> $Host.Version
Major Minor Build Revision
----- ----- ----- --------
4 0 -1 -1
Get-AzureSqlDatabase
命令正常。简短回答
您需要切换到新的AzureResourceManager
模式
Switch-AzureMode AzureResourceManager
Get-Command Stop-AzureSqlServerUpgrade
更多信息
Azure PowerShell现在有两种模式:AzureServiceManagement
和AzureResourceManager
。我们在这两者之间切换
某些commandlet仅在一种模式下可用。Stop-AzureSqlServerUpgrade
commandlet及其兄弟命令仅在AzureResourceManager
模式下可用
如果要确定当前模式,可以运行Get Module*azure*
。输出将如下所示,包括当前模式的名称
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Manifest 0.9.7 AzureResourceManager {Add-AlertRule ...}
如果名称
只是Azure
,则您处于服务管理器模式