Problem with app deplozment due to policy

Evgenii Pereverzev 20 Reputation points
2023-03-27T16:42:14.5933333+00:00

Hi!

Trzing to deploy app from Marketplace which create several servers and scale set. Having always conflicts when creating scale set.

Try to deploy on clear subscription and receive successfull deployment.

Current management group has around 300 policies. How to check which policy make problems?

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

Accepted answer
  1. TP 90,151 Reputation points
    2023-03-28T02:01:24.73+00:00

    Hi,

    What you can do is examine the Activity log in the subscription where the deployment is failing and check which policies caused the failure. For example, in the Azure portal, you can open up the Activity log using link below:

    https://portal.azure.com/#view/Microsoft_Azure_Monitoring/AzureMonitoringBrowseBlade/~/activityLog

    Make sure the filter is set to correct subscription, time range, and then look at the Validate Deployment operations that failed. Click on one of the failed Validate Deployment entries, then select the JSON tab. Scroll down through the json until you see details of which policy caused the failure. That way you can take a look at the relevant policy definition(s) so you can figure out why they are blocking your deployment.

    If the above was helpful please click Accept Answer.

    Thanks.

    -TP

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 18,751 Reputation points
    2023-03-28T12:55:05.64+00:00

    @Evgenii Pereverzev Welcome to Microsoft Q & A Community Forum. Adding further reference to what community member has mentioned, you can refer this document on how to resolve when a request is disallowed by policy.

    0 comments No comments

Your answer

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