Back to exam

AZ-104 Cheatsheet

Microsoft Azure Administrator

Download free PDF

Manage Azure identities and governance (20–25%)

Entra group membership

  • **Assigned membership** changes through explicit administration. **Dynamic membership** evaluates attributes and updates user or device groups through the rule.
  • Dynamic rules operate independently for each group. Service licensing and satisfaction of a membership rule are separate conditions.
  • **Microsoft 365 group expiration** applies to eligible Microsoft 365 groups. The lifecycle policy targets groups and provides owner renewal before automatic deletion.
  • **Access reviews** define the resources, subject population and reviewers separately. Guests can be reviewed even where nested group access requires separate remediation.
  • **Administrative units** constrain supported directory roles to the directory objects they contain. Use a role with the required directory action at that scope.

Tenant identity and collaboration

  • **B2B invitations** create external guest representations of existing identities. Use bulk invite or Microsoft Graph invitations to onboard a list of guests.
  • External collaboration settings control inviters and allowed guest domains. Directory roles and subscriptions are independently scoped.
  • Add an **Entra custom domain**, publish the supplied TXT or accepted MX proof at the authoritative DNS provider, and verify before choosing it as a sign-in suffix.
  • Update synchronized fields at the authoritative directory. **Usage location** can be edited in Entra for licensing, and assigning a license does not grant administrative roles.
  • **Connect Sync** processes directory changes through its own engine. Domain-controller replication does not export objects directly to Microsoft Entra ID.

Conditional Access and joined devices

  • Set **Conditional Access assignments** for users, groups or roles and the target application. Locations and supported device signals refine who must satisfy controls.
  • Require MFA and the appropriate **device grant** when applicable. Select the all-controls option if both are mandatory. Session controls govern behavior after access is granted.
  • **Entra joined**, **hybrid joined** and **registered** represent distinct device relationships. Use the exact sign-in and trust conditions that match the deployment.
  • The **Microsoft Entra Joined Device Local Administrator** role provides local administrator access on joined devices. Device registration does not automatically confer that access.

Azure RBAC and delegation

  • An **Azure role assignment** joins principal, role definition and scope. An assignment at a parent scope reaches descendants, while a resource assignment cannot grant parent access.
  • **Contributor** modifies resources without granting access. **Owner** includes delegation, while **User Access Administrator** or **RBAC Administrator** administers assignments subject to restrictions.
  • Select both the smallest applicable **scope** and least-permissive role. **Network Contributor** can manage a load balancer or VNet when assigned on that resource, without general ownership.
  • **VM Contributor** administers VM resources. VM User Login and VM Administrator Login authorize Windows or Linux guest sign-in with different privileges.
  • **Logic App Contributor** can create supported workflows. **Logic App Operator** handles operational actions on existing workflows. Inspect plan and resource type before granting either role.
  • **AssignableScopes** controls where a custom role can be assigned. **NotActions** subtracts permissions from that definition without blocking a grant from another role.
  • An Entra **Global Administrator** can elevate their Azure access at tenant root, then delegate the needed resource access and remove the elevation.
  • Enable a VM's **managed identity** before assigning its Azure role at the target scope. Request a token through the managed-identity endpoint rather than storing credentials.

Policy, tags, locks and costs

  • **Azure Policy** evaluates the resource state or request. Constraints inherited from multiple assignments still apply, and an **allowed-type policy** denies resources outside its list.
  • Specify **assignment scope** and any excluded child scopes. Exclusion from one assignment does not remove requirements from other policy assignments.
  • **Tags** support filtering and chargeback without moving resources. Add cost tags to billable resources and use Cost Analysis to group, filter and export usage.
  • Tags are not automatically copied from resource groups or subscriptions. **Modify** can write on a matching request and can remediate existing resources when configured.
  • **CanNotDelete** protects the resource against deletion. **ReadOnly** also blocks management-plane changes. Check inherited locks and service dependencies before deleting a resource group.
  • **Azure Advisor** suggests eligible rightsizing or cost improvements. Cost Management budgets track spending and notify through thresholds rather than shutting services down on their own.

Implement and manage storage (15–20%)

Redundancy and identity

  • **LRS** uses copies within one physical location and **ZRS** spreads synchronous copies across zones in the primary region.
  • **GRS** and **GZRS** use a secondary region. Their **RA** versions expose secondary read access before failover; failover addresses primary write recovery.
  • Configure an **Azure Files SMB identity source** supported by the clients and storage account. For directory-backed access, assign the share-level role and authorize file access with ACLs.
  • Azure RBAC role assignment availability and successful Kerberos authentication are separate. A cloud directory object alone does not become a usable on-premises AD DS identity.

Data access and secure transfer

  • **Management roles** change account settings. **Data roles** authorize reading or writing blobs and shares. Assign the required role at the smallest appropriate scope.
  • **User delegation SAS** uses Entra-backed delegation for Blob Storage. A **service SAS** can reference a stored access policy. Scope the credential to the named resource, necessary permissions and short expiry.
  • A blob download by known name needs **Read**. Enumeration needs **List**. A container-scoped SAS limits access to that container.
  • **Azure ABAC** conditions can refine supported Blob and Queue data permissions. Use a Blob index tag condition where tag-based access is required.
  • **Azure Files SMB identity** uses the configured identity source, share-level permission and file/directory ACLs. Default share-level permission and explicitly assigned roles have different identity prerequisites.
  • **Storage Explorer** and **AzCopy** transfer data online. Import/Export uses shipped disks for large offline transfers. Key Operator can list and regenerate account keys.
  • **Secure transfer** and **network rules** apply alongside authorization. Configure selected IP networks, supported subnet service endpoints or private endpoints as appropriate.

Blob tiers, replication and protection

  • **Hot, Cool and Cold** are online tiers with differing storage and access costs. **Archive** requires rehydration and has account and redundancy constraints.
  • **Lifecycle rules** can filter on container/name prefixes and apply separate actions to current blobs, snapshots and versions. When both qualify, deletion takes precedence over tiering.
  • **Soft delete**, **versioning** and **point-in-time restore** address distinct recovery needs. **Legal holds** and time-based immutability protect eligible data against modification or deletion.
  • **GRS** replicates asynchronously to the paired region. **Object replication** copies supported block blobs to another account and needs source change feed and versioning on both accounts.
  • **Hierarchical namespace** supplies real directories for Data Lake Storage. Azure Files supports directory structures independently.
  • **Encryption scopes** set keys for Blob containers or blobs. Use supported RSA-family keys and the configured Key Vault permissions for customer-managed storage keys.
  • **Blob Inventory** emits scheduled CSV or Parquet reports to a destination container. Set blob type and prefix filters to constrain inventory.

Azure File Sync

  • Create a **Storage Sync Service** and register the Windows Server after installing the Azure File Sync agent.
  • A **sync group** connects one cloud endpoint, representing an Azure file share, to one or more server endpoints, representing paths on registered servers.
  • **Cloud tiering** retains frequently used files locally and recalls tiered data from the Azure file share when accessed.
  • Use the **SMB share endpoint** and a supported authentication method when mounting a share. Network firewall and DNS requirements apply alongside authorization.

Deploy and manage Azure compute resources (20–25%)

Deployment artifacts and secrets

  • **Deployment history** at the deployment scope can provide the template used for that deployment. Exporting selected resources reconstructs a template from current resource state.
  • Use **secure parameter values** from an Azure Key Vault secret reference. Configure vault access for ARM deployment and authorize the deployment principal.
  • Provision Linux guests with **cloud-init** when the selected image supports it. Pass custom data to install or configure guest packages and trust material during provisioning.
  • **Generalize** an image when multiple instances require unique machine identity. Upload a compatible VHD before publishing an image or gallery version.
  • **Marketplace plan acceptance** applies to the subscription and specific image plan. Satisfy acceptance before deploying the image through automation.
  • A move between resource groups changes effective policy scope. It does not by itself relocate the resource to the destination group's metadata location.

VM availability and disk operations

  • **Fault domains** distribute infrastructure failure exposure. **Update domains** spread planned maintenance in an availability set. Supported fault-domain options vary by placement.
  • If a target size is absent from the current **availability-set cluster**, deallocating the set's VMs may be required before allocation to compatible hardware.
  • **Availability zones** isolate datacenter failures within a region. Plan another region for recovery from a regional outage.
  • Quiesce applications and unmount a mounted data disk before **detaching** it. Where live attachment operations are supported, only disk availability needs to change.

VM placement and sizing

  • **Availability zones** distribute replicas across datacenters. An **availability set** separates hosts by fault domain and maintenance batches by update domain.
  • **Regional vCPU quota** and **VM-family quota** both apply to a deployment. Deallocated VMs count toward quota.
  • **Proximity placement groups** colocate compatible compute resources in the same region for low latency.
  • **Resize** can reboot a running VM. Deallocation can make additional sizes available. Check availability-set cluster capacity before resizing a member.
  • **Redeploy** moves the VM to a new host and can erase temporary disk data. Files on persistent managed disks survive a host move.
  • **NIC placement** follows the VM's region and VNet, independently of the resource group. To migrate to another VNet, recreate the VM with a NIC in the target network and retain or copy the OS disk as applicable.

ARM and Bicep deployment

  • **Deployment scope** selects the command. Use New-AzResourceGroupDeployment for resource-group deployments and New-AzDeployment for subscription scope.
  • **Resource location** follows the resource declaration. Selecting a different parameter value has an effect when the declaration references that parameter.
  • **Dependencies** order provisioning. A VM depends on its NIC, and the NIC can in turn depend on network resources. A resource property loop can generate multiple data disks.
  • **Secure parameters** can reference a Key Vault secret. Enable template access at the vault and authorize the deploying principal.
  • **VM extension protectedSettings** holds sensitive inputs such as the domain-join password. Place nonsecret domain and OU settings in ordinary settings.
  • **Deployment history** shows the template, time and operation details at the original scope. **Complete mode** can delete eligible resources absent from a resource-group template. Use what-if and check deletion protection.

VM Scale Sets and App Service scaling

  • **Uniform orchestration** manages consistent instances as one group. **Flexible orchestration** manages standard Azure VM instances with scale-set placement.
  • **Extension profile** defines provisioning tasks that run on scale-set instances. Use **Custom Script Extension** to install software at deployment.
  • **Autoscale profiles** define minimum, maximum and fallback instance counts. Rules evaluate aggregate metrics over a window, apply a scale step and wait through a cooldown.
  • **Rule-based scaling** uses an explicit metric threshold such as CPU percentage. App Service automatic scaling uses HTTP demand on supported tiers.
  • **OS image upgrades** and changes to the scale-set model follow distinct settings. Check the selected manual or rolling policy before expecting existing instances to take a configuration change.

App Service plans, slots and backup

  • **App Service plans** supply regional compute and an OS family. Compatible apps can share plan capacity. Full .NET Framework apps require Windows.
  • **Deployment slots** support testing and warm-up. Swap staging into production and swap back to roll back. Slot settings stay associated with their configured slot.
  • **Custom domains** use DNS verification before binding. A TXT record can prove ownership. Match the DNS record for traffic to the hostname mapping.
  • **TLS certificates** require a supported certificate with private key. An App Service Key Vault import uses the appropriate service principal permissions to read the certificate and associated secret.
  • **Custom backups** use a storage container. Exclude specified files and folders with a _backup.filter file in the app content root.

Registries and container hosting

  • **ACR Basic, Standard and Premium** support a private image registry. Premium adds features such as geo-replication, private endpoints and dedicated data endpoints.
  • **Image publishing** requires a registry login, a tag under the registry endpoint and a push. Deploying a private image requires pull permission for the runtime identity.
  • **Registry admin user** is a shared registry credential. Use an identity and the least-privilege pull role where supported.
  • **ACI container groups** share network and lifecycle. A public group exposes declared ports regardless of client OS. **OnFailure** restarts a container after an unsuccessful exit.
  • **Container resource requests** reserve capacity. Set a CPU limit to cap a container's use of spare group capacity.
  • **Container Apps** supports event-driven replica scaling. **App Service** supports web workload scaling. ACI itself supplies individual container groups without a built-in replica autoscaler.
  • **Image trust** covers artifact signatures and verification. Distinguish this from registry encryption. Check modern signing support separately from historical Docker Content Trust.

Implement and manage virtual networking (15–20%)

Addressing, filters and routing

  • Use **P2S** VPN for an individual client and **S2S** for a remote network. Download a fresh Windows VPN client package after route topology changes when the client needs updated routes.
  • For peering with a shared gateway, enable gateway transit on the gateway-owning VNet and remote gateway use on its peer where supported.
  • Reserve a static private address on the **Azure NIC IP configuration**. A private IP and associated public IP can belong to the same NIC.
  • One **subnet NSG** applies a shared filtering policy to the subnet. If a NIC also has an NSG, evaluate effective rules from both scopes.
  • Delegate a child DNS zone with an **NS record set** in the parent. Public domain delegation points the registrar to the Azure DNS nameservers.

Private application distribution

  • **Azure Load Balancer** distributes L4 traffic across healthy backend instances. An internal frontend serves clients with network reachability to its private IP.
  • **Application Gateway** routes HTTP(S) at L7 and can serve private web workloads. Protocol requirements determine when it is a viable alternative to an internal L4 balancer.
  • The traditional **SQL availability-group listener** behind an Azure internal Load Balancer uses Floating IP and a dedicated TCP probe to locate the current primary.

Subnets, NSGs and connectivity

  • **Address space** defines the ranges available for subnets. A NIC gets its private IP from its assigned subnet and must match the VNet region.
  • **NSGs** filter traffic by direction, priority, address, port and protocol. If both subnet and NIC have an NSG, the flow must pass both. Use **application security groups** to group NICs by workload.
  • **RDP** needs TCP 3389. An allow for UDP alone does not satisfy it. To block public RDP while keeping HTTPS and on-premises access, scope the rule to the internet source and matching RDP traffic.
  • **IP flow verify** identifies the rule permitting or denying a specified flow. **Connection troubleshoot** tests reachability at a point in time. **Connection Monitor** tracks it over time.
  • **Custom DNS** at VNet scope supplies defaults. NIC-level DNS takes precedence. A custom DNS server must be reachable from clients.
  • **Policy** can deny a resource type or require network configuration at deployment. A **resource lock** constrains administrative writes or deletions and inherits from its parent scope.

VNet peering, DNS and VPN

  • **VNet peering** requires nonoverlapping address spaces and both links connected. Direct peerings are non-transitive. After resizing a peered network, synchronize the peer's address space.
  • **Gateway transit** can let a spoke use the hub VPN gateway. Refresh the Windows P2S client package after route/topology changes when required.
  • **Site-to-site VPN** uses a GatewaySubnet, Azure VPN gateway, local network gateway describing the remote peer and a connection. Check supported coexistence with ExpressRoute.
  • **Certificate-authenticated P2S** requires a trusted root configured at the gateway and a valid client certificate with private key on each connecting client.
  • **Private DNS links** enable resolution for the linked VNet. Autoregistration adds private VM A records. Public zones need registrar delegation to the Azure DNS nameservers.
  • **Zone file import** through Azure CLI migrates many public DNS records at once.

Azure Load Balancer and App Service networking

  • **Client IP session persistence** keeps flows from the same client address mapped to a backend when possible. **Floating IP** changes frontend address handling and serves different scenarios.
  • **Inbound NAT** maps a frontend port to a specified backend endpoint. A load-balancing rule distributes flows among healthy endpoints.
  • **Health probes** determine where the load balancer sends new flows. Standard frontends require explicit permitted traffic through applicable NSGs.
  • **HA Ports** on Standard internal Load Balancer distribute traffic among healthy NVAs. Check Floating IP and routing for the appliance design.
  • **VNet integration** gives App Service outbound access to private endpoints and workloads such as a database VM. Private endpoints for App Service cover its inbound connectivity.

Route tables, Firewall and Bastion

  • Associate a **route table** to a subnet. A **Virtual appliance** next hop uses its private IP address. For an NVA, enable **IP forwarding** on forwarding NICs and route packets within the guest.
  • For **Azure Firewall**, use the required regional VNet and dedicated subnet. Send workload traffic to its private IP with user-defined routes. Review egress policy and return-path symmetry.
  • **Azure Bastion** reaches VM private IPs using RDP or SSH. Permit TCP 3389 or 22 from the Bastion subnet to the target, and distinguish the HTTPS client-to-Bastion path. Use a supported tier for host scaling and native client features.
  • **VNet peering** carries traffic on the Microsoft backbone. **Azure Virtual WAN** uses hubs to connect branch sites and VNets. For dual-redundant VPN examine both Azure gateway instances and both on-premises devices.
  • **Service endpoints** extend subnet identity to the supported Azure service's public endpoint. A service endpoint policy can restrict access to selected storage accounts. A **private endpoint** supplies a private IP inside a VNet.
  • An Azure IPv4 subnet reserves five addresses. For a **/25**, that leaves 123 assignable addresses.

Monitor and maintain Azure resources (10–15%)

Azure Monitor and network telemetry

  • **Azure Monitor Metrics** show performance signals. Activity Log records control-plane events. Advisor presents recommendations based on monitored behavior.
  • **Log Analytics** uses KQL. Use a table-scoped search for text matching or a where expression for a specific event field.
  • Guest OS measurements such as available memory require the appropriate guest telemetry collection. Alerts evaluate the configured signal and notify through actions.
  • **Traffic Analytics** analyzes collected network flow logs. Setup permissions can span the source network, Network Watcher, storage and Log Analytics workspace.

Backup and Site Recovery

  • **Azure Backup** retains recovery points. A file-level restore can mount supported disks without replacing the source VM and should use a suitable clean host after compromise.
  • **Site Recovery** replicates workloads for failover. A Hyper-V deployment uses a Recovery Services vault, registered Hyper-V site and replication policy.
  • Check the **backup support matrix** for OS, disk and workload eligibility. Running and powered-off backups have different consistency behavior.
  • Active replication can block **resource moves** and vault moves. Validate dependencies and plan an authorized protection transition before changing scope.
  • **Vault deletion** requires protected and retained items and related dependencies to be cleared under the applicable retention rules. Resolve inherited locks before deletion.

Collection, queries and alerts

  • **Azure Monitor Agent** collects guest data through associated **data collection rules**. Use **XPath** to filter Windows events during collection and **KQL** to filter or project records in Log Analytics.
  • **Diagnostic settings** route eligible platform logs and metrics to Log Analytics, Storage or Event Hubs. Route subscription **Activity Logs** centrally to report changes across subscriptions.
  • **Alert rules** define scope, signal and condition. **Action groups** send notifications or invoke automation. **Alert processing rules** can suppress notifications during a maintenance window without changing the original condition.
  • **Application Insights** tracks app requests, dependencies, exceptions, availability and performance. Use supported automatic instrumentation, availability tests and **Profiler** for the respective workloads.
  • **Traffic Analytics** processes flow records in Log Analytics. Use **VNet flow logs** for current deployments. Packet capture records packets, while **Connection Monitor** tracks latency and reachability over time.
  • **Azure Monitor Private Link Scope** links monitoring resources to a private endpoint backed by the proper DNS setup. Use compatible private data collection endpoints where required.
  • **Stream Analytics** backlogged events measure input waiting for processing. Late and out-of-order events represent separate timing conditions.

Backup policies, vaults and restore

  • **Recovery Services vault** protects supported Azure VMs and Azure Files workloads. **Backup vault** covers workloads such as Blob and Azure Disk Backup. Check the workload type, vault region and policy compatibility.
  • **Backup policies** define schedule and retention. Distinguish instant snapshots from longer-held vault recovery points. Match policy frequency to the protected workload.
  • **Restore to new VM** lets the original remain available during recovery. **Replace existing** rolls protected disks back to the chosen recovery point. Changes only on later disk state can be lost.
  • **File recovery** mounts supported VM recovery-point volumes on a suitable host. A folder backed up by **MARS** requires the appropriate agent and recovery credentials.
  • **Resource Guard** adds multi-user authorization for protected operations. Manage its permissions separately from vault operators.
  • **Test failover** validates Site Recovery with an isolated VNet and selected target subnet mapping. A backup recovery point and a replicated failover target serve different purposes.