Questions tagged [azure-cli]

The Azure CLI allows Azure users to manage their Azure assets and interact with their Azure services, applications, containers, and infrastructure in an idiomatic way.

Learn more here!

2057 questions
0
votes
2 answers

Az Devops Commands Failing in Azure Pipelines (Classic)

I am at a loss as to why I cannot run a basic az devops command in an Azure Pipeline using the Classic template. So basically, I have two Powershell tasks defined for my Classic pipeline and these are: Task 1: Login to my Azure DevOps organisation…
hitman126
  • 699
  • 1
  • 12
  • 43
0
votes
1 answer

How do scan the output from the Azure Cli to extract the child iteration name or child iteration path --Azure Devops/Bash/AzureCLI

How do scan the output from the Azure Cli to extract the child iteration name or child iteration path --Azure Devops/Bash/AzureCLI My idea is to scan the output for the specific iteration name. it will list all the iteration under the depth 3 in…
12345GG
  • 101
  • 8
0
votes
1 answer

update variable group from azure devops pipeline

I am trying to update a variable in a variable group using az pipelines cli from the pipeline, I have created a PAT and passed on to the pipeline its working fine. but I use the default one such as $(System.AccessToken) its able to list the variable…
threeleggedrabbit
  • 1,722
  • 2
  • 28
  • 60
0
votes
1 answer

HTTP request inside Azure CLI GitHub action fails with SSL expired error

We are using the AZ CLI GitHub Action azure/CLI (https://github.com/marketplace/actions/azure-cli-action) The script that this workflow calls makes an HTTP request to an external API. This cURL call fails with the following: curl: (60) SSL…
sdgluck
  • 24,894
  • 8
  • 75
  • 90
0
votes
1 answer

Gitlab Pipeline using Azure image how to access variables?

I have a very simple CI/CD pipeline in Gitlab that looks like this: image: maven:3.3.9-jdk-8 variables: APP: "MyApp" stages: - build test_build: stage: build image: mcr.microsoft.com/azure-cli script: - echo $APP -…
snippet
  • 3
  • 2
0
votes
1 answer

Azure Devops -----Verify a team exists or not by querying the team name--Return true for existing, Return false for not existing (Bash, or AzureCLI)

Azure Devops -----Can someone write a function that can Verify a team in the organization exists or not by querying the team name--Return true for existing, Return false for not existing (Bash, or…
kitten
  • 31
  • 5
0
votes
0 answers

FastApi azure cli swagger

sorry for this basic question but I would like some help from you expert as I am still learning fastaapi. I have a simple testing application running python FastApi and trying to use it with azure cli. what I am trying to do, is to have a get…
Nayden Van
  • 1,133
  • 1
  • 23
  • 70
0
votes
1 answer

How do I add output of azure cli command to github actions

I have a github action where I am logging in to my azure account and I want to add output of azure cli command to github action variable. How do I do this? This is my github action job jobs: StagingBuildAndDeploy: name: Build and Deploy …
Anshul Walia
  • 109
  • 1
  • 10
0
votes
1 answer

Not able to to register namespace 'Microsoft.AlertsManagement' through ARM templates

I am trying to build my infrastructure and my infrastructure through ARM templates. But getting the following error. { "status": "Failed", "error": { "code": "MissingSubscriptionRegistration", "message": "The subscription is not registered…
0
votes
1 answer

Rest-assured request using Azure SAS token always returns 403

I am using azure-cli to generate SAS token az storage blob generate-sas --account-key mykey --account-name myaccount --container-name my --expiry 2023-01-01T00:00:00Z --name 0.0.1/uk/787867898767/structure/calendar/a12calendar.json --permissions…
Boon
  • 401
  • 1
  • 6
  • 17
0
votes
2 answers

Azure Cli giving me permission error when typing "az login"

I have just installed Azure Cli and when I am trying to login to my Azure account using az login it gives me an error - The error - Traceback (most recent call last): File…
0
votes
1 answer

How to extract releases from all azure DevOps projects from an organization

I am managing an Azure DevOps organization which is having 300+ projects. I want to know how many releases are happing every month across the projects. I saw we have REST API to get release from one specific project.…
0
votes
1 answer

Error 'Parameter 'Identity.type' can not be None. ' while creating a Kusto cluster from Azure CLI

The command I'm using: az kusto cluster create --location "brazilsouth" --name "adxrrs" --sku name="Dev(No SLA)_Standard_D11_v2" capacity=1 tier="Basic" --resource-group adx-rg output: Command group 'kusto' is experimental and under development.…
basquiatraphaeu
  • 525
  • 7
  • 19
0
votes
1 answer

How to get the count of Azure Data Factory datasets, triggers, pipelines and linked services?

I have created Azure Data Factory and then added datasets, triggers, pipelines and linked services into it. I want to know the count of datasets, triggers, pipelines and linked services using PowerShell or any other alternative way.
Pradeep
  • 5,101
  • 14
  • 68
  • 140
0
votes
0 answers

A few questions about AzureRM and C#

I've been working on a project for a company that is trying to convert their PowerShell script for building out some infrastructure. They'd like this script converted to a form application if possible. I'm still somewhat new to Azure so there are…