Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerShell Runbook is still using RunAsAccount and thus does not work #114

Open
enterprise-1701-d opened this issue Apr 9, 2024 · 1 comment

Comments

@enterprise-1701-d
Copy link

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

@goraco
Copy link
Member

goraco commented Apr 9, 2024

hello @enterprise-1701-d
you are right, code need to be fixed , will do it. Thanks for bring it it up

best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants