AZ-104T00A
Administer Azure
Resources
© Copyright Microsoft Corporation. All rights reserved.
Configure Azure Resources with Tools
Configure Resources with ARM Templates
Administer Lab 03b - Manage Azure resources by Using ARM
Azure Templates
Resources Lab 03c - Manage Azure resources by Using Azure
PowerShell (optional)
Introduction Lab 03d - Manage Azure resources by Using Azure CLI
(optional)
© Copyright Microsoft Corporation. All rights reserved.
Configure Azure Resources with Tools
© Copyright Microsoft Corporation. All rights reserved.
Compare Administration tools (4 student topics)
Demonstration – Azure Portal
Demonstration – Azure Cloud Shell
Demonstration – Working with PowerShell locally
Configure (optional)
Azure
Resources Demonstration – Azure CLI (optional)
with Tools Summary and Resources
Introduction
© Copyright Microsoft Corporation. All rights reserved.
Compare Administrator tools
Azure Portal Azure Cloud Shell Azure PowerShell and
CLI
az vm restart -g
MyResourceGroup -n
MyVm
• View and manage • Interactive and browser-
resources accessible • Command line programs
• Visual interface • Offers Bash or • Interactive and scripting
• Unified hub – training PowerShell modes
and documentation • Authenticates • Cross-platform
• Personalize your automatically • Good for repeatable
experience • Provided on a per-session deployments
• Mobile app and per-user basis • Familiar coding
• Access the Cloud Shell • Temporary - times out experience
after 20 minutes
• One-off creation
scenarios © Copyright Microsoft Corporation. All rights reserved.
Demonstration – Azure Portal (optional)
Help and keyboard shortcuts
Customizing your experience
© Copyright Microsoft Corporation. All rights reserved.
Demonstration – Cloud Shell (optional)
Configure the Cloud Shell
Experiment with Azure PowerShell
Experiment with Bash shell
Experiment with the Cloud Editor
© Copyright Microsoft Corporation. All rights reserved.
Demonstration – Working with PowerShell (optional)
Install the Az module
Install NuGet (if needed)
Trust the repository
Connect to Azure and view your subscription information
Create resources
© Copyright Microsoft Corporation. All rights reserved.
Demonstration – Working with the CLI (optional)
Install the CLI
Verify the CLI installation
Login to Azure
Create a resource group
Verify the resource group
© Copyright Microsoft Corporation. All rights reserved.
Summary and Resources – Configure Azure Resources with Tools
Knowledge Check Questions Microsoft Learn Modules ([Link]/Learn)
Manage services with the Azure portal (Sandbox)
Introduction to PowerShell (Sandbox)
Control Azure services with the CLI (Sandbox)
Control and organize Azure resources with Azure Resource
Manager
A sandbox indicates a hands-on exercise.
© Copyright Microsoft Corporation. All rights reserved.
Configure Resources with ARM
Templates
© Copyright Microsoft Corporation. All rights reserved.
Review ARM Template Advantages
Explore the JSON Template
Schema
Explore the JSON Template Parameters
Configure
Resources Consider Azure Bicep Templates
with ARM
Demonstration – QuickStart Templates
Templates
Introductio Demonstration – Run Templates with PowerShell
(optional)
n
Summary and Resources
© Copyright Microsoft Corporation. All rights reserved.
Review ARM Template Advantages
Improves consistency and promotes reuse
ARM
Reduce manual, error prone, and repetitive Template
tasks
Express complex deployments Development
Express requirements through code
Production
Provides validation tasks
Modular and can be linked Quality
Assurance
Simplifies orchestration
© Copyright Microsoft Corporation. All rights reserved.
Explore the JSON Template Schema
Defines all the Resource manager {
resources in a deployment
"$schema":
"[Link]
Written in JSON [Link]/schemas/2019-04-
01/
[Link]#",
A collection of key-value pairs
"contentVersion": "",
"parameters": {},
Each key is a string "variables": {},
"functions": [],
Each value can be a string, number, "resources": [],
Boolean expression, list of values, "outputs": {}
object
}
© Copyright Microsoft Corporation. All rights reserved.
Explore the JSON Template Parameters
Specify which values
"parameters": {
are configurable "adminUsername": {
when the template "type": "string",
runs "metadata": {
"description": "Username for the VM."
}
This example has two },
parameters: one for a "adminPassword": {
VM’s username "type": "securestring",
"metadata": {
(adminUsername), "description": "Password for the VM."
and one for its }
password }
(adminPassword) }
© Copyright Microsoft Corporation. All rights reserved.
Consider Azure Bicep Templates
Simpler syntax for writing templates
Smaller module files you can
reference from a main template
Automatically detect dependencies
between your resources
Visual Studio Code extension with
validation and IntelliSense
© Copyright Microsoft Corporation. All rights reserved.
Demonstration - Quickstart templates
Explore the QuickStart gallery
Explore a template
© Copyright Microsoft Corporation. All rights reserved.
Demonstration – Run Templates with PowerShell (optional)
Connect to your subscription
Create the resource group
Deploy the template into the resource group
Verify the template deployed
© Copyright Microsoft Corporation. All rights reserved.
Summary and Resources
Knowledge Check Questions Microsoft Learn Modules ([Link]/Learn)
Create Azure resources using Azure Resource Manager tem
plates
Deploy Azure infrastructure by using JSON ARM templates (
Sandbox)
Build your first Bicep template (Sandbox)
A sandbox indicates a hands-on exercise.
© Copyright Microsoft Corporation. All rights reserved.
Lab 03b - Manage Azure resources by Using ARM Templates
Lab 03c - Manage Azure resources by Using Azure PowerShell
(optional)
Lab 03d - Manage Azure resources by Using Azure CLI (optional)
© Copyright Microsoft Corporation. All rights reserved.
Lab 03b – Manage Azure resources with templates
Lab scenario
Now that you explored the basic Azure administration capabilities associated with
provisioning resources and organizing them based on resource groups by using the Azure
portal, you need to carry out the equivalent task by using Azure Resource Manager
templates
Objectives
Task 1: Task 2: Task 3:
Review an ARM template Create an Azure managed Review the ARM template-
for deployment of an disk by using an ARM based deployment of the
Azure managed disk template managed disk
Next slide for an architecture
diagram
© Copyright Microsoft Corporation. All rights reserved.
Lab 03b – Architecture diagram
Task 1 Task 2
Edit Template Deploy
az104-03a- JSON JSON az104-03b-
rg1 rg1
Template New
az104-03a-disk1 Template az104-03b-disk1
© Copyright Microsoft Corporation. All rights reserved.
Lab 03c – Manage Azure resources with PowerShell (optional)
Lab scenario
Now that you explored the basic Azure administration capabilities associated with
provisioning resources and organizing them based on resource groups by using the Azure
portal and Azure Resource Manager templates, you want the equivalent tasks with Azure
PowerShell. To avoid installing Azure PowerShell modules, you will leverage the Azure
Cloud Shell
Objectives
Task 1: Task 2: Task 3:
Start a PowerShell session Create a resource group Configure the managed
in Azure Cloud Shell and an Azure managed disk by using Azure
disk with Azure PowerShell
PowerShell
Next slide for an architecture
diagram
© Copyright Microsoft Corporation. All rights reserved.
Lab 03c – Architecture diagram
Task 1, Task 2, Task
3
az104-03c-
rg1
az104-03c-disk1
© Copyright Microsoft Corporation. All rights reserved.
Lab 03d – Manage Azure resources with the Azure CLI (optional)
Lab scenario
Now that you explored the basic Azure administration capabilities associated with
provisioning resources and organizing them based on resource groups by using the Azure
portal, Azure Resource Manager templates, and Azure PowerShell, you need to carry out
the equivalent task by using Azure CLI. To avoid installing Azure CLI, you will leverage
Bash environment available in Azure Cloud Shell
Objectives
Task 1: Task 2: Task 3:
Start a Bash session in Create a resource group Configure the managed
Azure Cloud Shell and a managed disk by disk by using Azure CLI
using Azure CLI
Next slide for an architecture
diagram
© Copyright Microsoft Corporation. All rights reserved.
Lab 03d – Architecture diagram
Task 1, Task 2, Task
3
az104-03d-
rg1
az104-03d-disk1
© Copyright Microsoft Corporation. All rights reserved.
End of presentation
© Copyright Microsoft Corporation. All rights reserved.
Review QuickStart Templates
Resource Manager templates
provided by the Azure community
Provides everything you need to
deploy your solution or serves as
a starting point for your template
[Link]
© Copyright Microsoft Corporation. All rights reserved.