Category: Azure

Default to Device Authentication when Connecting to Azure with Windows PowerShell

Windows 10 Enterprise edition version 2004 is used for the scenarios demonstrated in this blog article. If you'd like to follow along, you'll also need to install PowerShell version 7 and the Az PowerShell module. As stated in the help for Connect-AzAccount, the UseDeviceAuthentication parameter is the default authentication type for PowerShell version 6 and higher. What this means is that you're provided with a URL and a code. They're used to authenticate Read more [...]

I’m joining Microsoft and today is my last day as a Microsoft MVP

I’ve worked as an IT Pro since 1994, with the past fourteen years at the same employer and my last day with them was this past Friday. I’ve also been a Microsoft MVP for the past six years, the first two as a PowerShell MVP and the last four as a Cloud and Datacenter Management MVP. Today is my last day as a Microsoft MVP because you can’t be an MVP if you work for Microsoft. As of tomorrow, Monday, March 23rd I’ll be embarking on a new chapter in my career as a Senior Content Developer Read more [...]

How many Services does Microsoft Azure Offer?

I've recently wondered how many service offerings Azure has. I've read anywhere from 150 to 600 and I even went so far as to ask an Azure Product Manager but still didn't receive a clear answer. What I did find out is that Microsoft maintains an Azure services directory on their Azure products website. I figured that was a good place to start looking and while the website is informative, it didn't provide a count of the service offerings. Manually counting them wouldn't be an efficient or accurate Read more [...]

AzureRM PowerShell Commands that Don’t Exist when Enabling Compatibility Aliases in the Az Module

As I mentioned in a previous blog article, the AzureRM PowerShell module is only supported until December of 2020. It has been replaced by the Az PowerShell module which was introduced in December of 2018. On Twitter, I recently asked if anyone was still using the AzureRM module and what was keeping them from transitioning to the Az module. One of the responses I received was due to the amount of work and time invested in scripts based on the AzureRM module. The Az PowerShell module includes Read more [...]

How to Install the Azure Az PowerShell Module

The Az PowerShell module was released in December of 2018 and is now the recommended module for managing Microsoft Azure. AzureRM is the previous PowerShell module for managing Azure which has been deprecated but will continue to be supported until December of 2020. Windows PowerShell 5.1, PowerShell Core 6, PowerShell 7, and higher are supported by the Az PowerShell module. Windows 10 version 1607 and higher has Windows PowerShell 5.1 installed by default. Determine if the version of PowerShell Read more [...]

Setting Dependencies on the Azure PowerShell Module

I recently saw a tweet from Joel Bennett about the Az (Azure) PowerShell module being nothing more than an empty module that imports all of the modules for each Azure product. I decided to investigate. Joel's statement is 100% accurate. Off-Topic: The searched for term is highlighted in each result when the previous command is run in PowerShell 7. One thing I don't like about the Az module is the Import-Module statements use the RequiredVersion Read more [...]

The PowerShell Conference Book is the Featured Book and the Number 1 Best Seller on Leanpub

By now, I'm sure you've heard about The PowerShell Conference Book. If not, see my previous blog article. The PowerShell Conference Book is currently the featured book on Leanpub. It's also the number one best seller on Leanpub. And the top book on Leanpub. The book was published last Friday, July 6th with nine of the thirty-three chapters and we've added an additional six chapters since then. I would like to thank everyone who has purchased the book so far. If you have a Read more [...]

Announcing the PowerShell Conference Book

A couple of months ago, I saw a tweet from Don Jones about how much it costs to sponsor one person for the OnRamp Scholarship Program. I replied wanting to know if the DevOps Collective had considered becoming part of the "Leanpub for Causes" program so that portions of an author's royalties could be donated to the program. My initial thought was that I could donate a portion of the royalties from my PowerShell 101 book to the program. A few days later Don copied me in a tweet saying he had Read more [...]

Temporarily Disable the Azure AD Connect Accidental Deletion Protection Feature with PowerShell

You've implemented Azure AD Connect to synchronize accounts in your on-premises Active Directory environment to Azure AD. If you took the defaults while running the setup wizard for Azure AD Connect, then everything in your Active Directory environment is synchronized. If you decided to filter the synchronization later to only specific OU's (Organizational Units) in your Active Directory environment, you could run into a scenario where the number of deletions exceeds the default threshold of 500 Read more [...]

Using Out-GridView to simplify selecting the region when managing Microsoft Azure with PowerShell

You've signed up for a Microsoft Azure account and you've installed the Azure Resource Manager PowerShell cmdlets on your computer. You login to Azure from PowerShell. You'll normally see most people use Login-AzureRmAccount, but that command is an alias (Login isn't an approved verb). Login to Azure and provide the account login information when prompted: Several of the cmdlets in Read more [...]

Use PowerShell to Create a Linux VM in Azure

In a couple of my previous blog articles, I've demonstrated how to create a storage account in Azure and how to create a reserved virtual IP address in Azure. Both of those items will be used in today's blog article so I recommend reading through those previous blog articles if you haven't already done so. The goal in this blog article is to build a CentOS based OpenLogic 7.0 VM in Azure except using PowerShell instead using the Azure portal website (GUI): First, the name of the image that Read more [...]

Use PowerShell to Create a Reserved Virtual IP Address (VIP) in Azure

By default, the VM's that you create in Azure will have a dynamic virtual IP address (VIP). Based on this article on Azure, you could simply create a DNS CNAME record for your custom domain and point it to the DNS name that you chose during the creation of your azure VM which should prevent any problems if the virtual IP address happens to change. Maybe you want a reserved virtual IP address for your Azure instance though? There's a limited number of reserved virtual IP addresses per subscription Read more [...]

Use PowerShell to create a Storage Account in Azure

You’ll need to sign up for an Azure account if you don’t already have one: http://azure.microsoft.com. There’s a free trial if you want to try it out. One thing I would suggest if you've never used Azure is to spend a little time in the GUI (your Azure account's portal website) learning about it before you start trying to manage it with PowerShell. That's the same advice I would give to anyone wanting to do something with PowerShell. For example, if you want to create an Active Directory Read more [...]