-
On the Taskbar, click the Microsoft Edge icon.
-
In the open browser window, navigate to the Azure Portal (https://portal.azure.com).
-
Enter the email address of your Microsoft account.
-
Click the Next button.
-
Enter the password for your Microsoft account.
-
Click the Sign in button.
Note: If this is your first time logging in to the Azure Portal, you will see a dialog with a tour of the portal. Click Get Started to begin using the portal.
-
On the left side of the portal, click the Create a resource link.
The Create a resource icon is a plus-sign character.
-
At the top of the New blade, locate the Search the Marketplace field.
-
Enter the text Resource Group into the search field and press Enter.
-
In the Everything search results blade, select the Resource group result.
-
In the Resource group blade, click the Create button.
-
In the additional Resource group blade, perform the following actions:
a. In the Resource group name field, enter the value MOD02STOR.
b. Leave the Subscription field set to its default value.
c. In the Resource group location field, select the East US location.
d. Click the Create button.
-
Wait for the creation task to complete before moving on with this lab.
-
At the top of the portal, click the Cloud Shell icon to open a new shell instance.
Note: The Cloud Shell icon is a symbol that is constructed of the combination of the greater than and underscore characters.
-
Because this is your first time opening the Cloud Shell using your Azure Pass subscription, you will see a wizard to configure Cloud Shell for first-time usage. Perform the following actions:
a. When offered a choice between Bash or PowerShell, select the Bash option.
b. You will then see a dialog prompting you to create a new Storage Account to begin using the shell. You can safely accept the default settings and click the Create storage button.
c. Wait for the Cloud Shell to finish its first-time setup procedures before moving on with the lab.
If you do not see the configuration options for Cloud Shell, this is most likely because you are using an existing subscription with this course's labs. The labs are written from the perspective that you are using a new Azure Pass subscription. You may see some small discrepancies in future lab instructions.
-
In the Cloud Shell command prompt at the bottom of the portal, type in the following command and press Enter to view a list of possible CLI commands:
az --help
-
Type in the following command and press Enter to view a list of possible CLI commands for Resource Groups:
az group --help
-
Type in the following command and press Enter to view a list of possible CLI commands to create a Resource Group:
az group create --help
-
Type in the following command and press Enter to view a list of possible CLI commands to list Resource Groups:
az group list --help
-
Type in the following command and press Enter to list all resource groups in the subscription:
az group list
-
Type in the following command and press Enter to create a new resource group with the following details:
-
Name: MOD02APPS
-
Location: East US
az group create --name MOD02APPS --location eastus
-
-
Type in the following command and press Enter to list all resource groups in the subscription:
az group list
-
Close the Cloud Shell prompt at the bottom of the portal.
Review: In this exercise, you used the Azure Portal to create a resource group directly using the portal interface. You also used the Cloud Shell within the portal to create a resource group using the Azure CLI tool.
-
On the left side of the portal, click the New link.
-
At the top of the New blade, locate the Search the Marketplace field.
-
Enter the text Template Deployment into the search field and press Enter.
-
In the Everything search results blade, select the Template deployment result.
-
In the Template deployment blade, click the Create button.
-
In the Custom deployment blade, click the Build your own template in the editor link.
-
In the Edit template blade, locate the text editor and delete the existing template content.
-
Copy and paste the following ARM template into the template editor:
{ "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "resources": [ { "apiVersion": "2015-06-15", "name": "[concat('stor', uniqueString(resourceGroup().id))]", "type": "Microsoft.Storage/storageAccounts", "location": "[resourceGroup().location]", "properties": { "accountType": "Standard_LRS" } } ] }
-
Click the Save button to persist the template.
-
Back in the Custom deployment blade, perform the following actions:
a. Leave the Subscription field set to its default value.
b. In the Resource group section, locate the list and select the MOD02STOR option.
c. In the Terms and Conditions section, select the I agree to the terms and conditions stated above checkbox.
d. Click the Purchase button.
-
Wait for the creation task to complete before moving on with this lab.
-
On the left side of the portal, click the Resource groups link.
-
In the Resource groups blade, locate and select the MOD02STOR Resource Group link.
-
In the MOD02STOR blade, locate the Settings section on the left side of the blade and click the Deployments link.
-
In the Deployments pane, select the latest deployment to view its metadata in a new blade.
-
Within the deployment blade, observe the information displayed in the Operation details section.
Review: In this exercise, you deployed a minimal ARM template that created a deployment using a simple ARM template that deployed a single resource without any input or output values.
-
On the Taskbar, click the File Explorer icon.
-
In the File Explorer window that appears, navigate to the Allfiles (F):\Mod02\Labfiles\Starter folder.
-
Right-click the deploy.json file and select the Open with Code option to start the Your favourite IDE application.
-
In the Your favourite IDE window that appears, observe the content of the JSON file.
-
At the top of the Your favourite IDE window, click the File menu and select the Close Folder option.
-
Close the File Explorer window.
-
Return to the Microsoft Edge window with the Azure Portal open.
-
On the left side of the portal, click the New link.
-
At the top of the New blade, locate the Search the Marketplace field.
-
Enter the text Template Deployment into the search field and press Enter.
-
In the Everything search results blade, select the Template deployment result.
-
In the Template deployment blade, click the Create button.
-
In the Custom deployment blade, click the Build your own template in the editor link.
-
In the Edit template blade, click the Load file link.
-
In the Open file dialog that appears, navigate to the Allfiles (F):\Mod02\Labfiles\Starter folder.
-
Select the deploy.json file.
-
Click the Open button.
-
Back in the Edit template blade, click the Save button to persist the template.
-
Back in the Custom deployment blade, perform the following actions:
a. Leave the Subscription field set to its default value.
b. In the Resource group section, locate the list and select the MOD02APPS option.
c. In the Function App Name field, enter a globally unique value. This will be used to create the unique URL for this Function App.
d. In the Terms and Conditions section, select the I agree to the terms and conditions stated above checkbox.
e. Click the Purchase button.
-
Wait for the creation task to complete before moving on with this lab.
-
On the left side of the portal, click the Resource groups link.
-
In the Resource groups blade, locate and select the MOD02APPS Resource Group link.
-
In the MOD02APPS blade, locate the Settings section on the left side of the blade and click the Deployments link.
-
In the Deployments pane, select the latest deployment to view its metadata in a new blade.
-
Within the deployment blade, observe the information displayed in the Inputs and Outputs sections.
Review: In this exercise, you deployed a more sophisticated template that created multiple resources using a combination of parameters, variables and output values.
-
At the top of the portal, click the Cloud Shell icon to open a new shell instance.
-
In the Cloud Shell command prompt at the bottom of the portal, type in the following command and press Enter to list all resource groups in the subscription:
az group list
-
Type in the following command and press Enter to view a list of possible CLI commands to delete a Resource Group:
az group delete --help
-
Type in the following command and press Enter to delete the MOD02STOR Resource Group:
az group delete --name MOD02STOR --no-wait --yes
-
Type in the following command and press Enter to delete the MOD02APPS Resource Group:
az group delete --name MOD02APPS --no-wait --yes
-
Close the Cloud Shell prompt at the bottom of the portal.