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

make az cli synapse resume/pause fault tolerant

In order to save money, I'm using az synapse sql pool pause and az synapse sql pool resume, so that the Synapse dedicated pool database only turns on to run tests when there is a Pull Request, then shuts down after. The challenge is that: az…
Anders Swanson
  • 3,637
  • 1
  • 18
  • 43
0
votes
1 answer

Creating an Azure Private DNS Zone A Recorset using CLI Commands: Parent Resource Not Found

I've deployed a blank Private DNS Zone ARM Template with the standards SOA recordset. I now need to add additional recordsets to this private dns zone using the Azure CLI commands. The issue is the following error message: az network dns record-set…
0
votes
2 answers

Issue with single quotes running Azure CLI command

My script snippet is as below: End goal to accomplish is to create a Azure DevOps variable group and inject key-values from another variable group into it(the newly created Azure DevOps Variable Group) set -x echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"…
learner
  • 2,480
  • 10
  • 50
  • 94
0
votes
1 answer

Delete Azure storage blob given a URI

I am working on a cleanup script that deletes an Azure image and its underlying storage blob. I can find the storage blob for my image with this command: az image list --query "[?name=='$IMAGE_NAME'] | [].storageProfile.osDisk.blobUri" (This is…
itsadok
  • 28,822
  • 30
  • 126
  • 171
0
votes
1 answer

Best practices to use az cli in jenkinsfile

I was wondering what is the prefered way how to login to az using az login Because i have multiple jobs running on build node in parralel and they shouldnt be using same credentials Edit: Currently I am overriding the AZURE_CONFIG_DIR so that…
Martin Kosicky
  • 471
  • 4
  • 12
0
votes
1 answer

Azure Cli - How to show API's operation backend (HTTPs endpoint) infos

I'm trying to display the backend base-url info of an operation's API in my apim instance, i can achieve my goal with the Azure Powershell Module command: Get-AzApiManagementPolicy -Context $mycontextvar -ApiId "myapiid" -OperationId "myoperationid"…
elmales
  • 3
  • 2
0
votes
1 answer

Trying to Update ssh key to existing user in azure linux vm whcih has been created using SSH Key Service via Azure portal

I am trying to use Add-AzVMSshPublicKey cmdlet to update ssh key on existing Azure linux VM , command executed without an issue but key hasnt been updated on server. Is there any other way available where i can able to achieve OR any Azure cli…
0
votes
1 answer

Error creating key vault certificate in Azure CLI

I am trying to add a certificate to an Azure Key Vault using Azure CLI. I'm following the documentation here and the quickstart here. Both pages say the command to generate a certificate is: az keyvault certificate create --vault-name vaultname -n…
Connell.O'Donnell
  • 3,603
  • 11
  • 27
  • 61
0
votes
1 answer

error whilst trying to deploy container image after introduction of private endpoint

This command: az container create --resource-group MyRespourceGroup --name AcrName --image bla.azurecr.io/test3:latest --cpu 1 --memory 1 --registry-login-server XXXX.azurecr.io --registry-username XYZ …
0
votes
1 answer

String was unexpected at this time

I have the following function: function Add-Variable { Param ( [Parameter(Mandatory=$true, Position=0)] [string] $ProjectName, [Parameter(Mandatory=$true, Position=1)] [string] $VariableGroupId, …
DrollDread
  • 321
  • 4
  • 22
0
votes
1 answer

Azure core tools - how to specify a different key name when fetching connection string

Is there a way to tell the tool what field name in my local.settings.json file I want to update when fetching a connection string? so specifically, when I run this command: func azure storage fetch-connection-string $STORAGE_ACCOUNT_NAME by…
dot
  • 14,928
  • 41
  • 110
  • 218
0
votes
1 answer

Azure Login Using Service Principal is failing with 401 - Invalid client secret provided

I have created a new application registration in my Azure Portal like so: Home -> Azure Active Directory -> App registrations -> New Registration -> myApp. I also created 3 different secrets for the app. Now I'm trying to log in via command line…
dot
  • 14,928
  • 41
  • 110
  • 218
0
votes
1 answer

Azure CLI - az deployment group create - SubscriptionNotAuthorizedForImage Error

In Azure when deploying via 'az deployment group create' I get an error since a few days. The ressource group is created in 'West Europe' - Region Here is my command: az deployment group create --resource-group rg-UITest-$(Build.BuildId)…
MarkusE
  • 545
  • 4
  • 20
0
votes
2 answers

app service create diagnostic settings using az cli

I am trying to enable diagnostic settings for all app services in a particular subscription but i am getting this error ERROR: Expecting value: line 1 column 2 (char 1). I am not sure this error is from a JSON response or something is wrong in my…
Bheeshma
  • 143
  • 3
  • 12
0
votes
1 answer

What does `--auth-type login` mean in Azure CLI?

What does --auth-type login mean in Azure CLI? According to the documentation, it Indicates whether the operation should auto-derive a policy key or use the current Azure AD session. The command below is an example to get a list of devices in IoT…
1 2 3
99
100