Hi @Bansal Patel,
Currently, Azure does not publicly define a fixed limit for the number of User-Assigned Managed Identities (UAMIs) that can be attached to a single App Service. However, in practice, users have observed a typical functional limit between 250 and 400 identities per web app.
- Microsoft documentation does not specify an exact maximum. The actual number may vary depending on platform-level constraints like:
- Region and infrastructure backend
- App Service Plan size
- ARM schema limitations (e.g., JSON payload size)
- As you've noticed, one app allowed 295 UAMIs, and another 325, this is expected and not an error. Variability is common and influenced by internal platform constraints.
- Monitor identity assignments programmatically using CLI or REST: https://learn.microsoft.com/en-us/cli/azure/resource?view=azure-cli-latest#az-resource-show
az resource show \ --resource-type "Microsoft.Web/sites" \ --name <your-app-name> \ --resource-group <your-resource-group> \ --query "identity.userAssignedIdentities"
- Design apps to use shared UAMIs where possible.
- If approaching 300+, consider scaling across multiple apps or rotate UAMIs dynamically.
- If require assigning more than 300 UAMIs to a single app, the best path is to open a Microsoft Support Request to check your subscription’s specific platform limits in your target region. And use modular architecture to avoid single-resource bottlenecks.
Reference:
Azure Managed Identities Overview
Azure App Service limits (This page does not list a limit on identities but is useful for related resource constraints)
User-assigned managed identity limits (refer to this for edge cases and quota caveats)
If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.
Let me know if you have any further Queries.