Duration: 30 minutes
- Please ensure that you successfully verified the General prerequisits before continuing with this challenge.
- The Azure CLI is required to deploy the Bicep configuration of the Micro Hack.
- Download the *.bicep files from the Resources to your local PC.
- Open the Azure Portal and login using a user account with at least Contributor permissions on a Azure Subscription. Start the Azure Cloud Shell from the Menu bar on the top.
Note
You can also use your local PC but make sure to install Azure CLI.
- If this is the first time that Cloud Shell is beeing started, create the required Storage Account by selecting Bash and clicking on Create storage and wait until the Storage Accounts has been created.
- Make sure to select Bash.
- Clone the MicroHack Github repository using the
git clone https://github.com/microsoft/MicroHack.gitcommand.
- Change into to Migrate & Modernize Microhack directory of the cloned repository using the
cd MicroHack/03-Azure/01-03-Infrastructure/06_Migration_Secure_AI_Ready/resourcescommand.
- Execute
az deployment sub create --name "$(az ad signed-in-user show --query userPrincipalName -o tsv | cut -d "@" -f 1 | tr '[:upper:]' '[:lower:]')-$(cat /proc/sys/kernel/random/uuid)" --location swedencentral --template-file ./main.bicep --parameters currentUserObjectId=$(az ad signed-in-user show --query id -o tsv) --parameters userName="$(az ad signed-in-user show --query userPrincipalName -o tsv | cut -d "@" -f 1 | tr '[:upper:]' '[:lower:]')"
- Wait for the deployment to finish. You can view the deployment from the Azure portal by selecting the Azure Subscription and click on Deployments from the navigation pane on the left.
Note
Please note that the deployment may take up to 10 minutes.
The bicep deployment should have created the following resources
-
source-rg Resource Group containing the follwing resources
- Virtual Network source-vnet
- Virtual Machine Win-fe1 with installed web server on a Windows Server System
- Virtual Machine Lx-fe2 with installed web server on a REHL System
- Public Load Balancer plb-frontend with configured backend pool containing frontend1 and frontend2 VM
- Azure Bastion source-bastion
- Azure Key Vault source-kv- containing username and password for VM login
-
destination-rg Resource Group containing the follwing resources
- Virtual Network destination-vnet
- Azure Bastion destination-bastion
The deployed architecture looks like following diagram:

- Open source-rg Resource Group
- Select plb-frontend Load Balancer
- Navigate to Frontend IP configuration under Settings section on the left
- Note and copy public IP address of LoadBalancerFrontEnd
- Open web browser and navigate to http://LoadBalancerFrontEnd-IP-Address
- A simple website containing the server name of the frontend1 or frontend2 VM should be displayed
You successfully completed challenge 1! 🚀🚀🚀







