Questions tagged [az]
86 questions
0
votes
2 answers
az sql server ad-admin create fails in azure devops with puython error
the command is pretty vanilla:
az sql server ad-admin create --display-name 'some group' --object-id 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' --resource-group my-group --server my-server
The command works when i run it in a terminal, and other az…

Kam
- 340
- 2
- 12
0
votes
1 answer
Why were more than one image deleted from ACR?
I am trying to write a cleanup script. The script is supposed to delete old ACR images. Here the sh command that runs in Jenkins:
ACRS=( mydevacr )
for ACR in "\${ACRS[@]}"
do
readarray -t repos < <(az acr repository list --name \$ACR | jq -cr…

Eric
- 1,182
- 2
- 15
- 25
0
votes
2 answers
Can not login using az
When I try to login using az (az login), it's giving beloe error in ubuntu..
What is the possible solution for it??
Error:
Port '8400' is taken with error '[Errno 99] Cannot assign requested address'. Trying with the next one
Port '8401' is taken…

Abhishek Parmar
- 287
- 2
- 8
- 21
0
votes
1 answer
Azure RM module doesn't work on MACOSX Catalina
I'm trying to use AzureRM and AZ module on Powershell core on OSXCatalina, but, when I try to use the cmdlet Login-AzureRmAccount or Login-AzAccount. I receive the errors bellow.
I'm currently using the Powershell version 7
Login-AzureRmAccount: The…

Estevão França
- 115
- 1
- 1
- 5
0
votes
0 answers
az login returns error "Failed to establish a new connection: [Errno -3] Temporary failure in name resolution"
I was doing az login from WSL of my windows machine. Then it gives an error:
Please ensure you have network connection. Error detail: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url:…

AnjK
- 2,887
- 7
- 37
- 64
0
votes
1 answer
Error when deploying my Visual Studio project zip file to azure "The command failed with an unexpected error. Here is the traceback:"
I have created an Asp.NET web application using Visual studio 2019 >> i publish the project to my c drive >> zip the generated files. then i wanted to deploy it to Azure web app >> i open azure command line >> i run this command:-
C:\Program…

John John
- 1
- 72
- 238
- 501
0
votes
1 answer
How to retrieve App Service Plan instance name (RDXXXXX)?
I am having an issue trying to retrieve all the instance names in an Azure App Service Plan.
In Azure Monitor, if you specify a "Scope" to "App Service Plan" and look at the Metric "CPU Percentage" and then add a filter to specify the "Instance"…

FidelCasto
- 176
- 2
- 15
0
votes
1 answer
AuthenticationFailed after creating sas token with New-AzStorageBlobSASToken
I am creating a SAS token:
$start = [System.DateTime]::Now.AddMonths(-1)
$end = [System.DateTime]::Now.AddMonths(1)
$cloudConfigSas = New-AzStorageBlobSASToken -Container "myContainer" -Blob "myBlob" -Permission "rwd" -Protocol HttpsOnly -StartTime…

Razoll
- 107
- 1
- 1
- 7
0
votes
2 answers
How to grep dnszone from azure SQL Managed Instance connection-string
Requirement: To automate the deployment of azure sql mi and connect the web application to it.
Everytime I create sql mi it generate a random "dnszone" which I am unable to capture in file which I need to create a connection string using bash…

Raju
- 27
- 8
0
votes
1 answer
AZ CLI (az vm run-command invoke) losing variable data when executed with parameters
Scenario:
multiple servers with 1 json file that must have a token replaced
using jq for json replace
az vm run-command for running it for all machines
azuregateways.txt is the list of Azure VMs
newtokens.csv is the list of new tokens for each…

Florin
- 113
- 1
- 1
- 9
0
votes
1 answer
Cannot figure out how to create an empty build pipeline from Az Devops CLI
I need to setup an empty build pipeline based on the built in Azure pipeline configurations using az devops cli. For example a pipeline for an ASP.Net configuration. I cannot seem to find any good documentation. I saw one that references having a…

MikeC
- 37
- 6
0
votes
2 answers
How to query entities from Azure Storage Table with AzureRM?
I have a couple of Azure Runbooks which use AzureRM to automatically scale service plans depending in some configuration.
That configuration is saved on my Azure Storage Account as entities in a table.
However, I can't find a way to read the…

Mason
- 1,007
- 1
- 13
- 31
0
votes
1 answer
How can you install AzureRM or Az Powershell Modules without internet access on target machine
Does anyone know of installer links for AzureRM or Az Powershell modules ?
Install-Module will not work if you cannot access the Powershell Gallery. This is a real problem, since many sites do not allow production machines to access the…

jlo-gmail
- 4,453
- 3
- 37
- 64
0
votes
1 answer
How can I get a list of AlertIds for existing V2 Azure alerts?
I am trying to query for the Monitor Condition of Fired across all my existing V2 alerts in my Azure subscription. I can use either the Az PS module, the Azure REST API, or the Azure CLI. Ideally, I'd like to just leverage Get-AzAlert and pass the…

jnyiri
- 23
- 3
0
votes
1 answer
Cannot find overload for ExecuteBatch error in powershell
I am doing batch uploads from a csv file to Azure table storage through a Powershell script and i have a command: $table.CloudTable.ExecuteBatch($batchOperation)
for which i'm getting the error mentioned in the header of the question of my post. I…

Rahul Kumar
- 21
- 2