
Access Azure day to day by using the portal, PowerShell, the CLI, or the mobile app, with emphasis on scripting and automation to manage resources.
This guide will provide you with a reference to key PowerShell commands necessary for Azure administrators as well as required to pass the Azure Administrator and Expert certification exams (AZ-103 (AZ-104), AZ-300 (AZ-303), and AZ-301 (AZ-304) from Microsoft.
This guide is made up of several PowerShell commands which have been referenced from the Microsoft documentation and other sources. Before running any of these commands in production, please be sure to test them out in an Azure test account. Some commands are destructive in nature (e.g. removing resource groups, tags, etc.) and you need to make sure you fully understand the commands that you execute.
The guide is divided up into the following sections:
· Downloading PowerShell and Installing Azure ARM Modules for PowerShell
· Accounts and Subscriptions
· Resource Groups
· Governance
· Storage
· Virtual Machines
· Networking
· Azure Active Directory
We hope you enjoy this guide and keep it handy by your desk for all your day to day Azure Administrator needs.
Thank you,
Skylines Academy Team
Learn the Azure account hierarchy from enterprise enrollment to departments, accounts, and subscriptions; navigate enterprise and accounts portals, set up resource groups with RBAC, and understand management groups.
Explore how to create, tag, and manage resource groups in the Azure portal, applying cost center and maintenance tags, role-based access control (rbac), deployments, policies, and monitoring.
Explore the hub-and-spoke Azure networking model, including VNet, subnets, address spaces, and peering, and learn how network security groups control traffic and enable on-prem connectivity.
Learn to create an Azure virtual network in the portal, set the address space 10.0.0.0/23, and build subnets such as 10.0.0.0/24 and 10.0.1.0/24 with a default subnet.
PowerShell script for this demo:
#Resource Group and Location
$rg = "SL-Network"
$location = "EastUS"
#VNET Name and Address Space
$VNETName = "SL-VNET-PShell"
$VNETAddressSpace = "10.0.0.0/22"
#Subnet Configurations
$websubnet = New-AzVirtualNetworkSubnetConfig -Name "SL-Web" -AddressPrefix "10.0.0.0/24"
$appsubnet = New-AzVirtualNetworkSubnetConfig -Name "SL-App" -AddressPrefix "10.0.1.0/24"
$dbsubnet = New-AzVirtualNetworkSubnetConfig -Name "SL-Data" -AddressPrefix "10.0.2.0/24"
#Create Resource Group
New-AzResourceGroup -Name $rg -Location $location
#Create VNET and Subnets
$virtualNetwork = New-AzVirtualNetwork -Name $VNETName -ResourceGroupName $rg `
-Location $location -AddressPrefix $VNETAddressSpace -Subnet $websubnet,$appsubnet
#Add Additional Subnet
$subnetConfig = Add-AzVirtualNetworkSubnetConfig `
-Name "LastSubnet" `
-AddressPrefix "10.0.4.0/24" `
-VirtualNetwork $virtualNetwork
#Write the changes to the VNET
$virtualNetwork | Set-AzVirtualNetwork
Learn how to create and configure VNet peering between two virtual networks in the Azure portal, including resource group setup, IP ranges, and bidirectional connectivity settings.
Explore hybrid connectivity options for Azure, including site-to-site VPN, Expressroute, and point-to-site, with guidance on gateways, IPsec, public IPs, SKUs, and deployment considerations.
Master Azure subnet routing by examining route tables, default system routes for local VNet, on-premises, and internet access, and override with user defined routes for force tunneling.
Create a route table, define a route to a virtual appliance, and associate with a subnet. Set the destination prefix and next hop, and consider propagation to keep routing simple.
Explore how virtual networks access the internet by default using SNAT to a public IP. Identify inbound options and DNS choices, including Azure private DNS zones or customer managed DNS.
Explore virtual machines in Azure, covering VM types from A and D series to specialty instances, compute units, and premium storage. Learn OS support, regional availability, and username restrictions.
Deploy a Windows virtual machine from the Azure portal, configuring subscription, resource group, region, image, and size, then enable RDP and set up networking, disks, and backup.
PowerShell script for this demo:
#Create Resource Group
New-AzResourceGroup -Name SL-PowershellVM -Location EastUS
#Create Virtual Machine
New-AzVm `
-ResourceGroupName "SL-PowershellVM" `
-Name "vmpshell01" `
-Location "East US" `
-VirtualNetworkName "pshellVnet" `
-SubnetName "pshellSubnet" `
-SecurityGroupName "pshellNetworkSecurityGroup" `
-PublicIpAddressName "pshellPublicIpAddress" `
-OpenPorts 80,3389
Discover Azure marketplace images with publisher, offer, and skew, and learn how to create custom images; Windows uses Sysprep, Linux uses deprovision plus the user, then generalize and create image.
Explore configuring Azure VM availability sets and zones in the portal, including fault domains, update domains, regions, and how to create or move VMs between sets or zones.
Explore horizontal scaling with Azure virtual machine scale sets, defining instance counts and sizes. Use auto scaling with min and max limits based on app or infrastructure metrics.
Demonstrates creating a virtual machine scale set in the Azure portal, configuring image, networking, and autoscale rules with min two, max four, and 75% cpu threshold.
Compare Azure VM storage types from standard HDD to premium and ultra SSD, and note VM limits, managed versus unmanaged disks, and replication options (locally replicated storage, GRS, RA-GRS).
Enable disk caching on a virtual machine using PowerShell, configure the data disk caching to read-write, and verify via the Azure portal.
Learn Azure VM security best practices, including access control with policies, RBAC, and ARM templates. Implement encryption, backups, updates, and JIT VM access to harden and monitor VMs.
Configure disk encryption on a Windows Server 2016 VM using the Azure CLI and a key vault, enabling Azure disk encryption with BitLocker and verifying the encryption status.
Configure Azure security center to manage a virtual machine, set up a log analytics workspace, install the monitoring agent, and connect data for endpoint protection and vulnerability awareness.
Demonstrate creating a storage account in the Azure portal, including resource group setup, storage v2 gp2, geo redundant replication, public and private endpoints, and blob access via SAS keys.
PowerShell script for this demo:
#Create Resource Group
New-AzResourceGroup -Name SL-PowershellVM -Location EastUS
#Create Virtual Machine
New-AzVm `
-ResourceGroupName "SL-PowershellVM" `
-Name "vmpshell01" `
-Location "East US" `
-VirtualNetworkName "pshellVnet" `
-SubnetName "pshellSubnet" `
-SecurityGroupName "pshellNetworkSecurityGroup" `
-PublicIpAddressName "pshellPublicIpAddress" `
-OpenPorts 80,3389
Az Copy Reference:
azcopy login --tenant-id "<YOUR TENANT ID>"
azcopy make "https://<YOUR STORAGE ACCOUNT NAME>.blob.core.windows.net/testcontainer"
azcopy copy "C:\Images\*" "https://<YOUR STORAGE ACCOUNT NAME>.core.windows.net/testcontainer/"
Append the --recursive flag to upload files in all sub-directories.
COPY CONTAINER FROM ONE STORAGE ACCOUNT TO ANOTHER
azcopy copy "https://<YOUR STORAGE ACCOUNT NAME>.blob.core.windows.net/?<SAS-token>" "https://<YOUR TARGET STORAGE ACCOUNT NAME>.blob.core.windows.net/" --recursive"
Learn storage permissions in Azure, including container private access, blob and container public access, and how sas tokens grant granular account or service access with permissions and expiry.
Learn to create and manage shared access signatures in the Azure portal, assign blob permissions, set start and expiry times, restrict by IP addresses, and sign with key1 or key2.
Learn how to map custom domains to Azure storage and CDN, using direct DNS records or a verify subdomain to avoid downtime during domain verification.
Explore how to create an Azure storage account and file share, configure replication and tier settings, and connect to the file share using a PowerShell drive.
Demonstrate Azure file sync to cache and synchronize a central file share by deploying a Windows server and configuring a cloud endpoint.
Understand how Azure Resource Manager constructs work, including resources, resource groups, and resource providers. See how Microsoft Compute serves virtual machines and how rest-based endpoints support ARM templates.
Demonstrates exporting an arm deployment from the Azure portal as a json template, then downloading, editing parameters and scripts, and deploying via the wizard to reuse as a skeleton.
Master setting up an Azure Automation account, creating and publishing runbooks, using the Runbooks Gallery, and scheduling parameterized PowerShell workflows (Python preview) for automated tasks.
Script for this demo:
Configuration SkylinesIIS
{
Node 'localhost'
{
#Install IIS - Enabled via Windows feature
WindowsFeature IIS
{
Ensure = "Present"
Name = "Web-Server"
}
#Install ASP.NET 4.5
WindowsFeature ASP
{
Ensure = "Present"
Name = "Web-Asp-Net45"
}
}
}
Explore how Azure AD centralizes identity across on-premises and cloud apps, enabling single sign-on, multi-factor authentication, and self-service password reset.
Azure Active Directory pricing comes in free, basic, premium p1, and premium p2, with object counts, and premium unlocks features like provisioning, device objects, identity protection, and privileged identity management.
Configure Azure identity protection and conditional access in the portal, enable MFA with Azure AD premium P2, review risk events, and tailor policies with named locations and terms of use.
Explore how Azure AD Connect syncs on-premises Active Directory with Azure Active Directory, and monitor health via Azure AD Connect Health. Understand filtering and the three password sync options.
Examine design decisions for hybrid identity and cloud authentication in Azure AD, comparing password hash sync with seamless SSO, pass-through authentication, and federated options.
Explore Azure Network Watcher to monitor VM connections, view topology, run connection monitors, verify IP flow, inspect next hops, and capture packets.
Log analytics centralizes monitoring by collecting data from diverse sources, including virtual machines, Windows event logs, and performance counters, enabling queries, visualizations, and alerts across Azure services.
Explore Azure Security Center, from getting started with agents and pricing to threat protection, endpoint protection, vulnerability assessment, adaptive controls, just-in-time VM access, and regulatory compliance checks.
Create and organize resource groups in the Azure portal, assign subscriptions and regions, and apply mandatory tags as key-value pairs to manage lifecycle and deletions.
Use Azure resource locks to prevent accidental deletion of resource groups or storage accounts, choosing read only or cannot delete locks, with read only being the most restrictive.
Demonstrate Azure resource locks by creating a resource group and storage account, applying delete and read-only locks, and learning how to remove locks to enable updates or deletion.
Enforce governance in Azure with built-in or custom Azure policies, restricting boundaries in the portal or ARM templates, assignable to subscriptions or resource groups, applied via portal or PowerShell.
Learn to define and assign Azure policy and initiatives, manage scope with resource groups, subscriptions, and management groups, and enforce compliance through location controls.
The AZ-303 exam is now available for students to take. This course has been updated and upgraded from the former AZ-300 course to meet the expectations fo the AZ-303 Skills Measured by Microsoft.
Targeted at experienced IT experts, the exam covers a variety of subjects and services, all of which are covered in Skylines Academy’s latest course. In order to understand core architect technologies, Skylines Academy will lead you through a series of sections, modules, and demos to prepare you for taking, and ultimately passing, the Microsoft Azure AZ-300 or 303 exams.
This course includes both AZ-300 and 303 content.
The AZ-303 course curriculum is as follows:
Understand Azure Active Directory (AD) and Subscriptions
Implement Virtual Networking
Implement Virtual Machines for Windows and Linux
Create and Manage Storage Accounts
Deploy Automation and Configure Resources
Implement Azure AD
Implement and Manage Hybrid Identities
Configure Cloud Infrastructure Monitoring
Implement and Manage Governance Solutions
Implement Load Balancing and Network Security
Manage Security for Applications
Implement an Application Infrastructure
Deploy Container-based Applications
Implement and Manage Data Platforms
The AZ-300 course curriculum is as follows:
Azure Fundamentals
Analyze Resource Utilization and Consumption
Create and Configure Storage Accounts
Create and Configure Virtual Machines
Azure Virtual Networking
Managing and Securing Identities
Governance and RBAC Controls
Create and Deploy Apps
Serverless Computing
Design and Develop Apps that Run in Containers
Server Migrations
Automation
Lectures will educate you on the fundamental terms and principles of the Azure platform and demos will enable you with a hands-on experience using scenarios to empower you in the real world.
Welcome to the Skylines Academy AZ-303 & 300 courses! We’re happy you’re joining us!