Visual Studio Team Services - Powershell Azure Build errors

Issue:
Visual studio team service builds error out with the following error:
The term 'Remove-AzureStorageContainer' 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.
Resolution:

This error is caused by the deployment agent having an old version of the Azure powershell module installed.

The solution was to update the module using the powershell one-get module and to install the current version from the powershell gallery. Use the command "install-module azure -force" if an existing version is installed.

Once that is completed, as the helpful build error below points out:
Neither the Azure module nor the AzureRM module was found. If the module was recently installed, retry after restarting the VSTS task agent.
You must restart the services named VSO Agent (your agent name here).

Comments

Popular posts from this blog

VSTS error - PackageDeploymentFailed - using WebDeploy

Microsoft Azure Storage Explorer - Cannot find blob storage