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.
azure-cli
2,286
questions
0
votes
1
answer
61
views
I cannot extract .sql CREATE TABLEs for each table in my Azure SQL Database in my Azure Repo
Like the question says, how can I do that? This is the script I am currently using through the generation of a .dacpac file, but I've seen that this can be done with a PowerShell script instead of ...
0
votes
0
answers
39
views
how to login with Azure devops workload identity service connection using azure cli
how do it get this $AZURE_FEDERATED_TOKEN_FILE value while executing this in CMD?
az login --federated-token "$(cat $AZURE_FEDERATED_TOKEN_FILE)" --service-principal -u $AZURE_CLIENT_ID -t $...
0
votes
2
answers
122
views
create Azure Keyvault secret without exposing values
My requirement is to automate the creation of secrets in Keyvault without exposing the values of these secrets during the pipeline execution(AzureDevops Server).
tried, different options such as ...
0
votes
0
answers
41
views
Executing 3 commands in a container [duplicate]
This command works
az containerapp exec --name weather-scrapy-shell --resource-group rg-SportsAzureFunctionsContainer --container weather-scrapy-shell --command "/bin/sh"
This command ...
0
votes
1
answer
60
views
Renew JSON authentication key of Service Principal
I have created a Service Principal to access resources in CI before using the az ad sp create-for-rbac command:
az ad sp create-for-rbac --name "my-ci-sp" --role contributor \
--scopes /...
0
votes
1
answer
69
views
How to clone user accesses from one to another?
We are planning to connect Azure DevOps with Azure AD.
We Know that users, who have correct organization emails in azure DevOps, will inherit all accesses after connection with AAD, however users with ...
0
votes
1
answer
102
views
how to clean specific folder when deploying to that folder with 'az webapp deploy'
I am trying to deploy a zip file to a specific folder within a webapp, but I want to make sure that folder is empty.
this is my command:
az webapp deploy
--resource-group $(ResourceGroup)
--...
1
vote
2
answers
47
views
Azure Traffic Manager Endpoint: The following locations specified in the geoMapping property for endpoint are not supported
I'm trying to create an Azure Traffic Manager Endpoint via Terraform, but I don't know what to put in "geo_mappings" value. This is my resource:
resource "...
0
votes
1
answer
87
views
How to get details of an Azure AD group from az cli
I am trying to get the following information from an Azure group. (my plan is to delete any of the unnecessary groups that are floating here and there with 0 users, 0 groups, 0 group memberships (that ...
0
votes
1
answer
65
views
Bind managed certificate to Custom Domain for Azure Container App with az CLI fails
I am trying to create a shell script to automate the creation of a managed certificate for a Custom Domain for a Azure Container App using az CLI.
The problem I am experiencing is related to an error ...
0
votes
1
answer
36
views
remove event subscriptions from system topics
my powershell code is so slow to delete all the event subscriptins from the system topic.
# Get all event subscription names associated with the system topic
$subscriptions = az eventgrid system-topic ...
0
votes
1
answer
31
views
Use Chef Azure InSpec / cinc-auditor with OIDC (federated-token) instead of password
We are currently running test using cinc-auditor and azure inspec and are in the process of changing from password based authentication to OIDC and are not able to run the tests.
We changed from to ...
1
vote
2
answers
40
views
How do I generate a list of all the times I've restored an Azure SQL Database?
In the Azure Portal, SQL Databases have a "Restore" feature, which will create a new database from a restore a backup/restore point.
Suppose I have an Azure SQL Database named "Contoso&...
-1
votes
2
answers
53
views
Azure webapp create statement throws error
I'm trying to create webapp through azure cli. I do get error as '6.0' is not recognized as an internal or external command. Any idea how to resolve this error?
az webapp create -n testwebapp1 -g test-...
0
votes
1
answer
35
views
Issue with Azure CLI Authentication on Virtual Machine: Access Currently Unavailable Error
Using Terraform, I created an architecture for my project and connected via Azure CLI from the terminal successfully. However, when I created a virtual machine, installed Azure CLI on it, and tried to ...