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.

22 questions
3
votes
2 answers

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 authentication expires before it finishes. The…
David Roberts
  • 141
  • 1
  • 4
2
votes
1 answer

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 az…
Gustavo Maia
  • 391
  • 1
  • 4
2
votes
1 answer

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 name of my webapp using the supposingly equivalent…
Bill Kary
  • 201
  • 3
  • 5
2
votes
1 answer

Azure run command for Fortinet virtual machine with serial console?

I'm trying to execute with Azure a .conf file that has some command lines that are executable into the Fortinet's serial console in a virtual machine with FortiOS v6.4.3 (Linux based system). I use AZ CLI to execute the script into the virtual…
1
vote
1 answer

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 create --display-name "$appName"…
1
vote
1 answer

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…
Dillon Brown
  • 178
  • 1
  • 7
1
vote
1 answer

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.
1
vote
3 answers

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 aks install-cli az : WARNING: Downloading client to…
Kannan GK
  • 21
  • 1
  • 1
  • 3
1
vote
0 answers

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 launch from the Canonical 16.4 LTS marketplace…
Shane L
  • 31
  • 1
  • 5
1
vote
1 answer

How to list all function apps and it's storage account

Is there anyway to combine both commands below where it lists all the function app together with the storage account used for it? This command gets all the function app in the subscription az functionapp list This command gets the storage account…
Fabian Raj
  • 11
  • 3
1
vote
1 answer

What is the default RBAC scope used when assigning a role in Azure with the CLI?

This is the documentation for the az role assignment create command: https://docs.microsoft.com/en-us/cli/azure/role/assignment?view=azure-cli-latest#az-role-assignment-create --score is an optional parameter. This is what the documentation says…
Adrian
  • 119
  • 5
1
vote
0 answers

When remediation for policy is activated in Azure?

We create a virtual machine that needs 2 extensions, for that we define and assign 2 customs policies, also we create and activate remediation task to make sure that all virtual machines (new ad old vms) have these 2 extensions. Everything is done…
1
vote
1 answer

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 with a query using AZ CLI. As an extra challenge,…
lpacheco
  • 137
  • 1
  • 9
0
votes
1 answer

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-group $resourcegroup --server $servername In docs…
robliv
  • 101
  • 1
0
votes
1 answer

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 custom access policy for it. My terraform snippet…
Justin Dearing
  • 1,017
  • 10
  • 33
1
2