Questions tagged [azure-policy]

The 'azure-policy' tag is meant to be used on all questions related to authoring, assigning, and grouping of Azure Policy definitions and initiatives. This will improve the visibility of the questions to both the community and Azure Governance product team.

480 questions
0
votes
1 answer

Azure Custom Extension Policy

I am creating a custom policy to force all VM's that have an image from a certain resource group to join the domain by deploying an extension. I have run into an issue with it not working and it keeps saying I do not have permissions even when I…
0
votes
1 answer

Azure policy for network subnet

How can I set up a standard naming convention for Azure Network subnet... I have the policy, however it doesn't seem to work { "if": { "allOf": [{ "field": "type", "equals": "Microsoft.Network/virtualNetworks/subnets" …
user989865
  • 627
  • 3
  • 9
  • 25
0
votes
1 answer

how to find the flow of azure policy

I'm creating a Azure Policy, with much help i was able to get to the below json policy, but it is behaving in a different way than what I'm expecting. As per my understanding (correct me if i'm wrong) :Azure Policy is basically an [if] and [then]…
aquib.qureshi
  • 557
  • 1
  • 8
  • 21
0
votes
1 answer

Duplicate policy created using same definition ID. How to avoid or list them

Since more than one Azure policy assignment can use same Azure policy definition id, how can i avoid duplicacy or list out duplicate policy with same definition id.
0
votes
1 answer

Overwrite Azure resource values with Azure policy values

Is it possible to overwrite Azure resource values with Azure policy values? I am trying to fix the VM size/sku. I created the below Policy with an append effect which fails VM creation as it cannot overwrite the default/given VM size/sku. { …
0
votes
1 answer

How to restrict "Publisher" by Azure Policy

we have hard time, because we are trying to restrict specific "Publishers" by Azure Policy but we find only how to restrict a "Type". Isnt there a noble soul, who know, how to help us?
0
votes
2 answers

Set Azure Location Policy Restriction

I want to define a Azure policy where by deployments can only be made to 'West US' and East US at subscription level. I understand that I'm trying to populate a array of locations but I'm going wrong some where; { "policyRule": { "if": { …
craig Rickett
  • 428
  • 1
  • 5
  • 17
-1
votes
0 answers

Hi i want to create an Azure custom policy for vm by using bicep it should not create public ip and also follow naming convention

Hi i want to create an Azure custom policy for vm by using bicep it should not create public ip and also follow naming convention. i Have it in powershell but i am not able to convert it in Bicep. I am expecting a bicep script to create Custom…
-1
votes
0 answers

VSCode Azure Policy extension alias doesnt work

whenever i hover a property while using the azure Policy extension i never see aliases, i have uninstalled and reinstalled several times and restarted vscode and my machine several times but nothing works. ANy support would be appreciated hovered…
Elowa
  • 1
-1
votes
1 answer

Azure policy allowing only specific AD groups to create public IP

I am trying create a custom policy to deny Azure AD groups from creating public IPs except some specific group but I am hit with errors not sure where the issue is coming from. { "if": { "allOf": [ { "field": "type", …
uwi
  • 1
-1
votes
2 answers

How to block a creation of new public ips in azure

I am trying to stop users that arent global admins from creating new public ips and assigning them to vms or nics. But I dont want to affect the existing assigned ips. I think the best way to do it is with a policy. I found this policy that block…
dana123
  • 1
  • 2
-1
votes
1 answer

Can someone list all the possible supported values for "field" in the Azure Policy

It's becoming hectic to find the values for the "field" when writing the custom policies. Some of the values of the built-in values for "field"…
Shan
  • 7
  • 1
-1
votes
1 answer

How to trigger an Azure Policy from an Azure Runbook

How can we trigger an Azure Policy from an Azure Runbook? example - to may be stop provisioning of resources in a subscription temporarily. I have basically created an Budget Action Group to an Azure Runbook via Webhook. This works successfully, but…
-1
votes
1 answer

Terraform: Azure Policies for SOC2 Type-2

Using Terraform, I want to automate Azure Policy deployment. I know how to build and deploy Azure Policies using Terraform, but I'm not familiar with SOC2 Type-2. Do you have a policy implementation that covers SOC2 Type-2 which I can use or refer…
One Developer
  • 99
  • 5
  • 43
  • 103
-1
votes
1 answer

Azure API Management Policy(Rewrite URI policy)- Template and Query Parameters

I require some help on doing a rewrite uri policy. I was able to extract information from payload and change the initial request URL. Have extracted the insurer_id from body and passed it to my backend ->…
1 2 3
31
32