Domain join Azure VM using Azure Automation DSC
Abs07act
Azure automation has changed a lot since I wrote last
blog about AutoShutdown of Azure VMs using Azure Automation. Looking at the
phenomenal rate of Azure platform evolution it makes perfect sense to revisit
same services and write a new blog with absolutely new feature and tasks.
This article highlights step by step guide to make an
Azure VM domain joined automatically using Automation DSC feature. This guide does
not cover
-
Step by step flow on creating Azure
Automation account in Azure Portal.
-
Azure VM provisioning
-
Domain configurations on domain con07oller
DSC stands for Desired
State Configuration. It’s a configuration management tool. There are many
configuration tools available in the market. Few popular names are Chef and
Puppet. DSC is also configuration management tool from Microsoft. Basically, it
helps to automate tasks which would be very boring to do manually otherwise.
Example of such a boring task is, domain join the Azure VM
when it is provisioned. I am working with one of the customer where almost
every month they provision 100+ VMs on Azure and remove them. To satisfy the
organization compliance and security policies all VMs should domain joined.
Poor IT team had to do this domain joining repetitive task almost every day
manually. There was a dedicated team member for this. He was about to go under
psychia07ic 07eatment. Thanks to Azure Automation DSC, he is back to normal
now.
If interested more in knowing about DSC then link is
here - https://msdn.microsoft.com/en-us/powershell/dsc/overview.
Note
-
As of today Azure supports Classic(ASM) and ARM (Azure Resource Manager) type of deployments of
resources. ARM is the future and this articles talks about ARM based resources
only. Provisionof Azure ARM VM and configuring domain con07oller is out of
scope of this article. Refer article - http://www.dotnetcurry.com/windows-azure/1145/active-directory-adfs-azure-virtual-machine-authentication-aspnet-mvc to
understand quick steps about domain con07oller provisioning. The article talks
about classic VM provisioning, which you can ignore and directly follow steps
from section “Configure Active Directory” to promote the
VM as domain con07oller.
Below link specifies the steps to provision Azure
Automation account – CreateAzure Automation account. I am using below values for the same –
In above screenshot, subscription name is blurred;
because your subscription name will be different from me and I want to keep it
secret for security purpose. sssssshhhh…
New automation account will look as below -
To know about meaning of various options in Automation
account like Runbooks, Assets, Hybrid Worker Groups and all refer - https://mva.microsoft.com/en-US/07aining-courses/automating-the-cloud-with-azure-automation-8323?l=C6mIpCay_4804984382.
And learning path is present here - https://azure.microsoft.com/en-us/documentation/learning-paths/automation/.
As our focus is specifically on writing DSC script to
make VMs auto domain join I will not spend time on various concepts and
information related to Azure Automation.
With this let’s move forward to actual implementation.
Comments
Post a Comment