796 questions with Azure Policy tags

Sort by: Updated
1 answer

While doing remediation in Azure policy assignment getting below error

While doing remediation in Azure policy getting error: Evaluation of DeployIfNotExists policy was unsuccessful. The policy assignment…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2024-03-18T17:58:12.0866667+00:00
Sourabh sourabh 0 Reputation points
answered 2024-03-19T04:56:57.5+00:00
AnuragSingh-MSFT 20,016 Reputation points
1 answer

Extracting resource compliance states | How to download data for resource compliance states in Azure Policies|

I have several Azure Policies, and from the portal If I go to the assignments and look at the policy I can get the compliance percentage and status of each resource (Compliant or not-compliant), However there is no way for me to download to the data to…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2024-03-12T17:32:17.7+00:00
prasannarajayya 0 Reputation points
commented 2024-03-18T17:25:37.42+00:00
Monalla-MSFT 11,641 Reputation points
1 answer One of the answers was accepted by the question author.

Azure Policy for BlobServices

Hi, community! I'm using this policy in order to audit blob versioning: { "properties": { "displayName": "Custom: Configure your Storage account to enable blob versioning", "policyType":…

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,436 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2024-03-15T12:26:44.2733333+00:00
Serhii Polhorodnyk 20 Reputation points
commented 2024-03-17T13:27:37.58+00:00
Serhii Polhorodnyk 20 Reputation points
2 answers

Anyone knows for sure if, in Azure Portal, they have controls / policies to implement / be controled by Azure, for the new version of ISO 27001:2022 ?

Hello, i need to know if we can add that kind of controls to be assessed by the Azure portal, instead of the ISO 27001:2013, that already has controls listed; is there a way of add / use the new version of ISO (ISO 27001:2022), within the Policy, inside…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2024-03-16T19:14:35.4766667+00:00
Pedro Costa - MixMove 40 Reputation points
answered 2024-03-16T19:58:27.2633333+00:00
Azar 19,170 Reputation points
1 answer One of the answers was accepted by the question author.

Unable to run "az deployment mg create" on Tenant Root Group

Trying to deploy a management group structure via Bicep starting 1 level down from "Tenant Root Group". CLI command az deployment mg create needs to target the Tenant Root Group (which has the same ID as the Tenant ID as per…

Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
671 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2024-03-12T03:36:40.1733333+00:00
Jose-Paolo Roldan 20 Reputation points
commented 2024-03-15T08:02:03.4766667+00:00
SwathiDhanwada-MSFT 17,556 Reputation points
2 answers

how to make azure policy definition script that limits the number of resources per resource group? how to make azure policy definition script that limits the number of resources per resource group?

I want to limit the number of resources per resource group. For example, I would like to limit the creation of a maximum of 2 virtual machines and a maximum of 1 DB per resource group. My questions are: Does an Azure Policy Definition that satisfies…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2024-01-21T15:52:02.56+00:00
elice-cloud-practice-dev 0 Reputation points
answered 2024-03-12T14:55:10.71+00:00
Tabut, Olivier 0 Reputation points
1 answer

After applying Azure policy for auto update for flagged VM its flagging

created new azure policy for VM automatic update on flagged vm but it still flagging. update name: "Microsoft .NET Core Security Update for January 2024" after update also it still showing old version only. how to auto update this issue using…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2024-03-12T06:57:00.2966667+00:00
Maazulla Khan (HCL TECHNOLOGIES CORPORATE SER) 0 Reputation points Microsoft Vendor
edited the question 2024-03-12T11:36:13.19+00:00
OMMI NAVEEN KUMAR 195 Reputation points Microsoft Vendor
3 answers

Custom azure policy to enable automatic VM guest patching

I would like to enable Automatic VM guest patching using Azure Policy with DeployIfNotExist mode. I drafted a definition but it does not seems to work properly (it shows non compliant VM as compliant). { "mode": "All", …

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,148 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
224 questions
asked 2024-01-31T10:18:40.4+00:00
Yasmin, Fitri 266 Reputation points
answered 2024-03-10T12:56:55.3166667+00:00
Cristian SPIRIDON 4,471 Reputation points
1 answer

Issue on connecting tenant id and subscription id

error fetching tenantID and subscriptionID from Azure CLI (are you logged on using az login?): failed to open file (C:\Users\ADMIN.azure\azureProfile.json) while loading token: open C:\Users\ADMIN.azure\azureProfile.json: The system cannot find the path…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,148 questions
Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,046 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2024-02-25T05:35:10.35+00:00
Varma 1,140 Reputation points
commented 2024-03-08T17:00:42.2233333+00:00
deherman-MSFT 33,471 Reputation points Microsoft Employee
0 answers

How can an Azure policy assess SQL Azure database capacity?

I have a parameter "maxCores": { "type": "Integer", "metadata": { "displayName": "Max Capacity", "description": "The max cores or DTUs that can…

Azure SQL Database
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2022-08-09T15:57:47.367+00:00
Russell H. DeGrove 6 Reputation points
commented 2024-03-08T09:16:20.1566667+00:00
WOJTAS, P. (PATRYCJA) 10 Reputation points
1 answer

Azure Policy trigger on Azure Budget alert

We need to assign azure policy to deny the creation of new resources to a subscription whose budget has been reached. And once it is below limit, the policy should be removed from that subscription automatically .So how can we integrate Azure Policy…

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,046 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2023-02-27T13:39:32.4+00:00
GAURAV SINGH 1 Reputation point
commented 2024-03-07T14:47:56.5266667+00:00
Mohammad Wasif Rafique Mandal 35 Reputation points
1 answer

Azure arc machine configuration deployment error

Hello I am attempting to deploy sample machine configuration for an Azure arc machine resource following the steps mentioned in https://learn.microsoft.com/en-us/azure/governance/machine-configuration/how-to/develop-custom-package/overview except for…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2024-03-06T09:15:36.6433333+00:00
Anupam Kumar 0 Reputation points Microsoft Employee
commented 2024-03-06T16:48:46.0266667+00:00
Anupam Kumar 0 Reputation points Microsoft Employee
0 answers

Unable to apply Custom Guest Configuration on Linux VMs using the nxModule

Using Azure Policy, Im (unsuccessfully) applying a Custom Guest Configuration that uses the nxPackage and nxService. Troubleshooting led to me to manually apply the config using the Start-GuestConfigurationPackageRemediation cmdlet with the Verbose flag.…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,148 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2021-09-21T13:19:20.923+00:00
Ivan Vorobiev 1 Reputation point
commented 2024-03-05T13:32:12.75+00:00
Alexandre, Carvalho (A93) 0 Reputation points
1 answer One of the answers was accepted by the question author.

Azure Policy | How do i configure according to my need?

How can i make azure that i can only access the always free services and dont go beyond the quota. is it possible to make a policy for it and so how do i??? I want to just use the free services of azure that are available for free and dont cost…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2024-03-02T09:05:26.24+00:00
Ishtiaque Ahmed CSEH Rafin 81 Reputation points
edited the question 2024-03-05T10:39:33.25+00:00
SwathiDhanwada-MSFT 17,556 Reputation points
2 answers One of the answers was accepted by the question author.

What are the Azure policies i can implement to be compliant for European DORA act

As per the new Digital operational resiliency act, any financial services operating in europe need to be compliant by Jan 2025. For more reading please see the…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2023-10-12T18:31:59.8933333+00:00
Ratish Kumar 71 Reputation points
commented 2024-03-05T05:57:53.06+00:00
SwathiDhanwada-MSFT 17,556 Reputation points
2 answers

Create Azure Policy to add role to resource group

Hello. I would like to create Azure Policy on subscription that will ensure, that to all resource groups (new and existing) that starts with 'xyz-' a role 'owner' will be granted to user with ID 'principalId'. Here is my code: { "mode":…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2024-02-15T21:32:33.2+00:00
Mateusz 0 Reputation points
commented 2024-03-05T05:52:19.32+00:00
SwathiDhanwada-MSFT 17,556 Reputation points
0 answers

Azure Policy Assignment name discrepancy in powershell output and azure portal

Hello , I am working on a pester test with a policy with some powershell scripts , i have deployed 2 storage accounts in azure and both are compliant with the policy which i have assigned. The powershell output different AssignmentName for one of the…

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,071 questions
asked 2024-03-04T20:59:26.36+00:00
augustine leo 0 Reputation points
commented 2024-03-05T02:11:35.33+00:00
tbgangav-MSFT 10,381 Reputation points
1 answer

Azure APIM - CORS policy

Hello, I am currently facing issue with CORS issue in Azure APIM with my API. I added below CORS policy Inbound only to my API on All Operations, where for testing in I have kept all open where I am allowing any Origin, Header and Methods. This is still…

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,760 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2024-03-02T02:26:05.12+00:00
Ghawali, Avinash (AssetMark) 0 Reputation points
answered 2024-03-04T12:31:37.56+00:00
JananiRamesh-MSFT 21,246 Reputation points
1 answer

iam creating policy to enable custom script extension through policy but its not working as iam using free trail in free trail it will work or not

{   "mode": "All",   "policyRule": {     "if": {       "allOf": [         {           "field": "type",           "equals": "Microsoft.Compute/virtualMachines"      …

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2024-02-28T05:04:33.06+00:00
Akhil reddy 0 Reputation points
answered 2024-03-02T22:02:34.5+00:00
Ryan Hill 25,826 Reputation points Microsoft Employee
4 answers

Cannot assign a policy to Subscription or Resource Group from console

When I try to assign a policy to Subscription or Resource Group from the console, I get the error message: You cannot perform this action without the following permissions over selected scope (Microsoft.Authorization/PolicyAssignments/write)

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
796 questions
asked 2022-05-07T16:53:08.467+00:00
Bernard Ervin 1 Reputation point
answered 2024-03-02T15:26:07.9433333+00:00
Pavankumarreddy mutra 0 Reputation points