21.Jan.18

Milan Nankov

Milan Nankov

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

Editor's Note: This post was originally posted in 2016 and has been updated for completeness and correctness in 2018.

As you probably know, passing the 70-532 Developing Microsoft Azure Solutions certification exam requires knowledge of several tools for configuring and managing Azure resources. The exam can, and probably will, include questions on Azure PowerShell, Azure CLI, Azure Portal (old and new), and REST API. I think that there is a bit of emphasis on the PowerShell side of things and nailing those questions is very important.

Getting the PowerShell-related questions right was one of the most difficult tasks for me. This was due to the fact that I have rarely used PowerShell to create and manage Azure infrastructure. Once I realized that I would need to gain a lot more experience using PowerShell if I am to pass the exam, I set out to create scripts that will help me in that regard. 

My main goal was to author scripts that have context and that can give me the bigger picture. Executing individual commands for the sake of remembering how to use them was not good enough. What I ended up with is a number of scripts that are self-contained, meaning that all the required Azure infrastructure will be created and then modified in some way to achieve a specific goal - for example, change the performance level of an existing SQL database. I think that this self-contained and goal-oriented approach worked quite well.

I also decided that it would be great if other fellow exam-takers could contribute with additional scripts, ideas, etc. so I made the scripts publicly available on GitHub.

Keep in mind that the latest version of the exam focuses on ARM so I would advise to study the ARM Powershell scripts.

The Code

The scripts are hosted on GitHub alongside other resources that I have put together to help me pass the exam. I am accepting pull requests and I really hope that the number of scripts will grow with time making this repo an invaluable asset for people taking the exam. 

You can checkout the repo here - https://github.com/newventuresoftware/passing-azure-70-532

The Scripts

Since the exams is focused on the Azure Service Management model, the script are targeting ASM. Still, it is my intention to publish Azure Resource Manager and Azure CLI alternatives in the future.

Currently there are 8 scripts that cover wide-range of certification topics. Let's now take a brief look at the scripts and learn what is covered in each:

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-AzureSqlDatabaseServer, Get-AzureSqlDatabaseServiceObjective, New-AzureSqlDatabaseServerFirewallRule, New-AzureSqlDatabaseServerContext, New-AzureSqlDatabase, Start-AzureSqlDatabaseCopy, Remove-AzureSqlDatabase, Set-AzureSqlDatabase
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-AzureStorageAccount, Get-AzureStorageAccount, Set-AzureStorageServiceLoggingProperty, Set-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-AzureWebsite, New-AzureTrafficManagerProfile, Add-AzureTrafficManagerEndpoint, Set-AzureTrafficManagerProfile
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 Endpoints Of An Existing Virtual Machine

This script focuses on configuring an existing Virtual Machine to accept RDP connection only from a specified IP address and to accept traffic on port 80. The VM is first created by the script.

PowerShell Commands: New-AzureStorageAccount, Set-AzureSubscription, New-AzureVMConfig, New-AzureVm, Get-AzureVM, Set-AzureAclConfig, Set-AzureEndpoint, Add-AzureEndpoint
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: New-AzureStorageAccount, Set-AzureSubscription, New-AzureVMConfig, Add-AzureProvisioningConfig, Publish-AzureVMDscConfiguration, Set-AzureVMDscExtension, New-AzureVm
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 Website that will be triggered every minute with the help of Azure Scheduler.

PowerShell Commands: New-AzureWebsite, New-AzureWebsiteJob, New-AzureSchedulerJobCollection, New-AzureSchedulerHttpJob
Exam Topics: Design and implement Web Apps

8) Get Website Metrics

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

PowerShell Commands: New-AzureWebsite, Get-AzureWebsite, Get-AzureWebsiteMetric
Exam Topics: Design and implement Web Apps

I really hope that those scripts will be helpful.Let me know what you think in the comment section below. 

Look forward for more articles on passing the 70-532 Developing Microsoft Azure Solutions Certification Exam.


Need consulting on this topic?

Yes No