← Back to the feed

Security

Microsoft Defender for Cloud Labs: Module 1 — Preparing the Environment

Official Labs Architecture diagram from Module 1 of the Microsoft Defender for Cloud labs, showing the asclab resource group, virtual machines, AKS, and related Azure services.

For a senior engineer learning Azure, Kubernetes, and cloud security, the official Microsoft Defender for Cloud labs are a practical place to start. Module 1 – Preparing the Environment sets up a trial subscription, deploys a representative estate — including an AKS cluster — and turns on Defender for Cloud so later modules have something to inspect.

What Microsoft Defender for Cloud is

Microsoft’s overview describes Microsoft Defender for Cloud as a cloud-native application protection platform (CNAPP). The two capabilities it calls out are cloud security posture management (CSPM) and a cloud workload protection platform (CWPP): improving the security of cloud resources, and defending workloads such as virtual machines, containers, storage, and databases. Official coverage includes Azure, AWS, GCP, and on-premises systems.

What the lab series is

The Azure/Microsoft-Defender-for-Cloud Labs ReadMe describes hands-on practice across Cloud Security Posture Management (CSPM) and Cloud Workload Protection (CWP), in three tracks: Beginner (level 100), Intermediate (level 200), and Advanced (level 300+). Module 1 is Level: 100 (Beginner) and is estimated at 30 minutes. The ReadMe also says an Azure Trial Subscription provides capabilities for 30 days, so complete this lab in time to use that trial.

What Module 1 sets up

Exercise 1: Creating an Azure Trial Subscription. Work in an incognito or in-private browser session, with a Microsoft Account — not a corporate user — at azure.microsoft.com/en-us/free. If you need an account, the lab points you to signup.live.com. After the four signup steps (profile, identity verification by phone, identity verification by card, and agreement), you should have a subscription named Azure subscription 1, including owner permissions.

Exercise 2: Provisioning resources. An ARM template deploys the environment from the module’s Deploy to Azure button. Select Azure subscription 1, create a resource group — the lab suggests naming it asclab — pick the closest data center region, and set a password used across services such as virtual machines and the SQL database. That password must be between 12 and 72 characters and have 3 of the following: 1 lower case, 1 upper case, 1 number and 1 special character. The deployment takes about 10 minutes. During it, an additional resource group is created automatically for Kubernetes resources, named asclab-aks.

The lab lists these resources. Names are quoted as the module writes them, including [uniqestring] and the two rows both called asclab-as: asclab-win (Windows Server virtual machine), asclab-linux (Linux Server virtual machine), asclab-as (availability set for the 2-VMs), asclab-aks (Kubernetes service, for testing container services capabilities), asclab-app-[uniqestring] (App Service), asclab-sql-[uniqestring] (SQL server), asclab-as (SQL database based on the AdventureWorks template), asclab-kv-[uniqestring] (Key vault), asclab-fa-[uniqestring] (Function App), asclab-la-[uniqestring] (Log Analytics workspace), asclab-nsg (Network security group), asclab-splan (App Service plan), asclab-vnet (Virtual network), asclabcr[uniqestring] (Container registry), asclabsa[uniqestring] (Storage account), and SecurityCenterFree (the default workspace solution for the Microsoft Defender for Cloud free tier).

Exercise 3: Enabling Microsoft Defender for Cloud. In the Microsoft Defender for Cloud blade, open Getting started, and on the Upgrade tab select Azure subscription 1 and press Enable. Then select both Azure subscription 1 and the workspace name underneath it, and click Upgrade. In Environment settings, the lab says you should see Defender coverage of 12/12 plans for the subscription. You must be assigned Subscription Owner, Subscription Contributor, or Security Admin. A Microsoft Defender for Cloud trial for 30-days is available only if the subscription has not previously used one. Before Upgrade, you can review how many resources you will enable it on.

What it costs, and cleaning up

As Module 1 states it, the Azure trial includes 12 months of free products, a £150 credit/$200 credit to use in your first 30 days, and no automatic charges — you enter a credit card for identity verification, but you will not be charged unless you choose to upgrade the subscription. The module does not say what the VMs, AKS cluster, or paid Defender plans cost after those periods. Microsoft Learn’s overview tells you to check the Defender for Cloud pricing page and to estimate costs with the Defender for Cloud cost calculator. When you have finished, delete the lab resources rather than leaving them running — including the asclab resource group and the asclab-aks group.

Tips if you are following along

Use a private browser window for both the Azure portal and the lab itself — the module warns that lab links can otherwise open in a non-private window — and do not sign in with a corporate user. If you already have a subscription, do not enable 12/12 plans on a production one without checking pricing first. Meet the password rule before you click Create, or the ARM deployment can fail. Watch both resource groups — asclab-aks is also the extra group created for Kubernetes. Some lab labels are outdated or mistyped; follow what you actually see in the portal.

What comes next

Module 1 sends you to Module 2 – Exploring Microsoft Defender for Cloud (L100), which covers the dashboard, Secure Score and Recommendations, and Inventory. After that, the Labs ReadMe continues through security policy, regulatory compliance, Defender plans, and SIEM export, then later modules on containers — including Module 9 – Defender for Containers, Module 18 – Agentless container posture through Defender CSPM, and Module 27 – Implementing Gated Deployment for Container Security — plus AWS, GCP, APIs, DevOps, storage, and AI workloads.