1,005 questions with Azure Policy tags

Sort by: Updated
1 answer

If I have default value defined at policy level for "effect" parameter, can I overwrite the value at initiative level?

I have 'effect' value set as 'deny' at initiative level, which should overwrite policy level default value 'audit'. But it does not. The "effect" is a parameter in the policy. Any suggestion what could be the issue?

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2025-06-09T14:02:35.9166667+00:00
Guo, Jianning 0 Reputation points
answered 2025-06-09T15:02:02.5566667+00:00
Ashok Gandhi Kotnana 8,645 Reputation points Microsoft External Staff Moderator
0 answers

Unable to Redeem Azure for Students Subscription with GitHub Student Developer Pack

Hello, I am a verified member of the GitHub Student Developer Pack and trying to activate the Azure for Students offer. However, I am unable to redeem the subscription through the GitHub flow. I’ve already ensured that: My GitHub account is verified for…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2025-04-26T04:19:53.42+00:00
Vijay Maru 0 Reputation points
edited a comment 2025-06-07T19:57:22.32+00:00
Kunal Mangwani 0 Reputation points
1 answer

Storage Failover DNS mapping using Azure policy

Need a plan for storage failover scenario, how to update the secondary private endpoint in private DNS zone using azure policy? Please suggest some work around in terms of automating the update of DNS mapping in storage failover. We are following this…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2025-06-03T10:09:02.4533333+00:00
Suraj Singh Thakur 21 Reputation points
commented 2025-06-05T11:19:26.7933333+00:00
Naveena Patlolla 3,035 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Azure Policy not enforcing Deny when creating a Subscription in a Management Group

Hi, I'm trying to use an Azure custom policy to deny creation of subscription in a management group when mandatory subscription tags are not provided. Currently creation of the subscription is allowed but then marked as non-compliant in the portal. …

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2025-05-28T10:05:51.5766667+00:00
steven varley 20 Reputation points
accepted 2025-05-28T11:25:48.6566667+00:00
steven varley 20 Reputation points
0 answers

Azure subscription disabled Microsoft Resource Block Applied[#SIR21265734]

Hi Azure support team, This morning we got an email from Azure with title Microsoft Resource Block Applied[#SIR21265734] alert us the security breach to my account. All permissions is revoked (readonly) which is great. That buy us time to reset users…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2025-05-26T14:49:23.18+00:00
Tuan Duong 0 Reputation points
commented 2025-05-28T08:50:38.4666667+00:00
Pranay Reddy Madireddy 4,990 Reputation points Microsoft External Staff Moderator
2 answers

Azure Policy to deploy VM application is success when run on our Resource group, but app is not installed

We are attempting to install software agents on our VM's in Azure (looking for something similar to aws systems manager and state manager) Azure Policy that has VM application defined on it runs fine and also completes with success, but application is…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2024-11-08T17:48:36.8+00:00
Slack 0 Reputation points
commented 2025-05-23T02:46:09.02+00:00
Ashok Gandhi Kotnana 8,645 Reputation points Microsoft External Staff Moderator
1 answer

Azure Policy to Block VM Snapshots and Backups for Specific Subscriptions

There are 10 subscriptions, each containing VMs. The goal is to block VM snapshots and backups from the Recovery Services Vault for 2 specific subscriptions. Assistance is needed to create a policy that achieves this without having to create separate…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2025-05-21T11:52:51.9933333+00:00
Pritesh Kamble 0 Reputation points
commented 2025-05-22T15:48:13.8666667+00:00
Alex Burlachenko 7,840 Reputation points
1 answer

Block creation of App service with certain kinds

I’m working on an Azure Policy to block the creation of App Services with the following kind values: app, app,container,windows, app,linux, and app,linux,container. { "properties": { "displayName": "AUDIT - Neerja - test…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2025-05-20T16:17:06.87+00:00
Narayanappa, Neerja 0 Reputation points
answered 2025-05-20T19:58:39.88+00:00
Vinod Pittala 2,485 Reputation points Microsoft External Staff Moderator
1 answer

I have Issue Creating Free Student Account

I Have A Student Email ID But i am not able to Create One

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2025-05-20T09:22:51.1866667+00:00
Subhash Kumar 0 Reputation points
answered 2025-05-20T12:34:26.6866667+00:00
Pranay Reddy Madireddy 4,990 Reputation points Microsoft External Staff Moderator
1 answer

Auto pay for free Azure account

Hi All, I recently got myself Azure free account which is valid for 12 months with limited credits and services. I paid 2 rupees from my Debit card but I received a msg from my bank saying that Auto-pay activated for INR 200000. I don't understand…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2025-05-15T20:49:00.6933333+00:00
Shivhare, Ayushi (Cognizant) 0 Reputation points
commented 2025-05-19T18:19:44.89+00:00
Srinivasa Reddy Jaggavarapu 1,335 Reputation points Microsoft External Staff Moderator
2 answers

Azure Policy & VM JIT - Do not allow Any as source

I am currently trying to prevent users from requesting Azure JIT VM access coming from the Source IP addresses "Any". According to this thread, https://learn.microsoft.com/en-us/answers/questions/846584/azure-vm-jit-do-not-allow-any-as-source ,…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,905 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,349 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2024-05-14T12:27:20.6233333+00:00
Jara Entren 35 Reputation points
commented 2025-05-19T15:13:04.48+00:00
kobulloc-MSFT 26,721 Reputation points Microsoft Employee Moderator
0 answers

How to Enforce Tagging Standards During Azure Subscription Creation

Issue Statement: There is a need to implement an Azure Policy that prevents the creation of Azure subscriptions if certain required tags are not provided during the creation process. However, it has been observed that Azure Policy does not support…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2025-05-15T11:15:15.6133333+00:00
Thangaraj Lakshmanan 185 Reputation points
commented 2025-05-19T08:36:00.12+00:00
Pranay Reddy Madireddy 4,990 Reputation points Microsoft External Staff Moderator
1 answer

Configure Azure Activity logs to stream to specified Storage account from all subscriptions

I want to send all Activity logs from all subscriptions (with in my Managment group) to a specific storage account. Do we have any Built in policy which can be enforced at management group and propagated to all subscriptions ?

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2025-01-21T13:00:08.1766667+00:00
Kaushik Ray 5 Reputation points
commented 2025-05-15T13:38:49.3966667+00:00
Stanislav Zhelyazkov 27,716 Reputation points MVP Volunteer Moderator
1 answer One of the answers was accepted by the question author.

Azure Policy whether can do someting when creating a new subscription

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…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2025-05-06T02:55:03.0033333+00:00
Gallatin 21V 206 Reputation points
accepted 2025-05-13T11:20:26.46+00:00
Gallatin 21V 206 Reputation points
1 answer

How can we prevent users from modifying subscription-level tags once they are created in Azure?

We want to enforce governance so that once tags (like Environment, CostCenter, etc.) are added to a subscription, no user—including subscription owners—can modify or delete them, unless explicitly allowed (e.g., by a central admin role). Is there a way…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2025-05-06T20:22:48.29+00:00
SrVish 20 Reputation points
commented 2025-05-12T21:16:18.86+00:00
Vinod Pittala 2,485 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Allow deployments only from Terraform using Azure Policy

Hi Team, Is it possible to block all deployments and allow it only from Terraform? I tried this but it didn't work. { "not": { "anyOf": [ { "field":…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2025-03-26T14:00:40.9233333+00:00
Logan 40 Reputation points
accepted 2025-05-09T08:25:43.07+00:00
Logan 40 Reputation points
1 answer

Troubleshooting Azure B2C MFA Integration with Application

I am setting up Azure B2C integration with our application. I want to enable two-factor authentication (MFA) where the user can choose between phone or email for the verification process. When I select MFA via phone and enter the code I receive, I am…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2025-04-21T14:21:23.0866667+00:00
Paulina Romanova 0 Reputation points
commented 2025-05-07T06:47:35.6433333+00:00
VigneshwarDuvva-5247 1,750 Reputation points Moderator
0 answers

The policy assigned to the management group cannot take effect during the create subscription process. Is this the design?

We found that the policies assigned to the management group cannot take effect during the subscription creation process After the subscription is created, we can identify new subscriptions that do not comply through compliance and modify them through…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2025-04-29T08:40:21.69+00:00
txsun 0 Reputation points
edited the question 2025-05-02T08:29:15.3266667+00:00
Naveena Patlolla 3,035 Reputation points Microsoft External Staff Moderator
1 answer

Tenant and access blocked in the Azure portal

We have a sponsored subscription (given to NGOs), but it was recently blocked and Microsoft gave us a deadline to solve the problem and get everything back to normal. Lock details: • Details of the Block placed: Subscription Level Deny Assignment Block…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2025-04-28T11:38:55.87+00:00
PauloKennedy-7446 0 Reputation points
edited the question 2025-05-02T04:38:59.8266667+00:00
Ashok Gandhi Kotnana 8,645 Reputation points Microsoft External Staff Moderator
1 answer

Azure resource graph query to get all policy definition details which are assigned

Azure has lot of inbuilt policies and few are custom policies.i need an Azure resource graph query to get all policy definition details of only the policies which are assigned

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,005 questions
asked 2024-10-12T06:40:19.6266667+00:00
MS Techie 2,751 Reputation points
commented 2025-04-30T05:58:29.8+00:00
Madhur Shukla 25 Reputation points Microsoft Employee