|
| 1 | +--- |
| 2 | +title: Disable local authentication in Azure Automation |
| 3 | +description: This article describes disabling local authentication in Azure Automation. |
| 4 | +services: automation |
| 5 | +ms.subservice: process-automation |
| 6 | +ms.date: 09/28/2021 |
| 7 | +ms.topic: how-to |
| 8 | +#Customer intent: As an administrator, I want disable local authentication so that I can enhance security. |
| 9 | +--- |
| 10 | + |
| 11 | +# Disable local authentication in Automation |
| 12 | + |
| 13 | +Azure Automation provides Microsoft Azure Active Directory (Azure AD) authentication support for all Automation service public endpoints. This critical security enhancement removes certificate dependencies and gives organizations control to disable local authentication methods. This feature provides you with seamless integration when centralized control and management of identities and resource credentials through Azure AD is required. |
| 14 | + |
| 15 | +Azure Automation provides an optional feature to "Disable local authentication" at the Automation account level using the Azure policy [Configure Azure Automation account to disable local authentication](../automation/policy-reference.md#azure-automation). By default, this flag is set to false at the account, so you can use both local authentication and Azure AD authentication. If you choose to disable local authentication, then the Automation service only accepts Azure AD based authentication. |
| 16 | + |
| 17 | +In the Azure portal, you may receive a warning message on the landing page for the selected Automation account if authentication is disabled. To confirm if the local authentication policy is enabled, use the PowerShell cmdlet [Get-AzAutomationAccount](/powershell/module/az.automation/get-azautomationaccount) and check property `DisableLocalAuth`. A value of `true` means local authentication is disabled. |
| 18 | + |
| 19 | +Disabling local authentication doesn't take effect immediately. Allow a few minutes for the service to block future authentication requests. |
| 20 | + |
| 21 | +## Re-enable local authentication |
| 22 | + |
| 23 | +To re-enable local authentication, execute the PowerShell cmdlet `Set-AzAutomationAccount` with the parameter `-DisableLocalAuth false`. Allow a few minutes for the service to accept the change to allow local authentication requests. |
| 24 | + |
| 25 | +## Compatibility |
| 26 | + |
| 27 | +The following table describes the behaviors or features that are prevented from working by disabling local authentication. |
| 28 | + |
| 29 | +|Scenario | Alternative | |
| 30 | +|---|---| |
| 31 | +|Starting a runbook using a webhook. | Start a runbook job using Azure Resource Manager template, which uses Azure AD authentication. | |
| 32 | +|Using Automation Desired State Configuration.| Use [Azure Policy Guest configuration](/governance/policy/concepts/guest-configuration). | |
| 33 | +|Using agent-based Hybrid Runbook Workers.| Use [extension-based Hybrid Runbook Workers (Preview)](./extension-based-hrw-install.md).| |
| 34 | + |
| 35 | +## Limitations |
| 36 | + |
| 37 | +Update Management patching will not work when local authentication is disabled. |
| 38 | + |
| 39 | + |
| 40 | +## Next steps |
| 41 | +- [Azure Automation account authentication overview](./automation-security-overview.md) |
0 commit comments