This short recipe shows you how to connect to Azure and securely store your credentials.
Connecting to Azure
Getting ready
Register for a free Azure account at https://azure.microsoft.com/en-us/free/ if you have not yet done so.
How to do it...
Let's perform the following steps:
- To work with Azure, install the Azure PowerShell module first, as follows:
Install-Module -Name Az -Scope CurrentUser
- Right now, starting any cmdlet will result in an error. Try it now, as follows:
Get-AzVm
- To begin working with Azure, you need to connect your account. Use Connect-AzAccount...