The runbook, which can be found here: https://github.com/Azure/SAP-on-Azure-Scripts-and-Utilities/blob/main/Start-Stop-Automation/Automation-Backend/Runbooks/Tag-SAPSystemStandaloneHANA.ps1 is still using RunAsAccount and thus doesn not work anymore.
Suggested Code change in section:
Connect to Azure
#$connection = Get-AutomationConnection -Name AzureRunAsConnection
#Add-AzAccount -ServicePrincipal -Tenant $connection.TenantID -ApplicationId $connection.ApplicationID - ....
Connect-AzAccount -Identity
The runbook, which can be found here: https://github.com/Azure/SAP-on-Azure-Scripts-and-Utilities/blob/main/Start-Stop-Automation/Automation-Backend/Runbooks/Tag-SAPSystemStandaloneHANA.ps1 is still using RunAsAccount and thus doesn not work anymore.
Suggested Code change in section:
Connect to Azure
#$connection = Get-AutomationConnection -Name AzureRunAsConnection
#Add-AzAccount -ServicePrincipal -Tenant $connection.TenantID -ApplicationId $connection.ApplicationID - ....
Connect-AzAccount -Identity