Control Azure services with the CLI Flashcards
1
Q
How to login to Azure using Azure CLI?
A
az login
2
Q
How do you create a resource group in Azure CLI
A
az group create –name “name” –location “location”
3
Q
How can you view the created resources using Azure CLI?
A
az group list or
az group list –ouput tabele (for a more concise view)
4
Q
What does this command do?
export RESOURCE_GROUP=TEST
az group list –query “[?name == ‘$RESOURCE_GROUP’]”.
A
Filters out group list based on query options.
Here it will output group list. with the name stored in the variable $RESOURCE_GROUP