Start here · Lesson 1 of 24

How an administrator reaches Azure

Before any topic: what you are sitting at, what you log in to, and how a click becomes a change on a server.

About 10 min · Interactive · 3 practice questions

Exam objective
Audience profile: experience with the Azure portal, PowerShell, Azure CLI, ARM/Bicep and Entra IDFoundation for all five domains · 100% of the exam · typical question: "Which tool/command achieves X" and case-study scenarios where you must know what the portal can and cannot do
In one sentence. Azure is Microsoft's data centres rented by the hour. You never touch the hardware. You send instructions over the internet to a front desk called Azure Resource Manager, it checks you are allowed, and it carries the instruction to the right machine.
Youlaptop, browseror terminalInternetHTTPS 443Entra ID sign-inpassword + MFAAzure Resource Managerthe one API everything usesAzure Policy + RBAC checkallowed? at this scope?Storage accountVirtual machineVirtual networkPortal, PowerShell, Azure CLI and templates are four doors into the same corridor. None of them talks to a VM directly.
Every request you make: prove who you are, hit the Resource Manager API, pass the permission and policy check, then the resource is touched.

The four doors

DoorWhat it looks likeWhen you use it
Azure portalportal.azure.com in a browser. Menus, blades, forms.Daily admin, learning, one-off changes. The exam shows screenshots of it.
Azure PowerShellCommands like New-AzVM in a PowerShell window after Connect-AzAccountWindows admins, scripts
Azure CLICommands like az vm create after az loginLinux/Mac admins, scripts, pipelines
Templates (ARM JSON or Bicep)A text file describing the resources; you hand the file to AzureRepeatable environments, change control

Cloud Shell is a terminal inside the portal (the >_ icon at the top) that already has both PowerShell and CLI installed, so you need nothing on your PC. It asks for a small storage account the first time to keep your files.

Managing a server once it exists

There are two different things you might mean by "managing a server", and they use two different roads.

  • Managing the box: turn it on or off, make it bigger, add a disk, delete it. This is done through the portal (or a command), because Azure owns the box. You never need to log in to Windows for this.
  • Working inside the box: install software, edit a config file, look at Event Viewer. For this you must open a session on the operating system itself, as if you were sitting at its keyboard.

Words you need for the second road:

WordPlain meaning
RDPRemote Desktop. The Windows way to see a server's screen from your PC. The app is already on every Windows machine.
SSHThe Linux equivalent: a text terminal instead of a screen.
PortA numbered door on a server. Each service listens on its own door: RDP on 3389, SSH on 22, websites on 443. A firewall opens or closes doors.
Private IPThe server's address inside your Azure network (10.0.1.4). Reachable only from inside that network.
Public IPAn address on the internet (20.5.5.5) that Azure can attach to a server so the whole world can reach it. Convenient, and dangerous for a management door.
NSGNetwork security group: a list of allow/deny rules, like a firewall, attached to the server's network card or its subnet. Covered properly in the networking module.
Path A · Risky way: the server has its own public IP
Your PCRemote Desktop app
→connects over the internet
Internetanyone can also try
→public IP 20.5.5.5, port 3389
VM with public IP20.5.5.5 : port 3389
Exposed to the whole internet
  • RDP door 3389 is visible to everyone
  • Password-guessing bots find it within hours or days
  • Higher risk of unauthorised access
  • Needs constant patching and extra firewall rules
Path B · Better way: Azure portal + Bastion (no public IP on the VM)
Your PCjust a web browser
→HTTPS (secured)
Azure portalsign in with your account plus MFA
→opens the session
Azure Bastionsecure connection inside Azure
→RDP stays inside Azure
VM (no public IP)private IP only, e.g. 10.0.1.4
More secure (recommended)
  • VM has no public IP address
  • Only people who can sign in to the portal (with MFA) can reach it
  • RDP traffic never leaves Azure's network
  • No exposure to the public internet
  • Much lower risk of automated attacks
Which is better?

Giving the server its own public IP is easier but risky, because it exposes the server to the whole internet. Azure Bastion keeps the VM private: you reach it only through the portal with your account and MFA. The exam treats Bastion as the correct answer whenever both are offered.

Path A is how most people would do it on day one: give the VM a public IP and open port 3389 in the NSG. It works, and within hours automated bots across the internet find the open door and start guessing passwords. Every exam question that mentions "without a public IP", "without opening management ports" or "reduce the attack surface" is steering you away from this.

Path B is Azure Bastion. Think of it as a guarded reception desk that Microsoft runs inside your network. You never connect to the server directly. You sign in to the portal (which already demands your password and MFA), open the VM's page, click Connect › Bastion, type the server's own username and password, and the server's desktop appears in a browser tab. The traffic between you and Azure is ordinary HTTPS on port 443, the same as any website. The server keeps only its private address, so nothing on the internet can even see it.

You, the admin: open a desktop on VM-Web1 the safe way

  1. One-off setup per network: deploy Bastion into the VM's virtual network (about 10 minutes; details in the networking module). Do not give VM-Web1 a public IP.
  2. Virtual machines › VM-Web1 › Connect › Bastion.
  3. Enter the local administrator username and password you set when you built the VM (or an SSH key for Linux). Click Connect.
  4. A new browser tab shows the Windows desktop. Work as normal; close the tab when done.
Exam wording. "Admins must RDP to VMs that have no public IP" = Bastion. "Must not open port 3389 to the internet" = Bastion. If a question offers "assign a public IP and add an NSG rule for 3389 from the admin's home IP", it is technically possible but it is the distractor whenever Bastion is also offered.

How the portal is organised

  • Home shows recent resources and a search bar at the top. Searching is faster than menus: type "storage accounts" and go.
  • Every resource opens as a blade with a left menu: Overview, Activity log, Access control (IAM), Tags, then the resource's own settings, then Monitoring, then Automation (where "Export template" lives).
  • Creating anything is a wizard with tabs: Basics → the resource's own tabs → Tags → Review + create. The Review tab validates and shows the equivalent template under "Download a template for automation".

You, the admin, on day one

  1. Sign in at portal.azure.com with your work account. Entra ID checks password and MFA.
  2. Top-right shows your directory (tenant); switch it if your company has more than one.
  3. Open Subscriptions to see which subscriptions you can reach. If the list is empty you have no Azure role yet, even if you are a Global Administrator in Entra ID.
  4. Open Cloud Shell (>_), run az account show to confirm which subscription commands will target.
Exam framing. Questions say "you need to ensure that…" and list options from different doors. Any door reaches the same API, so pick by what the requirement demands (least effort, repeatable, no public IP), not by the tool name.

Key points

  • Four doors, one corridor. Portal, PowerShell, CLI and templates all send requests to Azure Resource Manager, which checks your identity, your role and policy before touching anything.
  • Managing the box is not the same as working inside it. The portal resizes or deletes a VM; RDP or SSH opens its desktop.
  • Bastion is the exam answer for reaching a VM desktop: no public IP, no open 3389/22, session in a browser over HTTPS.
  • Cloud Shell gives you both command lines inside the portal with nothing installed.

Formal terms: Azure Resource Manager (ARM), control plane (managing the resource) vs data plane (using what is inside it), Cloud Shell, blade, tenant.

Check your understanding

3 exam-style questions in the formats AZ-104 uses. Each is marked when you check it, with the reasoning.

0 of 3 checked

All scenarios and questions are original. None are taken from the exam, Microsoft's practice assessment or any question bank. PrepToExcel is not affiliated with Microsoft.