skip to Main Content

Azure – The term 'Connect-AzAccount' is not recognized as a name of a cmdlet

This code is working in my local machine in Powershell ISE, but it is not working in the devops pipeline $AzureTenantId = "dgfg" $AzureApplicationId = "fgfgg" $AzureApplicationSecret = "fdgfghf" $SecuredApplicationSecret = ConvertTo-SecureString "$AzureApplicationSecret" -AsPlainText -Force $psCred = New-Object System.Management.Automation.PSCredential($AzureApplicationId ,…

VIEW QUESTION

"ERROR: TF401444: Please sign-in at least once…" in AzureCLI@2 task

I am using below YAML pipeline to create a PR via Azure CLI script:- - task: AzureCLI@2 inputs: azureSubscription: '${{ parameters.serviceConnection }}' scriptType: 'ps' scriptLocation: 'inlineScript' inlineScript: | # Set organization, project, and repository details $organization="https://dev.azure.com/MyOrg" $project="MyProject" $repository="MyRepo" $targetBranch =…

VIEW QUESTION
Back To Top
Search