Share via

Azure Policy whether can do someting when creating a new subscription

Gallatin 21V 301 Reputation points
2025-05-06T02:55:03.0033333+00:00

We want to do some thing for a new subscription when create it by azure policy. such as add a tag when create it , etc.
I checked offical doc : https://docs.azure.cn/en-us/governance/policy/overview#resources-covered-by-azure-policy, it seems only support for resources and not contains subsction.
So want to double confirm azure azure Policy whether can do someting for this new subscrition when create new subscription. and if so, whether means we only can do these by azure remediate after the new subscription been created. Thanks ~

Azure Policy
Azure Policy

An Azure service that is used to implement corporate governance and standards at scale for Azure resources.


Answer accepted by question author

Abrar Adil S 456 Reputation points
2025-05-06T04:45:34.29+00:00

Azure Policy does not support tagging subscriptions directly, including at creation time. It only works for resources and resource groups.

You can use an Azure Automation Account with a scheduled PowerShell Runbook that:

Lists subscriptions under a management group (e.g., "Prod").

Checks for required tags and adds only missing ones.

Uses Set-AzTag -Operation Merge to preserve existing tags

I hope this information is helpful. Please feel free to reach out if you have any further questions.

If the answer is helpful, please click "Accept Answer" and kindly "upvote it". If you have extra questions about this answer, please click "Comment".

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.