Questions tagged as ['azure-cli']
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 used by the function app
az functionapp config appsettings list --name <appname> -g <rg> --query "[].{name:name, value:value}[?name=='AzureWeb ...
Kindly concern that I need to get the azure resource list from the azure CLI excluding 2 kinds of resource types and output the file to a TSV file. I was able do this particular operation via PowerShell from the following command.
PowerShell Command - get-azresource | where ResourceType -notmatch microsoft.network/privatednszones/virtualnetworklinks | where ResourceType -notmatch microsoft.insights/ac ...
This is the command that I tried to use and the error message received is shown below the command
az network lb create --name <name> -g <RG name> --frotnend-ip-name <frontend_name> --frontend-ip-zone "1","2","3" -l southeastasia --private-ip-address <“static_ip”> --private-ip-address-version IPv4 --sku Standard --subnet “<subnet_id>” --subnet-address-prefix “ ...
I am unable to find images shared with me via a Shared Image gallery. The issue is present with both the Az cmdlets and the Az CLI, though for consistency I will stick with PowerShell examples here. Note that referencing publicly available images, such as those published by MicrosoftWindowsServer, are able to be resolved as expected.
There are two shared galleries in question, both are within the sa ...
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 about it:
Scope at which the role assignment or definition applies to, e.g., /subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333, /subscriptions/0b1f6471- ...
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 machine. the command is the following:
az vm run-command invoke --subscription "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" --resource-group "myresourcegroup" --name ...
I'm trying to install the module called az desktoprvirtualization
in Azure CLI and I don't know how to install this extension module in Powershell.
I want to know how to do that in Azure DevOps pipelines and also in a local terminal.
Actually Azure DevOps tells that I can install that by adding this code az config set extension.use_dynamic_install=yes_without_prompt
to avoid prompts. But I don't know ho ...
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 with Azure CLI.
The problem is that some times, remediation is activated immediately, or not at all even after 2 hours, and sometimes compliance doesn' ...