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 [...]
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 [...]
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 [...]
Get-Content -Path (Get-Module -Name az).Path | Select-String -SimpleMatch 'Import-Module'
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 [...]
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 [...]
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 [...]
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).
Install-Module -Name AzureRM -Force
Login to Azure and provide the account login information when prompted:
Get-Alias -Definition Add-AzureRmAccount
Several of the cmdlets in Read more [...]
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 [...]
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 [...]
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 [...]