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.

Filter by
Sorted by
Tagged with
0
votes
0answers
26 views

List all expired service principal credentials in Azure active directory

I recently had an issue that turned out to be caused by an expired service principal credential. I would like to have a simple way to get a list of all the expiration dates/expired sp credentials to ...
-1
votes
0answers
26 views

Cannot update Azure CLI installed on Kali

I have Azure CLI installed on my kali Linux instance. az --version showing an updated version available as shown below. kali@kali:~$ az --version azure-cli 2.18.0 * core ...
0
votes
1answer
109 views

Can't create a NIC using Azure CLI (BadRequestError)

Consider the following scenario: One resource-group called rg-foo which was created in the location switzerlandnorth One virtual network called vnet-switzerland-north holding one subnet called ...
0
votes
0answers
14 views

How to generate Azure storage SAS for Microsoft routing using AZ CLI

I have a storage Account configured to be accessed from within a VNET. I need to generate a SAS for Microsoft routing using Azure CLI exactly like in the screenshot. The problem is I can't find the ...
1
vote
1answer
817 views

How can I use AZ CLI to find Azure resources which are missing a specific tag?

I need to assure that all our resource groups have a specific tag. I know I can use a policy to ensure that any created resource will have the tag, but for existing resources I'm trying to come up ...
1
vote
0answers
120 views

Azure AD - App Registration - Creating a new scope

I'm looking for a way to create a new Azure Active Directory application registration via a PowerShell script. I can create the application using the following script: $appName = "CliApp" az ad app ...
0
votes
1answer
216 views

Azure CLI list Azure SQL Server DB backups

I'm trying to make an automated script that restores from the latest LTR backup of an Azure SQL server database. Using this command: az sql db restore --dest-name $newdbname --name $dbname--resource-...
0
votes
1answer
236 views

When using web browser login with the az cli, Getting that users Object Id

I want to provision an azure key vault from terraform via the interactive powershell prompt. I want to login to to azure (az login) with the web browser. I want that users object id to set a limited ...
1
vote
1answer
314 views

Can we download Azure deployment files with Azure CLI?

Is it possible to download the deployment JSON file (the template) for an Azure resource using Azure CLI? The equivalent in PowerShell seems to be this command. https://docs.microsoft.com/en-us/...
1
vote
1answer
45 views

Not able to configure azure cli on window 2003 server

Can anyone help me on this, I am trying to install and configure azure powershell on my window 2003 aws ec2 instance. But i am getting error like it is not a valid win32 application.
3
votes
2answers
4k views

Docker push to Azure container registry fails because authentication expires before it finishes - workaround?

Using the Azure CLI on Windows Server 2016 against an Azure container registry (az login and az acr login) I'm pushing a large Windows container docker image (>10GB) with docker push. It seems the ...
0
votes
1answer
628 views

Azure tags: search for value including wildcard

We'd like to have multi-valued tags. For example, for the tag "application", we have some resources that involve several applications, i.e. Virtual Machines running several JBoss instances for ...
1
vote
3answers
9k views

Can not find kubectl executable in PATH

Azure Kubernetes Service created and now to open Kubernetes dashboard, following the steps and getting error: az : ERROR: Can not find kubectl executable in PATH). PS C:\Program Files (x86)> az ...
0
votes
1answer
1k views

Azure cli not creating role

I am trying to follow this guide and am having no luck on the az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/${SUBSCRIPTION_ID}" step. It gives me the error below. I have tried ...
2
votes
1answer
682 views

Registration of Azure Resource Provider hangs indefinitely

I'm just starting to look into Azure and AKS. In order to do this, I have to enable a bunch of resource providers. I did this using the Azure CLI, like so: az provider register -n Microsoft.Network ...
1
vote
0answers
3k views

Azure Create VM from existing managed disk: 'Creating a virtual machine from Marketplace image requires Plan information in the request.'

Following some instructions to migrate a VM from one vnet to another, these particular instructions said to delete the VM keeping the OS drive and the launch a VM from the disk. The original VM was ...
1
vote
1answer
576 views

azure CLI 2.0 az webapp log tail cannot find the 'NAME' of my webapp

When i was using the Azure CLI 1.0, i use the following command to log tail my webapp: azure login azure site log tail MY_WEBAPP_NAME Now after i have switched to Azure CLI 2.0, i cannot find the ...