I worked on a service request where customer is getting the below error when trying to automate scale up/down for SQL Managed Instance using Azure Automation/Runbook.
Performing management operations on SQL Managed instances using Azure Runbook (PowerShell).
SQL Managed Instance has an AAD admin set.
Automation account identity is set to user assigned.
Error: set-AzSqlInstance : Cannot find the Azure Active Directory object '<removed>. Please make sure that the user or group or application you are authorizing is registered in the current subscription's Azure Active directory.