19.Oct.17

Milan Nankov

Milan Nankov

Passing the 70-532 Developing Microsoft Azure Solutions Certification Exam - ARM PowerShell Scripts

Back in 2016 I published resources that can help people taking the 70-532 Developing Microsoft Azure Solutions Certification exam. The resources included PowerShell scripts that cover typical scenarios of the exam but back in 2016 the exam still focused on Azure Service Management (ASM). I promised that I will port all sample scripts for Azure Resource Manager (ARM) and I kept my promise.

The ARM scripts are now part of the Github repo hosting all materials related to the exam - https://github.com/newventuresoftware/passing-azure-70-532 .

Here is a break down of all available ARM scripts:

1) Change DB Performance Tier With Enabled Geo Replication

This script focuses on creating a SQL Database infrastructure with geo replication enabled. Once the infrastructure is in place, the script will upgrade the performance of the database that is being replicated. 

PowerShell Commands: New-AzureRmSqlServer, New-AzureRmSqlServerFirewallRule, New-AzureRmSqlDatabase, New-AzureRmSqlDatabaseSecondary, Set-AzureRmSqlDatabase
Exam Topics: Design and implement a storage strategy

2) Configure Logging And Metrics For Azure Storage

This script focuses on configuring what storage operations get logged and what metrics are gathered. 

PowerShell Commands: New-AzureRmStorageAccount, Set-AzureStorageServiceLoggingProperty, AzureStorageServiceMetricsProperty
Exam Topics: Design and implement a storage strategy

3) Website Load Balancing With Traffic Manager

This script focuses on configuring Azure Traffic Manager to load balance between two Website instances in separate regions. 

PowerShell Commands: New-AzureRmAppServicePlan, New-AzureRmWebApp, New-AzureRmTrafficManagerProfile, Add-AzureRmTrafficManagerEndpointConfig, Set-AzureRmTrafficManagerProfile
Exam Topics: Design and implement Web Apps, Manage application and network services

4) Set Instance Level Public IP To An Existing Virtual Machine

This script focuses on configuring an existing Virtual Machine with a public IP address which can be used to access the VM directly. The VM is first created by the script.

PowerShell Commands: New-AzureStorageAccount, Set-AzureSubscription, New-AzureVMConfig, Add-AzureProvisioningConfig, New-AzureVm, Get-AzureVM, Set-AzurePublicIP
Exam Topics: Design and implement a storage strategy, Create and manage virtual machines

5) Configure Network Security Group for an Existing Virtual Machine

This script focuses on configuring an existing Virtual Machine to accept RDP connections by creating and configuring a Network Security Group. The VM is first created by the script.

PowerShell Commands: New-AzureRmNetworkSecurityRuleConfig, New-AzureRmNetworkSecurityGroup, Get-AzureRmNetworkInterface, Set-AzureRmNetworkInterface
Exam Topics: Design and implement a storage strategy, Create and manage virtual machines

6) Create A Virtual Machine With Desired State Configuration (DSC)

This script focuses on creating a virtual machine that will be configured by a PowerShell DSC script. The script features commands that will upload the DSC script to Azure Storage and enable the PowerShell Desired State Configuration (DSC) Extension for Azure VM.

PowerShell Commands: Publish-AzureRmVMDscConfiguration, Set-AzureRmVMDscExtension
Exam Topics: Design and implement a storage strategy, Create and manage virtual machines

7) WebJob Executed Every Minute By Azure Scheduler

This script focuses on publishing a WebJob on an Azure WebApp that will be triggered every minute with the help of Azure Scheduler. 

This is currently not supported by the ARM library for PowerShell

8) Get Website Metrics

This script focuses on getting metrics for a WebApp and displaying it.

PowerShell Commands: New-AzureRmAppServicePlan, New-AzureRmWebApp, Get-AzureRmWebAppMetrics
Exam Topics: Design and implement Web Apps

9) Create Virtual Machine

This script lays out the generic commands needed to create a virtual machine in Azure.

PowerShell Commands:New-AzureRmVirtualNetworkSubnetConfig, New-AzureRmVirtualNetwork, New-AzureRmPublicIpAddress, New-AzureRmNetworkInterface, New-AzureRmVMConfig, New-AzureRmVM
Exam Topics: Create and manage virtual machines

10) Create Virtual Machine

Usually virtual machines have a public IP address. This script demonstrates how this IP address can be retrieved.

PowerShell Commands:Get-AzureRmPublicIpAddress
Exam Topics: Create and manage virtual machines

Cheers!

Need consulting on this topic?

Yes No