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
1 answer

Why is azure CLI adding 0 to my returned list

I'm working with azure CLI to build out some automation around repo creation, etc. I'm using python as a sort of wrapper around various CLI commands to bundle up the automation. I want to write in a simple check to see if a repo name has been used…
MattsM
  • 3
  • 2
0
votes
2 answers

Azure CLI - How to find available 'endpoints' from an account key?

I have an account key and corresponding account name. How can I find the storage options it has? Using: az storage account list retrieves the accounts that my subscription has access to, and I get the access points: "primaryEndpoints": { …
0
votes
1 answer

How to create Azure Search Index using Azure CLI?

I am unable to find a way to use Azure CLI to create Azure Search index, I was able to create Azure Search service though. Does any one know if there is way to create Azure Search Index using Azure CLI.
shifatullah
  • 630
  • 8
  • 17
0
votes
2 answers

Unable to deploy a python application from az cli

We have a problem deploying a python application to App service using the Az CLI. Do you have an idea of the problem source ? Here is the command we use. We execute it on an ubuntu VM. az webapp up -n $WEB_APP_NAME -l "westeurope" -g…
Sevy
  • 15
  • 2
  • 6
0
votes
1 answer

How to automatically create a service connection in azure devops?

I would like to automatically create a service connection in azure devops. Ideally either with terraform or azure cli. I would like to do this as part of an azure devops pipeline using 1 of the above methods. Is this possible? If so how? ... I did…
slipperypete
  • 5,358
  • 17
  • 59
  • 99
0
votes
1 answer

How to pass parameter containing spaces to Azure CLI command in PowerShell script

I have a PowerShell script to run an Azure CLI command: Param ( [parameter(Mandatory = $false)] [string] $ruleName = "Trusted Device1" ) az webapp config access-restriction add -g "my-rg" -n "my-app" --rule-name $ruleName --action Allow…
user3616544
  • 1,023
  • 1
  • 9
  • 31
0
votes
1 answer

Run bicep in Complete mode by default?

By default, when running something like az deployment group create --template-file xyz.bicep ..., bicep is in "Incremental" mode. Because of this, it might happen that things get added while they should've been simply changed. With --mode Complete,…
Alexander Skwar
  • 875
  • 1
  • 9
  • 20
0
votes
1 answer

Azure Python SDK not able to consume output of list_of_vms with azure-mgmt-compute==20.0.0

I am using azure python sdk for resource management. below snippet was working with Azure -> azure-mgmt-compute==12.0.0 after upgrade to azure-mgmt-compute==20.0.0 below snippet is not working creds = ServicePrincipalCredentials(client_id=client_id,…
0
votes
1 answer

Azure Enhanced Monitoring Enable on Several VMs

I need to enable Azure Enhanced Monitoring for a couple hundred SAP VMs.. Does anyone know if there is a way to do this at the RG level or do I have to run the cmdlets for each VM? If the latter, how can I script this in cloud shell to read from an…
0
votes
2 answers

Azure az cli Docker Hub Web App ressource configuration

I'm trying to setup a script for automate the creation of a new environment for my app, and i need a docker webapp. The problem is that i need to pull the image from docker hub. When i create an env from the interface in juste setup it like that…
0
votes
2 answers

How to stop 'az login' from changing my default subscription?

I tried to access specific subscription in my organization by using command: az login --subscription ID It works and az account list gives me info that I changed this sub to default: { "cloudName": "AzureCloud", "homeTenantId": "ID", …
0
votes
0 answers

How to configure package-file path for Azure release pipeline?

I was following this article from Microsoft to use Azure pipeline for build and release. Reached upto this section and confused about the following code: az batch application package create --application-id $(batchApplicationId) --name…
0
votes
1 answer

az appconfig kv list --key filter not working for * wildcard

I have a KeyValue pair in azure appConfiguration and when I run the following command, it does not work. however another version of it is working //works az appconfig kv list -n app-config-dev --key 'my*' //does not work az…
Tiju John
  • 933
  • 11
  • 28
0
votes
1 answer

Updating multiple values of a Azure DevOps variable group from another variable group

I have a requirement which is as follows: Variable Group A, has 7 set of key=value pairs Variable Group B, has 7 set of key=value pairs. In both cases keys are the same, values are only different. I am asking from the user, the value of be injected…
learner
  • 2,480
  • 10
  • 50
  • 94
0
votes
1 answer

Get status code when making REST call using Azure CLI

I am making a rest call using AzCli to get the backup configuration of the web apps. However there are couple of scenarios which I want to consider while making this REST call. To get the state of the request made I am trying to get the response…
Bheeshma
  • 143
  • 3
  • 12