Rehosting On-Premises Process Automation when migrating to Azure
Many enterprises seek to migrate on-premises IT infrastructure to cloud for cost optimization, scalability, and enhanced reliability. During modernization, key aspect is to transition automated processes from on-premises environments, where tasks are automated using scripts (PowerShell or Python) and tools like Windows Task Scheduler or System Center Service Management Automation (SMA).
This blog showcases successful transitions of customer automated processes to the cloud with Azure Automation, emphasizing script re-use and modernization through smart integrations with complementing Azure products. Using runbooks in PowerShell or Python, the platform supports PowerShell versions 5.1, and PowerShell 7.2. To learn more, click here.
Additionally, Azure Automation provides seamless certificate authentication with managed identity, eliminating the need to manage certificates and credentials while rehosting. Azure Automation safeguards the keys and passwords by wrapping the encryption key with the customer-managed key associated to key vault. Integration with Azure Monitor coupled with Automation’s native job logs equip the customers with advanced monitoring and error/failure management. Azure Automation platform efficiently manages long-running scripts in the cloud or on-premises with resource limits options with Hybrid runbook worker. Hybrid runbook worker also equips you to automate workloads off-Azure while utilizing the goodness of Azure Automation runbooks.
Rehosting on-premises operations with minimal effort covers scenarios listed below. Additional efforts involve modernizing scripts for cloud-native management of secrets, certificates, logging, and monitoring. –
- State configuration management - Monitor state changes in the infrastructure and generate insights/alerts for subsequent actions.
- Build, deploy and manage resources - Deploy virtual machines across a hybrid environment using runbooks. This is not entirely serverless and requires relatively higher manual effort in rehosting.
- Periodic maintenance - to execute tasks that need to be performed at set timed intervals like
- purging stale data or reindex a SQL database.
- Checking for orphaned computer and users in Active Directory
- Windows Update notifications
- Respond to alerts - Orchestrate a response when cost-based (e.g. VM cost consumption), system-based, service-based, and/or resource utilization alerts are generated.
Specifically, here are some of the scenarios of managing state configuration of M365 suite where our customer rehosted the on-premises PowerShell script to cloud with Azure Automation
Scenarios for State Configuration Management of M365 Suite
- User Permission & access control management
- Mailbox alerts configuration
- Configuring SharePoint sites availability
- Synchronizing Office 365 with internal applications
Example: Rehosting User Permission & access control management in M365 mailboxes
Here is how one of the customers rehosted a heavy monolithic PowerShell script to Azure. The objective of the job was to identify –
List of shared mailboxes --> list of permissions existing for these mailboxes --> users & groups mapped to the mailboxes --> list of permissions granted (& modified overtime) to these users/groups --> Final output with a view of Mailbox Id, Groups, Users, Permissions provided, Permissions modified (with timestamps).
1. Shared mailboxes credentials
2. Obtain shared Mailbox permissions
3. User & groups mapped to the mailboxes
4. List of permissions granted (& modified overtime) to these users/groups
As the customer modernized from On-premises to Azure via Azure Automation, the following list captures the aspects that have to be updated. The changes were mostly an improvement in terms of experience offered by Azure Automation leveraging smart integrations with other Azure capabilities and little to no reliance on custom scripts.
- Setup Logging & Monitoring methods - In On prem setup, customers authored custom scripts for logging, which was no more needed with Azure Automation. Customers utilized in-portal Azure Monitor integration to forward logs to Azure monitor, quey logs, and set up alerts for insights.
- Handling certificate authentication – Managed Identity based authentication provides improved means to store secrets and passwords without doing regular updates to code credentials. Azure Automation supports both PS script and in-built portal experience to configure Managed Identity
- Storing passwords and security keys – Key Vault integration with Azure Automation helped the customers to transition this on-prem experience seamlessly. The sample PS script below is recommended to enable Key Vault integration.
If you are currently utilizing Azure Automation for rehosting such light weight environment agnostic operations from on-prem to cloud or want to know more details, please reach out to us on [email protected].
Published on:
Learn moreRelated posts
Getting the most out of Azure DevOps and GitHub
Microsoft has two very successful DevSecOps products in the market – GitHub and Azure DevOps. Azure DevOps has a large enterprise customer bas...
Autoscale in public preview for vCore-based Azure Cosmos DB for MongoDB
Managing workloads with unpredictable spikes can be a real challenge, especially when it comes to ensuring your database can handle sudden sur...
New RBAC Features for vCore-based Azure Cosmos DB for MongoDB
We’re excited to announce a major security enhancement for the vCore-based Azure Cosmos DB for MongoDB: Role-Based Access Control (RBAC) Integ...
Data API Public Preview in vCore-based Azure Cosmos DB for MongoDB
We’re excited to announce that the Data API for vCore-based Azure Cosmos DB for MongoDB is now in public preview. This Data API offers a...
Achieving Production Readiness with Cross-Region Replication in Azure Cosmos DB for MongoDB (vCore)
In today’s digital landscape, cross-region replication has become a foundational feature for any managed database service aiming to prov...
How Toyota uses Azure Cosmos DB to power their multi-agent AI system for enhanced productivity
This article was co-authored by Kenji Onishi, Senior Manager, Powertrain Performance Development, Toyota Motor Corporation; Kosuke Miyasaka, ...
New Vector Search, Full Text Search, and Hybrid Search Features in Azure Cosmos DB for NoSQL
We’re excited to announce several new features and advancements for search and retrieval functionalities in Azure Cosmos DB for NoSQL includin...
Public Preview: Vector Search in Azure Cosmos DB for MongoDB with DiskANN
We’re excited to announce the preview of DiskANN vector indexing for vCore-based Azure Cosmos DB for MongoDB! This feature empowers you to per...