Reader small image

You're reading from  Learn Microsoft Azure

Product typeBook
Published inDec 2018
PublisherPackt
ISBN-139781789617580
Edition1st Edition
Tools
Right arrow
Author (1)
Mohamed Waly
Mohamed Waly
author image
Mohamed Waly

Mohamed Waly has shown an interest in IT since he was a student. The journey began in 2011 when he joined the college of Computer Science, when he started learning how to work with Windows Server 2008, and was the youngest amongst his colleagues at the college to achieve certification. In 2012 he joined one of the greatest and most well-known student programs all over the world, the Microsoft Student Partner program. During the time he spent on the program, he took many communication and presentation skills sessions that helped him to deliver too many sessions since his second year at the college and the journey continues till now. In the meantime, Waly learned some other topics such as Exchange Server System Center, VMware vSphere, and Microsoft Azure, formerly known as Windows Azure. He has worked in multiple communities, such as the Azure Community in Egypt, and the Open Source on Azure. Also, he served multiple internships during his time in the university to improve his experience. That's why, in July 2014, Microsoft recognized Mohamed Waly as the youngest MVP in the world. After finishing college, he worked for two of the biggest Microsoft Partners in Egypt—Global Knowledge and Blue Cloud Technologies—as a System Engineer and an Associate Infrastructure Consultant, respectively, serving Microsoft Customers in the EMEA region by designing and implementing virtualization and Cloud solutions.
Read more about Mohamed Waly

Right arrow

Azure automation tools

It is no surprise that we commonly face repetitive and time-consuming tasks. For example, you might want to create multiple virtual machines. You would have to follow the previous guide multiple times to get your job done. This is why Microsoft supports its Azure services with multiple ways of automating most of the tasks that can be implemented in Azure.

Azure PowerShell

PowerShell is commonly used with most Microsoft products, and Azure is no less important than any of these products. You can use Azure PowerShell cmdlets to manage most Azure services.

Installing the Azure PowerShell module

Installing the Azure PowerShell module from the PowerShell Gallery

The following are the steps required to get Azure PowerShell installed:

  1. Open PowerShell in an elevated mode.
  2. To install the Azure PowerShell module for the current portal, run the following cmdlet:
Install-Module AzureRM

If your PowerShell requires a NuGet provider, you will be asked to agree to install it, and you will have to agree to the installation policy modification, as the repository is not available in your environment, as shown in the following screenshot:

Azure CLI

The Azure CLI is an open source and cross-platform tool that supports implementing all the tasks you can do in the Azure portal with commands. This tool can be used to provide automation by writing all the tasks you want to configure in the Azure CLI and running it instead of manually doing it over and over again. It can be used to run on Windows, Linux, and macOS. The latest version is Azure CLI 2.0.

Installing Azure CLI 2.0

Perform the following steps to install Azure CLI 2.0:

  1. Download Azure CLI 2.0 from the following link: https://azurecliprod.azureedge.net/msi/azure-cli-2.0.47.msi.
  2. Once downloaded, you can start the installation:
  1. Once you click on Install, it will start to validate your environment to check whether it is compatible with it or not. Then, it starts the installation:
  1. Once the installation completes, you can click on Finish, and you are good to go:
  1. Once done, you can open Command Prompt and write az to access Azure the CLI commands:
Previous PageNext Page
You have been reading a chapter from
Learn Microsoft Azure
Published in: Dec 2018Publisher: PacktISBN-13: 9781789617580
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime

Author (1)

author image
Mohamed Waly

Mohamed Waly has shown an interest in IT since he was a student. The journey began in 2011 when he joined the college of Computer Science, when he started learning how to work with Windows Server 2008, and was the youngest amongst his colleagues at the college to achieve certification. In 2012 he joined one of the greatest and most well-known student programs all over the world, the Microsoft Student Partner program. During the time he spent on the program, he took many communication and presentation skills sessions that helped him to deliver too many sessions since his second year at the college and the journey continues till now. In the meantime, Waly learned some other topics such as Exchange Server System Center, VMware vSphere, and Microsoft Azure, formerly known as Windows Azure. He has worked in multiple communities, such as the Azure Community in Egypt, and the Open Source on Azure. Also, he served multiple internships during his time in the university to improve his experience. That's why, in July 2014, Microsoft recognized Mohamed Waly as the youngest MVP in the world. After finishing college, he worked for two of the biggest Microsoft Partners in Egypt—Global Knowledge and Blue Cloud Technologies—as a System Engineer and an Associate Infrastructure Consultant, respectively, serving Microsoft Customers in the EMEA region by designing and implementing virtualization and Cloud solutions.
Read more about Mohamed Waly