- Use a Service Principal, not a Managed Identity, as Managed Identities cannot be addressed outside of Azure.
- There is no way to directly create a service principal using the Azure portal. Use the
az
CLI.
az ad sp create-for-rbac --name "MyServicePrincipalName"
- Create Personal Access Token