While trying to re-use custom policy it is failing

Manickam 1 Reputation point
2020-09-16T15:16:47.98+00:00

Created custom policy. It is assigned successfuly without any issue for the first time.
While trying to re-use the same policy and assign to different subscription it is failing with
Resource 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"DenyRVWithoutDiagnosticSettings","id":"/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Authorization/policyAssignments/5e80856cc5ca4e70aa316aa0"},"policyDefinition":{"name":"DenyRVWithoutDiagnosticSettings","id":"/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Authorization/policyDefinitions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}}]'.

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
798 questions
{count} votes