Hi Axel Sch
Enable Managed Identity for your Azure Automation Account:
System-assigned Managed Identity:
In the Azure portal, navigate to your Automation Account.
Go to "Identity" under "Account Settings."
Set "System assigned" to "On."
Click "Save."
Azure will create a managed identity associated with your Automation Account.
Grant Permissions to the Managed Identity:
Your Automation Account's managed identity needs appropriate permissions to access the Azure resources your runbook will interact with.
For example, if your runbook needs to start a virtual machine:
Navigate to the virtual machine in the Azure portal.
Go to "Access control (IAM)."
Click "Add" > "Add role assignment."
Select the appropriate role (e.g., "Virtual Machine Contributor").
In "Assign access to," choose "Managed identity."
Select "Automation Account" and then your Automation Account's name.
Click "Save."
Please do not forget to "Accept the answer” and “upvote it” wherever the information provided helps you, this can be beneficial to other community members.it would be greatly appreciated and helpful to others.