Bash, the Crucial Exams Chat Bot
AI Bot

AZ-104 - Azure Command & Portal Actions Flashcards

Restart a VM using Azure CLI
CLI to enable diagnostics logging on a VM
az monitor diagnostic-settings create
az vm restart --name <vm-name> --resource-group <rg-name>
az resource tag --tags key=value --resource <resource-id>
az storage blob upload --account-name <account> --container-name <container> --name <blob-name> --file <file-path>
Azure Portal → IAM (Access Control)
Where to view activity logs in the portal
Command to upload a blob to a container using CLI
Where do you assign RBAC roles in the portal?
CLI to update tags on a VM
Monitor → Activity Log
FrontBack
Add a custom DNS server to a VNetAzure Portal → Virtual Networks → DNS Servers tab
CLI command to scale up an App Service Planaz appservice plan update --sku <SKU>
CLI command to show all subscriptionsaz account list
CLI to attach a data disk to a VMaz vm disk attach --resource-group <rg> --vm-name <vm> --name <disk-name>
CLI to create a new resource groupaz group create --name <name> --location <region>
CLI to enable diagnostics logging on a VMaz monitor diagnostic-settings create
CLI to list blob containers in a storage accountaz storage container list --account-name <account>
CLI to list installed extensions on a VMaz vm extension list --resource-group <rg> --vm-name <vm>
CLI to update tags on a VMaz resource tag --tags key=value --resource <resource-id>
Command to assign a role to a useraz role assignment create
Command to create a virtual networkaz network vnet create
Command to create a VM in Azure CLIaz vm create --resource-group <rg> --name <vm-name> --image <image>
Command to delete a resource groupaz group delete --name <rg-name>
Command to list all available VM sizes in a regionaz vm list-sizes --location <region>
Command to list all resource groups in the current subscriptionaz group list
Command to list all virtual machinesaz vm list -o table
Command to resize a VMaz vm resize --resource-group <rg> --name <vm> --size <new-size>
Command to show properties of a resource groupaz group show --name <resource-group>
Command to upload a blob to a container using CLIaz storage blob upload --account-name <account> --container-name <container> --name <blob-name> --file <file-path>
Create a new storage account using the CLIaz storage account create
How to configure Azure Monitor alerts in the portalAzure Monitor → Alerts → New Alert Rule
How to create a managed identity for an Azure VMVM → Identity → System assigned → On → Save
Portal path to enable soft delete on a blob containerStorage Account → Data Protection → Enable soft delete
PowerShell command to create a new Azure resource groupNew-AzResourceGroup
PowerShell to assign a role to a userNew-AzRoleAssignment -ObjectId <user-id> -RoleDefinitionName "Contributor" -Scope "/subscriptions/<sub-id>/resourceGroups/<rg>"
PowerShell to create a new virtual networkNew-AzVirtualNetwork
PowerShell to create a storage accountNew-AzStorageAccount
PowerShell to list all Azure subscriptionsGet-AzSubscription
PowerShell to restart a VMRestart-AzVM -ResourceGroupName <rg> -Name <vm>
PowerShell to stop a running VMStop-AzVM -Name <vm-name> -ResourceGroupName <rg-name> -Force
Restart a VM using Azure CLIaz vm restart --name <vm-name> --resource-group <rg-name>
Set a VM to auto-shutdown in the portalVM → Auto-shutdown blade
What tool can automate Azure deployments using JSON templates?ARM Templates
Where do you assign RBAC roles in the portal?Azure Portal → IAM (Access Control)
Where to configure a network security group in the portalNetwork Security Groups → Inbound/Outbound Security Rules
Where to configure Azure Policy in the portalAzure Portal → Policy → Assignments
Where to configure disk encryption for a VM in the portalVM → Disks → Encryption
Where to configure NSG rules in the portalNetwork Security Group → Inbound/Outbound Rules
Where to configure retention settings for logsLog Analytics Workspace → Usage and estimated costs → Data Retention
Where to configure tags on a resourceResource → Tags
Where to create a file share in the portalStorage Account → File shares → + File share
Where to create alerts based on metricsMonitor → Alerts → + Create → Alert rule
Where to enable backup for an Azure VM in the portalVM → Backup blade → Configure Backup
Where to link VNets via peering in the portalVirtual Network → Peerings → + Add
Where to view activity logs in the portalMonitor → Activity Log
Where to view metrics for a resource in the portalResource → Monitoring → Metrics
Front
Where to create alerts based on metrics
Click the card to flip
Back
Monitor → Alerts → + Create → Alert rule
Front
Where to view metrics for a resource in the portal
Back
Resource → Monitoring → Metrics
Front
What tool can automate Azure deployments using JSON templates?
Back
ARM Templates
Front
Command to list all resource groups in the current subscription
Back
az group list
Front
CLI command to show all subscriptions
Back
az account list
Front
Where to link VNets via peering in the portal
Back
Virtual Network → Peerings → + Add
Front
PowerShell to list all Azure subscriptions
Back
Get-AzSubscription
Front
CLI to create a new resource group
Back
az group create --name <name> --location <region>
Front
Portal path to enable soft delete on a blob container
Back
Storage Account → Data Protection → Enable soft delete
Front
PowerShell to stop a running VM
Back
Stop-AzVM -Name <vm-name> -ResourceGroupName <rg-name> -Force
Front
Command to list all available VM sizes in a region
Back
az vm list-sizes --location <region>
Front
Command to upload a blob to a container using CLI
Back
az storage blob upload --account-name <account> --container-name <container> --name <blob-name> --file <file-path>
Front
Where to configure Azure Policy in the portal
Back
Azure Portal → Policy → Assignments
Front
Command to create a virtual network
Back
az network vnet create
Front
CLI to list blob containers in a storage account
Back
az storage container list --account-name <account>
Front
How to configure Azure Monitor alerts in the portal
Back
Azure Monitor → Alerts → New Alert Rule
Front
Command to delete a resource group
Back
az group delete --name <rg-name>
Front
Command to create a VM in Azure CLI
Back
az vm create --resource-group <rg> --name <vm-name> --image <image>
Front
Restart a VM using Azure CLI
Back
az vm restart --name <vm-name> --resource-group <rg-name>
Front
CLI to enable diagnostics logging on a VM
Back
az monitor diagnostic-settings create
Front
CLI to attach a data disk to a VM
Back
az vm disk attach --resource-group <rg> --vm-name <vm> --name <disk-name>
Front
CLI command to scale up an App Service Plan
Back
az appservice plan update --sku <SKU>
Front
Where to configure retention settings for logs
Back
Log Analytics Workspace → Usage and estimated costs → Data Retention
Front
Where to create a file share in the portal
Back
Storage Account → File shares → + File share
Front
Where to configure tags on a resource
Back
Resource → Tags
Front
Where to configure NSG rules in the portal
Back
Network Security Group → Inbound/Outbound Rules
Front
PowerShell to restart a VM
Back
Restart-AzVM -ResourceGroupName <rg> -Name <vm>
Front
How to create a managed identity for an Azure VM
Back
VM → Identity → System assigned → On → Save
Front
Where to configure disk encryption for a VM in the portal
Back
VM → Disks → Encryption
Front
PowerShell to create a storage account
Back
New-AzStorageAccount
Front
CLI to list installed extensions on a VM
Back
az vm extension list --resource-group <rg> --vm-name <vm>
Front
PowerShell to create a new virtual network
Back
New-AzVirtualNetwork
Front
Add a custom DNS server to a VNet
Back
Azure Portal → Virtual Networks → DNS Servers tab
Front
Command to assign a role to a user
Back
az role assignment create
Front
Set a VM to auto-shutdown in the portal
Back
VM → Auto-shutdown blade
Front
PowerShell to assign a role to a user
Back
New-AzRoleAssignment -ObjectId <user-id> -RoleDefinitionName "Contributor" -Scope "/subscriptions/<sub-id>/resourceGroups/<rg>"
Front
Where to view activity logs in the portal
Back
Monitor → Activity Log
Front
Where do you assign RBAC roles in the portal?
Back
Azure Portal → IAM (Access Control)
Front
Where to enable backup for an Azure VM in the portal
Back
VM → Backup blade → Configure Backup
Front
Command to show properties of a resource group
Back
az group show --name <resource-group>
Front
CLI to update tags on a VM
Back
az resource tag --tags key=value --resource <resource-id>
Front
Command to resize a VM
Back
az vm resize --resource-group <rg> --name <vm> --size <new-size>
Front
Create a new storage account using the CLI
Back
az storage account create
Front
Where to configure a network security group in the portal
Back
Network Security Groups → Inbound/Outbound Security Rules
Front
PowerShell command to create a new Azure resource group
Back
New-AzResourceGroup
Front
Command to list all virtual machines
Back
az vm list -o table
1/46
Helps you map common admin tasks to the correct tools, CLI commands, and portal paths.
Share on...
Follow us on...