Control Azure services with the CLI Flashcards

1
Q

How to login to Azure using Azure CLI?

A

az login

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you create a resource group in Azure CLI

A

az group create –name “name” –location “location”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly