Use ConnectedServiceNameARM instead of azureSubscription in AzurePowerShell tasks in Azure DevOps YAML pipelines
Don't get fooled into providing an Azure Subscription name to a AzurePowerShell task in an Azure DevOps YAML pipeline, just because the input argument is named azureSubscription
. It really needs the name of an Azure DevOps Service Connection!
For AzurePowerShell tasks use the ConnectedServiceNameARM
input name instead of the misleading azureSubscription
alias.
I made a copy of an Azure YAML pipeline I found on the internet as a baseline for what I needed.