azure-cli Questions

2

Solved

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 -...
Suddenly asked 18/8, 2020 at 18:34

5

Solved

I'm creating a bash script to provision multiple Azure resources via the Azure CLI. So far so good, however I'm having a problem tagging resources. My goal is to store multiple tags in a variable ...
Illboding asked 17/11, 2018 at 9:7

2

Solved

I am trying to create an az cli query that can evaluate if I am logged into the correct tenant and subscription. I know I have to use the ? and && operators but have not been able to get th...
Hydromechanics asked 15/4, 2020 at 20:17

5

I am storing my docker images in a private repository on Azure. Everytime I push an image to that repository with the same tag (e.g., latest), the previous image becomes untagged, but remains in th...
Handmedown asked 20/6, 2018 at 9:46

3

Solved

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...
Sigmon asked 4/9, 2020 at 16:23

21

Solved

Am working on Azure Kubernates where we can store Docker Images in Azure. Here am trying to check my kubectl version, then am getting Unable to connect to the server: dial tcp [::1]:8080: conne...

3

Solved

Is there a recommended approach in terms of using either Azure CLI or the Azure Python SDK? The CLI seems to be better documented but since it's built on Python, I would assume it will eventually...
Henni asked 24/4, 2018 at 6:0

6

Solved

After creating a new Azure SQL server using az sql server create, how can I enable the following options through PowerShell(Azure CLI)?
Woodborer asked 18/10, 2019 at 10:33

3

Solved

I have created a RBAC enabled service principal in Azure to configure Key Vault access within my OS using environment variables. When you create a service principal, the Azure CLI responds with the...
Shandeigh asked 18/7, 2020 at 16:51

6

I have keyvault named myKeyVault and there might be a key inside called myKey. I'm reading documentation of Azure CLI: https://learn.microsoft.com/en-us/cli/azure/keyvault/key?view=azure-cli-latest...
Nauseating asked 27/11, 2020 at 10:5

6

I would like to retrieve the tenant name THIS-THING-HERE.onmicrosoft.com using Azure CLI. I can't really find in documentation. EDIT: When I'm calling azure account list I don't get user name in t...
Adiaphorous asked 13/11, 2018 at 10:38

2

How can I use AZ commands to create client secret the same way I can do it from the portal?

8

Solved

I've found hints at there being command completion available for bash[1] for the Azure CLI (az command), but I have not found any indication on how to install/enable that for zsh. Anyone know how t...
Bedaub asked 14/3, 2018 at 9:0

4

I'm using the Azure CLI 2.0 from PowerShell to manage a storage account. I have a SAS token (which I am storing in a variable) and I want to use it in a command. Here's the script I'm running: $sa...
Horsa asked 13/11, 2017 at 23:35

3

I am trying to automate azure login in a powershell script and for that, I am using the below command as suggested in the Microsoft doc here: az login --tenant <tenant> --use-device-code But...
Upon asked 5/7, 2022 at 11:47

3

Solved

When you create an azure keyvault with soft delete enabled that keyvault persists even if you delete it and re-create it from scratch. When soft-delete is enabled, resources marked as deleted reso...
Allopathy asked 8/9, 2020 at 8:20

7

Solved

Trying to perform an az cli login using a Service Principal and it is throwing an error stating No subscriptions found for <Service_Principal_AppId>. If this is expected, use '--allow-no-subs...
Mockup asked 1/4, 2019 at 14:19

5

Solved

I'm trying to create a key vault in Azure using this CLI command... az keyvault create --location $location --name $keyVaultName --resource-group $resourceGroupMainName --output none But this retu...
Recha asked 15/6, 2021 at 15:42

2

Solved

I have powershell scripts which is running locally.But those scripts not running insite function apps > powershell (windows) machine. az login --service-principal -u $ServicePrincipalId -p $Ser...
Haemophilia asked 11/6, 2019 at 12:44

6

Solved

When creating VM via az cli (bash) with a list of tags. First set this variable: tags='env=qa servertype=frontend Distinct=qa-frontend25 CI=Yes DataDog:True' However when running the below command ...
Jaclyn asked 11/12, 2018 at 12:4

4

Solved

After last updates of Azure DevOps our pipelines stopped working. I am using AZURE CLI tasks. Investigation shows that az cli was updated to 2.2.0, but nothing was changed on our side. /usr/bin/az...
Winshell asked 20/3, 2020 at 13:5

1

Solved

How do I solve this error? az account get-access-token --resource https://cognitiveservices.azure.com Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request retu...
Sybaris asked 30/5, 2023 at 7:0

2

Solved

I am unable to trigger azure pipeline build from azureCLI task Task : - task: AzureCLI@2 inputs: azureSubscription: 'Free Trial(My subscription)' scriptType: 'pscore' scriptLocation: 'inlineScr...

4

Solved

I'm trying to delete a lot of apps that carry a similar property with AZ AD CLI. I can't find any good examples on --filter Attempting to do something like this: ad az app list --filter (displayN...
Nowhither asked 22/5, 2019 at 17:49

2

Solved

I'm developing a web application using .Net Core and leveraging Azure services (Virtual Machine Windows Server 2016, Database PostgreSQL and Azure Key Vault). Below is my .csproj file: <Project ...
Varicocele asked 3/2, 2021 at 10:37

© 2022 - 2025 — McMap. All rights reserved.