2,382 questions
0
votes
1
answer
70
views
How to create an AKS Automatic cluster with custom node pool size and VM size (via CLI or Bicep)?
I’m trying to create an Azure Kubernetes Service (AKS) Automatic cluster with my own custom node pool configuration, such as specifying:
VM size (Standard_D8s_v3)
Node count or autoscaler range
I ...
1
vote
1
answer
139
views
Activate PIM Entra ID role with Azure CLI or PowerShell [closed]
I'm trying to automate the activation of my PIM Entra ID role for Azure Tenant with either Azure CLI or PowerShell.
I've followed the answers in Activate PIM role for Azure resources via REST / ...
0
votes
1
answer
60
views
Azure Web App: Zip deployment fails on zip files created through Powershell
I have a Azure Web App with NodeJS Runtime. I am using the following command to deploy published zip files.
az webapp deploy --resource-group test-rg --name AppName001 --src-path C:\path\to\publish....
0
votes
0
answers
36
views
Azure APIM API Governance Reporting
I wanted developers to include governance metadata in their swagger and use a script to retrieve all API information to build reports of our APIs. I filled this set of x-headers as a start in my ...
1
vote
0
answers
37
views
Does health repair work on a deallocated VMSS instance?
I need to stop an Azure VMSS using azure CLI command but when I use az vmss stop command, VMSS instances start after some time. I figured out it happens due to Health Repair option being enabled on ...
0
votes
0
answers
102
views
Issue adding default ruleset to Azure WAF Policy for Azure Front Door Premium
I am trying to create a WAF Policy and assign it the Microsoft_DefaultRuleSet 2.1. I am using Azure CLI 2.76,0
I am getting this error:
(BadRequest) WebApplicationFirewallPolicy validation failed. ...
0
votes
1
answer
67
views
How to deploy app service with private endpoint and custom domain in a self hosting devops agent
I have an Azure App Service which is protected via private end point and network is disabled. Also it has a custom domain which is just in company network reachable, also inside of devops agent.
I ...
0
votes
1
answer
59
views
./<bundle_name> --environment <environment_name> not working on azure console
I have an azure basic Todo App with db and have command in mu yml file to generate migration bundle and i am publishing my app to azure with db migrations using github sync from visual studio code .
I ...
1
vote
1
answer
138
views
Azure Command-Line Interface (CLI) error running .NET 8 console app
I'm trying to test a .NET 8 console app in Azure CLI, but I see an error. I used "Manage files" to upload the exe and all needed files:
PS /home/david> ls
Azure.Core.dll ...
1
vote
1
answer
123
views
Azure won't show roleDefinition for directory roles
I'm using the following API, it works with regular roles such as "Reader":"acdd72a7-3385-48ef-bd42-f606fba81ae7".
az rest --method get --url 'https://management.azure.com/providers/...
0
votes
1
answer
96
views
Problem with permissions when using New-AzSubscriptionAlias in Azure CLI
I want to automate the process of creating a new Azure subscription and add all the necessary custom roles and resources required for a new environment. The problem I'm stuck on is the first step of ...
1
vote
1
answer
170
views
Configuring Azure Front Door (with Azure CLI): Adding route with multiple custom domains
I am configuring AFD with az cli and I am running in an issue.
I have two custom domains:
$afd_custom_domain_1="www-mydomain-com" #this is id for domain 1
$afd_custom_domain_2=&...
-1
votes
2
answers
82
views
Azure CLI Never Ending task
I'm new to Azure Cli, I have been trying a basic task, but I dont know why it never finish, any idea?
I manually created a pool called (batch account/pools/) Pool ID:test-pool-id1, Operating System:...
0
votes
1
answer
188
views
Unable to bind SSL certificate to Web App using Azure CLI (works via portal & Bicep)
I'm trying to bind a certificate from Azure Traffic Manager to my Azure Web App using the Azure CLI. The first two commands work fine, but the third one fails saying the certificate with the ...
0
votes
1
answer
97
views
Is it possible to automate App Registration in the Azure portal using only a custom template?
I'm attempting to automate Azure App Registration using an ARM template with Azure CLI (AzureCLI) deployment scripts and also used powershell scripts. My goal is to create an app and extract its appId ...
0
votes
1
answer
107
views
Github Action to deploy to Azure fails (no changes made) - "Containerapp does not exist"
Our deployments have recently started failing with the following error, despite no changes made to Azure, GitHub, or the workflow file:
ERROR: The containerapp 'sample-name' does not exist
To ...
-2
votes
1
answer
84
views
Get List of Azure DevOps Pipelines Using YAML vs Legacy
~ Self-Answered Q&A ~
How can I use the Azure CLI to identify which Azure DevOps pipelines are using YAML and which are using legacy build tasks?
0
votes
1
answer
171
views
Azure Frond Door Standard: Rate limit error when regenerating TXT record for custom domain
I have created a bash script to configure Azure Front Door with a custom domain. However I have run into a strange issue: When generating a TXT value to add to Azure DNS Zone I get the error ERROR: (...
1
vote
1
answer
115
views
Simple Azure Front Door configuration not working
I am trying to setup a basic AFD setup where the origin is a static website in Azure Storage.
I keep getting a "The request URI is invalid. HttpStatusCode: 400, ErrorCode: InvalidUri ..." ...
-1
votes
1
answer
325
views
Configuring Azure Front Door with Azure CLI issues [closed]
I am trying to create and configure Azure FrontDoor for an Azure WebApp, and I am not getting any good results.
Here is what am I trying to do:
I Have a custom domain (mydomain.com), which I am ...
0
votes
2
answers
143
views
Is it possible for a Github Workflow to create a new client secret for an App registration in Azure?
I am trying to automate rotation of client secret for an Azure app using a Github Workflow. This Workflow will create a new client secret in ever 90 days and update the secret which is stored in a KV. ...
1
vote
2
answers
129
views
"az webapp identity assign" command throws LinkedInvalidPropertyId
I am trying to assign user assigned managed identity to WebApp using Azure CLI.
The command follows below syntax
#This command fetches the resource id of my existing managed identity with name '...
-1
votes
1
answer
491
views
How can i backup and Azure sql database and save to storage account?
I am trying to backup an Azure sql database using sqlpackage within powershell.
So far i have :
$url = az storage container generate-sas --account-name <storage_account> --name <container&...
2
votes
5
answers
1k
views
No such file or directory: '/home/vsts/work/_temp/.azclitask/bin/bicep' when doing az deployment mg in an Azure DevOps pipeline
When running the following commands in a Shell script called by the AzureCLI@2 task of an Azure DevOps pipeline:
az bicep install
az deployment mg what-if --name ${NAME:0:63} --location $LOCATION --...
0
votes
1
answer
140
views
Cannot add A (alias) record for Azure Front Door in Azure DNS (with Azure cli)
I am trying to set up a custom domain for Azure front door. This is what I am doing:
I have an Azure DNS setup (sofad.com) for the domain (and already configured)
I have an instance of Azure Front ...
1
vote
3
answers
473
views
Cannot update Azure DevOps wiki from pipeline
I am attempting to update our Azure DevOps wiki from an Azure DevOps pipeline in the same project.
Each time, I receive the following error: Repository associated with wiki ID 'acf82e19-xxxx-xxxx-xxxx-...
0
votes
1
answer
163
views
How to amend and/or obtain the file path to the rdp file created by `az network bastion rdp`
I use az network bastion rdp to connect to an Azure Virtual Machine. Previously this used to create the .rdp file in the local directory to a file named conn.rdp however after a recent update (or at ...
0
votes
1
answer
158
views
Non-Interactive Authenticating to Azure using User and Password
We need to authenticate to Azure using az cli. Authentication should be non-interactive and via user account. Service principal and managed identity does not have the role that we need to do (Tenant ...
0
votes
1
answer
112
views
Terraform calling the azure cli - Result Error: json: cannot unmarshal string into Go value of type
I have the below Terraform code.
I am trying to get the 'application id' of an Azure Enterpise Application.
# Get the Application_Id of the Enterprise Application having the same name as the Synapse ...
-3
votes
1
answer
133
views
Size of Azure Storage Account inconsistent in CLI and Azure Portal [closed]
Initially I wanted to find out how big (in GB) a Storage account in our Azure Subscription is. Here I had the problem that I get a different size whether I look in the Azure portal or in the Azure Cli ...
0
votes
1
answer
95
views
Pass CLI command output into Terraform for_each expression
I am working on setting up hybrid DNS in my Azure tenant using Terraform and I am running into a problem. I have one DNS forwarding rule set to pass requests to our on-prem DNS server, and I need to ...
0
votes
1
answer
195
views
How to see/extract SQL MI quota limits for all subscriptions/regions
The Azure Portal does not have anywhere to view the current SQL MI quota limits. Quota limits are set per Subscription/Region pair.
The Quota blade does not contain any of this information.
You may ...
1
vote
1
answer
399
views
How to use args parameter with Azure Container App create CLI command?
I'm attempting to create an Azure Container app using the CLI (az containerapp create), but the command is not recognizing the arguments (--args) provided.
Reference for the command: https://learn....
-1
votes
1
answer
1k
views
How to get a list of files in an Azure blob storage with "az" command line tool?
So far I have been using az storage blob directory list -c <ContainerName> -d <DirectoryName> and it has been working. It returns a JSON list of files. Not ideal but it works.
The output ...
1
vote
1
answer
366
views
How to get Role Definition using Azure CLI
I am using the below commands to get the role definition details
az role definition list --name "Storage Blob Data Owner"
Or
az role definition list --name "b7e6dc6d-f1e8-4753-8033-...
1
vote
1
answer
138
views
Use same GUID in bicep templates and Azure Portal
I'm deploying some RBAC roles for Service Principals and Users to access secrets from a Key Vault, at resource scope.
When choosing the name, I build the GUID for the resource name using a combination ...
0
votes
2
answers
66
views
az mysql flexible-server create writes password in the logs [closed]
I am creating a mysql server in Azure using azure-cli in a bash script in Azure DevOps.
The problem I have is that when I run the command az mysql flexible-server create it creates the server, but it ...
0
votes
1
answer
73
views
az mysql flexible-server show returns null
I am creating a mysql server in Azure via Azure DevOps. I have run into an issue and would like to confirm if it is a bug or something I am doing wrong.
I have a bash script that creates the mysql ...
0
votes
1
answer
84
views
Azure FunctionApps list not returning functions
On my Azure account, I have setup 2 FunctionApps as myself. I am doing this via the Contributor role. I can view it via the CLI:
az functionapp list --resource-group <my subscription>
I am ...
-1
votes
1
answer
110
views
az mysql flexible-server create creates server that cannot connect into
The command az mysql flexible-server create creates a server in a state that mysql client cannot connect into. This is done in an Azure DevOps pipeline.
Here is the full script:
az mysql flexible-...
1
vote
1
answer
178
views
How to Retrieve Azure VM Pricing for Enterprise Agreement (EA) Using Azure Pricing API?
I'm trying to retrieve Azure VM pricing specific to my Enterprise Agreement (EA) using the Azure Pricing API. Here is the command I'm using:
Invoke-RestMethod -Uri "https://prices.azure.com/api/...
0
votes
2
answers
2k
views
Getting error when running az extension add --name serviceconnector-passwordless
I am getting the An error occurred. Pip failed with status code 3221225477. Use --debug for more information. When i run az extension add --name serviceconnector-passwordless
Related command
az ...
0
votes
1
answer
249
views
How to get JWT from Microsoft Entra ID with an API scope when doing implicit flow?
There is an App Registration in Azure where the client id is 00001111-aaaa-2222-bbbb-3333cccc4444 and a scope is api://3f4c1d35-3161-4c45-b5ec-ff7be4e89473/access_as_user and a redirect URI is https://...
-1
votes
1
answer
177
views
I have service buses in Azure and need to know if they are still being used via az cli or portal?
I have service bus in azure and need to know if it is still being used. How can i check this in the Azufre portal or via az cli ?
I have tried :
az servicebus queue list --namespace-name <...
0
votes
1
answer
110
views
AZ CLI az dataprotection backup-instance restore initialize-for-item-recovery API issue
I am trying to write a script to automate the process for restoring an Azure AKS cluster to the latest backup using AZ CLI. I am using this documentation, as my guide. However, I am running into a ...
0
votes
0
answers
71
views
az login not working with MSA alias, when using the original MSA login it just assumes the MSA alias account now
I have had issues where I have to "Re-enter your credentials" in Visual Studio 2022 almost daily for several months. I have (for example) [email protected] with both a MSA (Microsoft ...
0
votes
1
answer
559
views
How to Retrieve Vector Store ID in Azure AI Search for RAG Pipeline?
I am working on a Retrieval-Augmented Generation (RAG) pipeline and need to attach my documents to an Azure OpenAI Assistant. I have followed these steps:
Processed Documents: Extracted text and ...
0
votes
1
answer
162
views
Has anyone figured out how copy tags from one object to another using Azure CLI?
I know how to do this in Powershell, but I can't for the life of me figure out how to do this in Azure CLI.
I've spent hours poring over every post I can find tangentially related to this and tested ...
0
votes
1
answer
89
views
az rest for azure devops only returns 203 to login
I want to authenticate to Azure DevOps using Azure CLI. I can run the following command without issues for one organization, but not for others. I am not using a Personal Access Token (PAT), but ...
-1
votes
1
answer
925
views
Why Can't I See Roles Assigned to an App Registration in Azure?
I created an Azure App Registration using the following command:
az ad sp create-for-rbac --name "my-app"
I assigned a role to it using:
az role assignment create --assignee <APP_ID> -...