Questions tagged [azure-cli]
23
questions
2
votes
2
answers
1k
views
Establishing an Azure VPN connection from CLI/PowerShell
I've installed Azure VPN Client app and configured an Azure VPN profile. It works when I manually start it via the app's UI.
How do I initiate the connection via command line, Azure CLI or PowerShell?
...
0
votes
1
answer
3k
views
Azure ACR Auth Error - "aad access token with sp failed client id must be guid"
Using this guide: https://github.com/Azure/acr/tree/main/docs/preview/quarantine
Endpoint to generate Token:
GET https://quarantinetest1.azurecr.io/oauth2/token?service=quarantinetest1.azurecr-test.io&...
0
votes
1
answer
2k
views
How to delete all resource groups forcibly without prompt for confirmation using Azure CLI cmdlets?
Tried the below cmdlet to delete all resource groups in particular location:
az group list --query "[?location=='westus']".name -o tsv | xargs -otl az group delete -n
It is asking me to ...
0
votes
1
answer
481
views
PowerShell update Azure Service Principals Properties Tags
Using PowerShell to update Service Principals IDs found here on Microsoft Docs:
https://docs.microsoft.com/en-us/graph/api/resources/serviceprincipal?view=graph-rest-1.0#properties
Service Principal -&...
1
vote
1
answer
3k
views
How to successfully Install Azure CLI
I'm having problem installing Azure CLI. I've tried three methods but all failed.
The first two are from Install Azure CLI on Windows, I've tried
install the Azure CLI using PowerShell, and
Download ...
0
votes
1
answer
386
views
Getting TSV file output excluding 2 resource types from the az resource list in Azure CLI
Kindly concern that I need to get the azure resource list from the azure CLI excluding 2 kinds of resource types and output the file to a TSV file. I was able do this particular operation via ...
0
votes
0
answers
251
views
How to correctly change directory/file rights (with chmod 777)?
I cd to:
'/Users/name/.azure/config'
Where I execute:
sudo chmod -R 777 ./
Then when I try to run:
az configure --defaults group=fake-resource-group
I get:
Permission denied: '/Users/name/.azure/...
0
votes
1
answer
1k
views
Downloading Entire Azure Blob File Storage to a Local HDD
I currently need to download all the files from these 2 file shares within azure blob storage to a local HDD, both file shares in total have 400GB enter image description here
Example of where
the ...
1
vote
2
answers
2k
views
How do I check if a VM already exists via Azure CLI?
This is a working solution but not very clean:
if [ "$(az vm list -d -o table --query "[?name=='VM_NAME']")" == "$(az vm list -d -o table --query "[?name=='...
0
votes
1
answer
107
views
How to Connect Two Azure Virtual Network Gateways in Different Azure Directories
My interpretation of the Microsoft documentation leads me to believe that I can connect two Virtual Network Gateways within two different Azure Directories but it will need to be done via PowerShell. ...
0
votes
1
answer
375
views
Azure Cloud Shell in Windows Terminal App
Once Azure Cloud Drive shell of Windows Terminal, it seems to default to PowerShell.
I can switch to Bash by typing Bash.
But once inside BASH shell can I switch to PowerShell again? Typing PS or ...
3
votes
0
answers
649
views
How I can stop a Azure VM without deallocating via Portal
If I work with VMs from Azure CLI, I can start, stop and deallocate my VM. It works like expected.
If I use the portal web interface, I see the start function and a stop function. But this stop ...
3
votes
1
answer
4k
views
Azure CLI reports missing credentials to access storage service after login
I'm trying to figure out how login works for Azure CLI. I've already logged in with:
az login
and everything seems to work perfectly, but when I try to run any other commands, e.g.:
az storage blob ...
1
vote
0
answers
2k
views
Azure CLI Login through a Proxy
Ok .. so I'm pretty much lost.
Task : execute a successful az login --service-principal -u XXX -p XXX --tenant something.onmicrosoft.com (Or tenant ID)
From A server on the Azure Cloud that has no ...
0
votes
1
answer
2k
views
deployment failed using AzureDevops
I'm followin this Azure Devops lab: https://azuredevopslabs.com/labs/vstsextend/github-azurepipelines/#task-4-embedding-automated
but when I'm deploying the app this error appears:
There were ...