Hi Guay, Martin (SPAC/PSPC) (il-lui / he-him) ,
Thank you for reaching out on the Microsoft Q&A.
Yes, you can create a PowerShell 5.1 runbook in Azure Automation to disable local authentication settings. However, as of now, the PowerShell module doesn't support the DisableLocalAuth
parameter directly.
To achieve this, you can use the Azure REST API with API version 2021-06-22
to update the DisableLocalAuth
flag.
For detailed guidance, refer to the official Microsoft documentation: Disable local authentication in Azure Automation
I hope this helps! If you have any further questions, feel free to ask.
If the information is useful, please accept the answer and upvote it to assist other community members.