Bird
Raised Fist0
Azurecloud~5 mins

Azure Portal walkthrough - Commands & Configuration

Choose your learning style10 modes available
Introduction
Azure Portal is a website where you can manage your cloud resources easily. It helps you create, view, and control services like virtual machines and databases without needing to write code.
When you want to create a new virtual machine without using command lines.
When you need to check the status of your cloud services quickly.
When you want to set up storage accounts or databases with a simple interface.
When you want to monitor usage and billing information for your cloud resources.
When you want to manage user access and permissions for your cloud projects.
Commands
This command logs you into your Azure account from the command line so you can manage resources. It opens a browser window to enter your credentials.
Terminal
az login
Expected OutputExpected
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code ABCD1234 to authenticate. You have logged in. Now let us find all the subscriptions to which you have access... [{ "cloudName": "AzureCloud", "homeTenantId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "id": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy", "isDefault": true, "name": "My Azure Subscription", "state": "Enabled", "tenantId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "user": { "name": "user@example.com", "type": "user" } }]
This command creates a resource group named 'example-resource-group' in the East US region. Resource groups help organize your cloud resources.
Terminal
az group create --name example-resource-group --location eastus
Expected OutputExpected
{ "id": "/subscriptions/yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy/resourceGroups/example-resource-group", "location": "eastus", "managedBy": null, "name": "example-resource-group", "properties": { "provisioningState": "Succeeded" }, "tags": {}, "type": "Microsoft.Resources/resourceGroups" }
→
--name - Specifies the name of the resource group
→
--location - Specifies the Azure region for the resource group
This command creates a virtual machine named 'example-vm' in the resource group. It uses an Ubuntu image and sets up SSH keys for secure login.
Terminal
az vm create --resource-group example-resource-group --name example-vm --image UbuntuLTS --admin-username azureuser --generate-ssh-keys
Expected OutputExpected
{ "fqdns": "", "id": "/subscriptions/yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy/resourceGroups/example-resource-group/providers/Microsoft.Compute/virtualMachines/example-vm", "location": "eastus", "macAddress": "00-0D-3A-XX-XX-XX", "powerState": "VM running", "privateIpAddress": "10.0.0.4", "publicIpAddress": "52.170.XX.XX", "resourceGroup": "example-resource-group", "zones": "" }
→
--resource-group - Specifies the resource group to place the VM in
→
--name - Names the virtual machine
→
--image - Chooses the operating system image
→
--admin-username - Sets the admin user for the VM
→
--generate-ssh-keys - Creates SSH keys for secure access
This command lists all virtual machines with details like status and IP addresses in a readable table format.
Terminal
az vm list -d -o table
Expected OutputExpected
Name ResourceGroup Location Zones Size OsType ProvisioningState PowerState ---------- -------------------- ---------- ------- ------- -------- ------------------- ------------ example-vm example-resource-group eastus Standard_B1s Linux Succeeded VM running
→
-d - Shows instance view details like power state
→
-o table - Formats output as a table for easy reading
Key Concept

If you remember nothing else from this pattern, remember: Azure Portal and CLI let you create and manage cloud resources easily without needing complex code.

Common Mistakes
Trying to create resources without logging in first
Commands fail because Azure does not know who you are or what subscription to use
Always run 'az login' first to authenticate your session
Using resource group names or locations that do not exist or are misspelled
Azure cannot place resources in unknown groups or regions, causing errors
Create the resource group first and double-check the location name before creating resources
Not generating SSH keys or providing admin credentials when creating a VM
You cannot securely access the VM without proper credentials
Use '--generate-ssh-keys' or specify admin username and password during VM creation
Summary
Use 'az login' to sign into your Azure account from the command line.
Create a resource group to organize your cloud resources.
Create a virtual machine with a chosen image and secure access.
List your virtual machines to check their status and details.

Practice

(1/5)
1. What is the primary purpose of the Azure Portal?
easy
A. To visually manage and monitor cloud resources
B. To write and run code directly in the browser
C. To host websites without any setup
D. To replace all command-line tools permanently

Solution

  1. Step 1: Understand Azure Portal's role

    The Azure Portal is designed as a visual interface for managing cloud resources.
  2. Step 2: Compare options with Portal's function

    Only To visually manage and monitor cloud resources describes managing and monitoring resources visually, which matches the Portal's purpose.
  3. Final Answer:

    To visually manage and monitor cloud resources -> Option A
  4. Quick Check:

    Azure Portal = Visual management [OK]
Hint: Azure Portal is a website to manage resources visually [OK]
Common Mistakes:
  • Thinking Azure Portal is for coding only
  • Confusing Portal with hosting services
  • Assuming it replaces all command-line tools
2. Which of the following is the correct way to start creating a new resource in the Azure Portal?
easy
A. Open the Azure CLI and type 'az create resource'
B. Send an email to Azure support requesting a resource
C. Download the Azure Portal app and install it
D. Click on 'Create a resource' button on the homepage

Solution

  1. Step 1: Identify how to create resources in Azure Portal

    The Portal provides a 'Create a resource' button on its homepage for easy resource creation.
  2. Step 2: Eliminate incorrect options

    Options A, C, and D do not describe actions within the Portal website interface.
  3. Final Answer:

    Click on 'Create a resource' button on the homepage -> Option D
  4. Quick Check:

    Create resource = 'Create a resource' button [OK]
Hint: Look for 'Create a resource' button on Portal homepage [OK]
Common Mistakes:
  • Confusing Portal actions with CLI commands
  • Thinking you must install an app to use Portal
  • Believing resource creation requires support emails
3. In the Azure Portal, after creating a virtual machine, which section would you visit to monitor its performance?
medium
A. Resource groups
B. Activity log
C. Metrics
D. Marketplace

Solution

  1. Step 1: Understand monitoring options in Azure Portal

    The 'Metrics' section shows performance data like CPU and memory usage for resources.
  2. Step 2: Match sections to their purpose

    'Resource groups' organize resources, 'Activity log' shows events, 'Marketplace' is for buying services, so 'Metrics' is correct for performance monitoring.
  3. Final Answer:

    Metrics -> Option C
  4. Quick Check:

    Performance monitoring = Metrics [OK]
Hint: Use 'Metrics' to check resource performance in Portal [OK]
Common Mistakes:
  • Confusing 'Activity log' with performance metrics
  • Looking in 'Resource groups' for monitoring data
  • Thinking 'Marketplace' shows resource stats
4. You tried to create a new storage account in Azure Portal but the 'Create' button is disabled. What is the most likely reason?
medium
A. You have not filled all required fields in the form
B. Your internet connection is too slow
C. Azure Portal does not support storage accounts
D. You need to restart your computer

Solution

  1. Step 1: Identify why 'Create' button is disabled

    The Portal disables the 'Create' button if required form fields are incomplete to prevent errors.
  2. Step 2: Evaluate other options

    Slow internet or computer restart do not disable buttons; Azure Portal supports storage accounts.
  3. Final Answer:

    You have not filled all required fields in the form -> Option A
  4. Quick Check:

    Incomplete form disables 'Create' button [OK]
Hint: Fill all required fields to enable 'Create' button [OK]
Common Mistakes:
  • Blaming internet speed for disabled buttons
  • Thinking Portal lacks storage account support
  • Restarting computer unnecessarily
5. You want to organize multiple Azure resources by project in the Portal. Which feature should you use to group and manage these resources together?
hard
A. Azure DevOps
B. Resource groups
C. Azure Policies
D. Azure Blueprints

Solution

  1. Step 1: Understand grouping features in Azure Portal

    Resource groups are containers that hold related resources for easy management by project or purpose.
  2. Step 2: Differentiate other options

    Azure Blueprints define templates, Policies enforce rules, DevOps is for development pipelines, so Resource groups fit best for grouping resources.
  3. Final Answer:

    Resource groups -> Option B
  4. Quick Check:

    Group resources by project = Resource groups [OK]
Hint: Use Resource groups to organize related Azure resources [OK]
Common Mistakes:
  • Confusing Blueprints with resource grouping
  • Using Policies instead of groups
  • Thinking DevOps manages resource grouping
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard