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
5
votes
2 answers

Azure CLI: Unable to escape pipe character (|) in Windows PowerShell

Scenario I try to create an Azure web app with Azure CLI on my windows machine. Unfortunately, I am not able to choose runtime for my webapp. When I try: az webapp create -n name -g grop -p plan -r "DOTNETCORE|3.1", I am getting an error: '3.1' is…
zolty13
  • 1,943
  • 3
  • 17
  • 34
5
votes
2 answers

The subscription of 'concierge subscription' has more than one match in cloud 'AzureCloud'

Using one session of an azure sandbox which lasts for 4 hours. Once one session gets expired, I've created a new sandbox to continue practicing exercises from the Azure portal. After execuing command: az account set --subscription "Concierge…
CIndolia
  • 51
  • 2
5
votes
4 answers

SCM_DO_BUILD_DURING_DEPLOYMENT is set to false explicitly by Azure Cli

I am using Azure Cli in Jenkins build to deploy my nodejs azure functions to azure. I need Kudu to build the npm packages to reduce the deployment time on Jenkins side. I have SCM_DO_BUILD_DURING_DEPLOYMENT = true in Azure Functions configurations…
Mori
  • 2,484
  • 5
  • 28
  • 45
5
votes
2 answers

Azure CLI - Delete resource without deleting resource group

The goal is to delete all resources in a resourcegroup without deleting it using azure CLI. From reading the doc, I can do this: az resource delete -g MyResourceGroup -n MyVm Therefore I assumed I can do the following az resource list …
user3622142
  • 360
  • 4
  • 18
5
votes
1 answer

How do I upload a file to Azurite from terminal?

I'm using Azurite and wish to create a container/upload a blob etc from the bash terminal! I've tried using the Azure CLI like this:: az storage container create --account-name devstoreaccount1 --account-key…
Johnny Alpha
  • 758
  • 1
  • 8
  • 35
5
votes
1 answer

AKS creation through CLI fails: Reconcile standard load balancer failed

I have created the AKS using below CLI command on countless number of occasions. I had no problem until today. az aks create --resource-group rg --name ama --generate-ssh-keys --location southeastasia --aad-server-app-id…
Mnaseem
  • 145
  • 1
  • 7
5
votes
2 answers

Export Azure Resource Groups with Tags to csv

I'm kinda new to Powershell, and I'm trying to make a script that gets all the data from Azure Resource Group (including tags) and exporting the output to CSV. As far as I know, there are a few ways to do it, AzureCLI, AzureRM(Powershell), and…
maxi.mdq
  • 53
  • 1
  • 4
5
votes
1 answer

Publish Net Core app to azurewebsites.net using Azure CLI with PublishSettings

I am trying to publish a .Net Core app to Azure with myapp.PublishSettings using Azure CLI, but I can't find the command to do this I think that it may be with az webapp update but I don't see where can I enter my PublishSettings reading the…
LuisEnMarroquin
  • 1,609
  • 1
  • 14
  • 26
5
votes
1 answer

Azure Function Deployment failed with Azure CLI 2.2.0 updates in Azure Pipeline

everything was working fine with azure-cli 2.1.0 With new updates of azure-cli (2.2.0) on Azure Pipeline (with Ubuntu agent) getting an error.       ERROR: HTTPSConnectionPool(host='****.scm.azurewebsites.net', port=443): Read timed out.      …
Sagar Kulkarni
  • 636
  • 9
  • 24
5
votes
1 answer

Getting the latest image tag from ACR Repository

I need to fetch the latest image tag from Azure Container Registry (ACR) with a bash command in my pipeline and use that tag for container deployment. Here is what I could find with Azure cli: $ az acr repository show-tags --name myacr…
Matrix
  • 2,399
  • 5
  • 28
  • 53
5
votes
1 answer

Can a service principal (Azure Application multi-tenant) grant admin consent to application in tenant using AZ CLI?

Context We are using multiple directories (TENANT_A, TENANT_B) on Azure. The goal is to create a service principal (Application), _SP_APP, inside TENANT_A which is granted access into TENANT_B. We want to use this service principal in script to…
5
votes
2 answers

Programmatically Configure HTTPS Only for Azure Function App

Is there a way to programmatically enable the HTTPS Only flag on a custom domain of an Azure Function App? I've been using the CLI quite extensively and have been pleased with the comprehensive coverage it provides, but I can't seem to figure this…
Tom Hundley
  • 1,325
  • 9
  • 14
5
votes
3 answers

Update Azure CDN custom domain certificate from a script

How do you trigger Azure CDN to read the latest version of custom certificate from Key Store without downtime? My CDN-setup is working ok, but given Let's Encrypt, the certificate is short lived and requires automation for updates. Doing az keyvault…
Jari Turkia
  • 1,184
  • 1
  • 21
  • 37
5
votes
2 answers

Add members to Azure Enterprise App through CLI

We have an enterprise application in our Azure AD tenant for provisioning users to another SaaS platform. Currently it is only setup with the option "Sync only assigned users and groups" since we do not want the whole directory brought over. My…
kanthael
  • 105
  • 2
  • 5
5
votes
1 answer

Service principal privileges for app registration creation

I'm using service principal as login item for azure cli. The role of this service principal is "owner". I'm trying to run: az ad app list and az ad app create --display-name "Test application 2" and getting error: Directory permission is needed…
Dzior
  • 1,485
  • 1
  • 14
  • 30