2,382 questions
0
votes
1
answer
49
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 ...
0
votes
1
answer
56
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....
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
1
answer
64
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 ...
1
vote
1
answer
137
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 ...
0
votes
1
answer
89
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
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
89
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 ...
-2
votes
1
answer
75
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?
1
vote
1
answer
97
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 ..." ...
0
votes
2
answers
135
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
votes
1
answer
444
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&...
0
votes
1
answer
126
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 ...
0
votes
1
answer
149
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
108
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 ...
0
votes
1
answer
94
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 ...
1
vote
1
answer
375
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
vote
1
answer
336
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-...
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
74
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
vote
1
answer
173
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
1
answer
232
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://...
0
votes
1
answer
101
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
1
answer
526
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
80
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 ...