General availability: Log analytics workspace name uniqueness is now per resource group
Published date: 14 April, 2021
Context: Azure Monitor log analytics workspace name uniqueness was maintained globally across all subscription. When a workspace name was used by one customer or user in the same organization, it couldn’t be used again by others.
Update: We have changed the way we enforce workspace name uniqueness and it’s now maintained in the resource group context. It allows you to use the same workspace name in deployments across multiple environments for consistency. Workspace uniqueness is maintained as follow:
- Workspace ID – global uniqueness remained unchanged.
- Workspace resource ID – global uniqueness.
- Workspace name – per resource group
Recommendations: Cross workspace queries (also in alerts) should reference workspaces by either: Qualified name, Workspace ID or Azure Resource ID. Cross workspace queries referenced by Resource name (workspace name) will fail due to ambiguous names when you have multiple workspaces with that name.