Check your Azure Automation Accounts for Run As accounts before they are retired on Sept 30
Check your Azure Automation Accounts for Run As accounts before they are retired on Sept 30
This script contains functions to help you identify potential runbooks still using Run As accounts. - Find-AutomationRunAsAccounts.ps1
![This script contains functions to help you identify potential runbooks still using Run As accounts.](https://programming.dev/pictrs/image/f332b4f0-532e-498d-a2f9-ead584e82a07.png?format=webp&thumbnail=256)
Azure Automation Run As Account will retire on September 30, 2023 and will be replaced with Managed Identities. Before that date, you'll need to migrate your runbooks to use managed identities.
However, just the presence of a Run As account doesn’t mean a it is being used. Often these were just created during the automation account provisioning. This script help to determine if you are using the Run As account by search through the runbooks to find references to the Run As Account actually being called. Then finds the last time the runbook was executed. If no date is returned, then the runbook has not executed in the last 30 days.