I trying to run the below script via azure pipeline task (Az CLI) and pipeline is running on self-hosted agent.. I'm getting Error: Cannot process command because of one or more missing mandatory parameters: ServicePrincipalId,ServicePrincipalPass,ServicePrincipalTenant AzureRegistryName.
Can any one help me out this. Thanks in advance.. Code will be there in git hub:- https://github.com/goyalmohit/acr-cleanup/blob/master/acr-cleanup.ps1
In script I passed values like this [String] $ServicePrincipalId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
Like this remaining values like password, tenant, subscription name, Acr Name passed same way..
