I want to execute a command to remove a topic or queue on a remote azure resource group. One of the commands is 'Get-AzureRmServiceBusQueue'.
I use the Azure Powershell task (using the Azure Resource Manager) within a hosted agent of VSTS. This task is using the Azure Powershell 2.0.1.
When I perform the release the agent is returning this failure:
"[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."
I checked that the ServiceBus cmdlet is only provided in newer versions of the Azure Powershell (for example: the latest 4.3.1).
Can I perform a 'Install-Module -Name AzureRM' ?
-RequiredVersion
parameter to be sure you get a consistent version for each build. – Persistent13