Is it possible to create a powershell 5.1 runbook to disable AI settings in a environment.

2025-02-24T16:01:00.9133333+00:00

Working on runbooks in Azure, and i'm trying to disable AI settings with one of them, but it doesn't work.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Gowtham CP 5,920 Reputation points
    2025-02-24T16:25:28.64+00:00

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.