Tutorial by Examples

When working with Azure using PowerShell there are 2 different ways you should be aware of and you will see a lot of the Microsoft documentation referring to both of them: "Classic mode (Service Management)" This is the old way of operating Azure and managing Azure. There is still some s...
Classic (Service Management) mode: Add-AzureAccount This will authenticate you using Azure Active Directory, and PowerShell gets an access token that expires after about 12 hours. So you must repeat the authentication after 12 hours. An alternative is to run the following cmdlet: Get-AzurePubl...
When you have multiple subscriptions under your Azure account; it's important that you are selecting the one you wish to operate on (and use this as default); to avoid accidents happening to resources on the wrong subscription. Classic mode Set-AzureSubscription Select-AzureSubscription Resou...
To determine the version of Azure PowerShell that you have installed, run the following: Get-Module -ListAvailable -Name Azure -Refresh This command returns the installed version even when you haven't loaded the Azure PowerShell module in your current PowerShell session.
Azure Cmdlets let you perform some of the same actions on Azure assets through PowerShell that you would using C# code or the Azure portal. For example, these steps let you download the contents of an Azure blob into a local directory: New-Item -Path .\myblob -ItemType Directory $context = New-Az...
With Azure PowerShell you can get certain functionality currently unavailable on Azure Portal, like: Reconfigure all Traffic Manager's endpoints at once Address other services via Azure ResourceId instead of domain name, so you don't need to set Location manually for Azure Endpoints Prerequis...

Page 1 of 1