
If an application is running within an Azure entity such as an Azure VM, a virtual machine scale set, or an Azure Function app, it can use a managed identity to access the resources. The authentication step requires that an application request contains an OAuth 2.0 access token at runtime.

For step-by-step instructions, see Disable local authentication. You can disable local or SAS key authentication for a Service Bus namespace and allow only Azure Active Directory authentication.
