PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,583 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Below is the error:
Error: The term 'Update-AzVmssInstances' is not recognized as a name of a cmdlet, function, script file, or executable program throws in Azure ppwershell of Azure devops pipeline.
Hi Priya,You can try setting up the un-recognized module manually, before running your PS scripts. Following lines of code can be added at the beginning of the script to overcome the issue. It also, uninstalls any AzureRm modules runs by default
- task: PowerShell@2
displayName: 'Update Az.Compute Module'
inputs:
targetType: 'inline'
script: |
Get-PackageProvider -Name NuGet -ForceBootstrap
Install-Module -Name Az.Compute -Verbose -Force -AllowClobber
Uninstall-AzureRm -Verbose