Home
%3CLINGO-SUB%20id%3D%22lingo-sub-828508%22%20slang%3D%22en-US%22%3ESteps%20to%20run%20PCE%20(Azure%20Policy%20Compliance%20Evaluator)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-828508%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20Article%20will%20help%20you%20know%20how%20to%20use%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fprchanda%2Fpce%2Freleases%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Policy%20Compliance%20Evaluator%3C%2FA%3E(PCE)%20tool%20which%20will%20help%20you%20evaluate%20your%20Policies%20on%20demand.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20has%20been%20a%20lot%20of%20situations%20where%2C%20after%20we%20have%20created%20a%20policy%2C%20we%20had%20to%20keep%20on%20waiting%20for%20the%20evaluation%20cycle%20to%20run%20on%20our%20Subscription%20for%20us%20to%20know%20which%20existing%20resources%20are%20compliant%2Fnon-compliant%20to%20the%20newly%20created%20Azure%20Policy%2C%20and%20as%26nbsp%3Bthe%20evaluation%20cycle%20in%20Azure%20policy%20ran%20once%20in%20every%2024%20hours%20it%20made%20it%20to%20be%20a%20tedious%20and%20time-consuming%20process.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBut%20with%20PCE%20gone%20are%20those%20days%2C%20where%20we%20have%20to%20keep%20on%20waiting%20for%20the%20Evaluation%20to%20happen%20but%20instead%20we%20will%20be%20able%20to%20get%20the%20policies%20evaluated%20on-demand.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20below%20steps%20will%20help%20us%20in%20downloading%20the%20PCE%20tool%20and%20evaluate%20the%20policies%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EDownload%20the%20PCE%20ZIP%20file%20from%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fprchanda%2Fpce%2Freleases%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F129045iA48E962B66C36F36%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.jpeg%22%20title%3D%22clipboard_image_0.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B2.%20Extract%20the%20PCE%20ZIP%20file%20and%20open%20the%20folder%20to%20go%20to%20the%20PCE%20Application%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F129047i599506919085F480%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_1.jpeg%22%20title%3D%22clipboard_image_1.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B3.%20Open%20Cmd%20and%20navigate%20to%20that%20folder%20and%20run%20the%20command%3A%3C%2FP%3E%0A%3CP%3E%3CEM%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20If%20you%20want%20to%20run%20the%20evaluation%20at%20Subscription%20scope%3A%3C%2FEM%3E%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId-1425419283%22%20id%3D%22toc-hId-1425419283%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bpce.exe%20-s%20%2291897ffb-xxxx-xxxx-xxxx-4bb03c62ca8b%22%3C%2FH4%3E%0A%3CP%3E%3CEM%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20If%20you%20want%20to%20run%20the%20evaluation%20at%20Resource%20Group%20scope%3A%3C%2FEM%3E%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId--1126737678%22%20id%3D%22toc-hId--1126737678%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20pce.exe%20-s%20%2291897ffb-xxxx-xxxx-xxxx-4bb03c62ca8b%22%20-rg%20%22%3CRG%20name%3D%22%22%3E%22%3C%2FRG%3E%3C%2FH4%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F129046iD8251679A74F80AD%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_2.jpeg%22%20title%3D%22clipboard_image_2.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20above%20steps%20will%20trigger%20the%20evaluation%20cycle%20and%20you%20will%20be%20able%20to%20check%20your%26nbsp%3Bcompliant%2Fnon-compliant%20resources%20from%20the%20portal%20.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-828508%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F129048iC96D32F649D23D24%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22teaser.PNG%22%20title%3D%22teaser.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-828508%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Policy%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

This Article will help you know how to use Azure Policy Compliance Evaluator (PCE) tool which will help you evaluate your Policies on demand.

 

There has been a lot of situations where, after we have created a policy, we had to keep on waiting for the evaluation cycle to run on our Subscription for us to know which existing resources are compliant/non-compliant to the newly created Azure Policy, and as the evaluation cycle in Azure policy ran once in every 24 hours it made it to be a tedious and time-consuming process.

 

But with PCE gone are those days, where we have to keep on waiting for the Evaluation to happen but instead we will be able to get the policies evaluated on-demand.

 

The below steps will help us in downloading the PCE tool and evaluate the policies:

 

  1. Download the PCE ZIP file from here.

clipboard_image_0.jpeg

 

     2. Extract the PCE ZIP file and open the folder to go to the PCE Application

          clipboard_image_1.jpeg

     3. Open Cmd and navigate to that folder and run the command:

         

        If you want to run the evaluation at Subscription scope:

       pce.exe -s "91897ffb-xxxx-xxxx-xxxx-4bb03c62ca8b"

       

      If you want to run the evaluation at Resource Group scope:

      pce.exe -s "91897ffb-xxxx-xxxx-xxxx-4bb03c62ca8b" -rg "<RG Name>"

 

      clipboard_image_2.jpeg

 

The above steps will trigger the evaluation cycle and you will be able to check your compliant/non-compliant resources from the portal .