skip to Main Content

"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

Why doesn't "run-command" return any response in Azure?

I'm trying to start a ping in Linux VM in Azure. I would like to use API to do that. I have a blank response with status : 202 accepted. `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand?api-version=2023-07-01 JSON body : { "commandId": "RunShellScript", "script": [ "ping…

VIEW QUESTION

Link static web app's preview deployment to Azure Function's non-default deployment slot using az cli

Using this command: az staticwebapp functions link --function-resource-id "/subscriptions/[sub-id]/resourceGroups/[resource-group-name]/providers/Microsoft.Web/sites/[func-name]/slots/[slot-name]" -n [swa-name] -g [swa-rg-name] --environment-name "[env-name]" --force I get error: ERROR: --function-resource-id must specify a function resource ID. To get resource ID, use the following commmand, inserting the function group/name as…

VIEW QUESTION

Redis – Failed to get existing workspaces: containers.Client#ListBlobs: Code="ContainerNotFound"

During a Git-Ops execution using terraform script, always getting bellow error. Initializing the backend... Initializing modules... - application in modules/app-service - application-insights in modules/application-insights - cosmosdb-mongodb in modules/cosmosdb-mongodb - key-vault in modules/key-vault - redis in modules/redis - storage-blob in modules/storage-blob…

VIEW QUESTION

How to update azure pipeline permissions for resource using CLI

so for updating azure pipeline permission for resource, I already found that we can achieve that through using api calls like https://learn.microsoft.com/en-us/rest/api/azure/devops/approvalsandchecks/pipeline-permissions/update-pipeline-permisions-for-resource?view=azure-devops-rest-7.1&tabs=HTTP the question will be can we use cli to achieve the same outcome? for cli permission manage I…

VIEW QUESTION
Back To Top
Search