我想要執行命令以刪除遠程天青資源組上的主題或隊列。其中一個命令是'Get-AzureRmServiceBusQueue'。如何在VSTS任務中使用最新的AzureRM
我在VSTS的託管代理中使用Azure Powershell任務(使用Azure資源管理器)。此任務正在使用Azure Powershell 2.0.1。
當我執行釋放劑返回此故障:
"[error]The term 'Get-AzureRmServiceBusQueue' 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."
我檢查了ServiceBus小命令在Azure中的PowerShell較新版本僅供(例如:最新的4.3.1)。
我可以執行'Install-Module -Name AzureRM'嗎?
我沒有使用VSTS,也沒有帳戶可以測試,但是,如果它正在運行PowerShell版本5或更高版本,您應該能夠運行安裝cmdlet,如圖所示。您還可以將它與'-RequiredVersion'參數結合使用,以確保您獲得每個版本的一致版本。 – Persistent13