You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Build-PolicyDocumentation` builds documentation from instructions in the `policyDocumentations` folder reading the deployed Policy Resources from the EPAC environment. It is also used to generate parameter/effect CSV files for Policy Assignment files. See usage documentation in [Documenting Policy](operational-scripts-documenting-policy.md).
24
24
25
25
## Policy Resources Exports
26
26
27
-
-`Export-AzPolicyResources` exports Azure Policy resources in EPAC. It also generates documentation for the exported resources (can be suppressed with `-SuppressDocumentation`). See usage documentation in [Extract existing Policy Resources](start-extracting-policy-resources.md).
28
-
-`Get-AzExemptions` retrieves Policy Exemptions from an EPAC environment and saves them to files.
29
-
-`Get-AzPolicyAliasOutputCSV` exports Policy Aliases to CSV format.
27
+
*`Export-AzPolicyResources` exports Azure Policy resources in EPAC. See usage documentation in [Extract existing Policy Resources](start-extracting-policy-resources.md).
28
+
*`Get-AzExemptions` retrieves Policy Exemptions from an EPAC environment and saves them to files.
29
+
*`Get-AzPolicyAliasOutputCSV` exports Policy Aliases to CSV format.
30
30
31
31
## Hydration Kit
32
32
@@ -36,36 +36,36 @@ The Hydration Kit is a set of scripts that can be used to deploy an EPAC environ
36
36
37
37
The scripts `New-AzureDevOpsBug` and `New-GitHubIssue` create a Bug or Issue when there are one or multiple failed Remediation Tasks.
38
38
39
-
40
39
## Export from AzAdvertizer
41
40
42
-
The script `Export-AzAdvertizer.ps1` creates for you the policyAssignments, policyDefinitions, and policySetDefinitions based on the provided URL in an Output folder under 'ALZ-Export'.
41
+
The script `Export-AzAdvertizerPolicy.ps1` creates for you the policyAssignments, policyDefinitions, and policySetDefinitions based on the provided URL in an Output folder under 'ALZ-Export'.
43
42
44
43
Parameters:
45
-
-**AzAdvertizerUrl**: Mandatory url of the policy or policy set from AzAdvertizer.
46
44
47
-
-**OutputFolder**: Output Folder. Defaults to the path 'Output'.
48
-
49
-
-**AutoCreateParameters**: Automatically create parameters for Azure Policy Sets and Assginment Files.
45
+
***AzAdvertizerUrl**: Mandatory url of the policy or policy set from AzAdvertizer.
46
+
47
+
***OutputFolder**: Output Folder. Defaults to the path 'Output'.
50
48
51
-
-**UseBuiltIn**: Default to using builtin policies rather than local versions.
49
+
***AutoCreateParameters**: Automatically create parameters for Azure Policy Sets and Assginment Files.
52
50
53
-
-**Scope**: Used to set scope value on each assignment file.
51
+
***UseBuiltIn**: Default to using builtin policies rather than local versions.
54
52
55
-
-**PacSelector**: Used to set PacEnvironment for each assignment file.
53
+
***Scope**: Used to set scope value on each assignment file.
56
54
57
-
-**OverwriteOutput**: Used to Overwrite the contents of the output folder with each run. Helpful when running consecutively.
55
+
***PacSelector**: Used to set PacEnvironment for each assignment file.
56
+
57
+
***OverwriteOutput**: Used to Overwrite the contents of the output folder with each run. Helpful when running consecutively.
58
58
59
59
## Non-compliance Reports
60
60
61
61
`Export-NonComplianceReports` exports non-compliance reports for EPAC environments . It outputs the reports in the `$OutputFolders/non-compliance-reports` folder.
62
62
63
-
-`summary-by-policy.csv` contains the summary of the non-compliant resources by Policy definition. The columns contain the resource counts.
64
-
-`summary-by-resource.csv` contains the summary of the non-compliant resources. The columns contain the number of Policies causing the non-compliance.
65
-
-`details-by-policy.csv` contains the details of the non-compliant resources by Policy definition including the non-compliant resource ids. Assignments are combined by Policy definition.
66
-
-`details-by-resource.csv` contains the details of the non-compliant resources sorted by Resource id. Assignments are combined by Resource id.
67
-
-`full-details-by-assignment.csv` contains the details of the non-compliant resources sorted by Policy Assignment id.
68
-
-`full-details-by-resource.csv` contains the details of the non-compliant resources sorted by Resource id including the Policy Assignment details.
63
+
*`summary-by-policy.csv` contains the summary of the non-compliant resources by Policy definition. The columns contain the resource counts.
64
+
*`summary-by-resource.csv` contains the summary of the non-compliant resources. The columns contain the number of Policies causing the non-compliance.
65
+
*`details-by-policy.csv` contains the details of the non-compliant resources by Policy definition including the non-compliant resource ids. Assignments are combined by Policy definition.
66
+
*`details-by-resource.csv` contains the details of the non-compliant resources sorted by Resource id. Assignments are combined by Resource id.
67
+
*`full-details-by-assignment.csv` contains the details of the non-compliant resources sorted by Policy Assignment id.
68
+
*`full-details-by-resource.csv` contains the details of the non-compliant resources sorted by Resource id including the Policy Assignment details.
if ($null-eq$nonComplianceMessageRaw.message-or$nonComplianceMessageRaw.message-eq"") {
199
-
Write-Error" Leaf Node $($nodeName): each nonComplianceMessage must conatin a message string: $($nonComplianceMessageRaw|ConvertTo-Json-Depth 100-Compress)"
199
+
Write-Error" Leaf Node $($nodeName): each nonComplianceMessage must contain a message string: $($nonComplianceMessageRaw|ConvertTo-Json-Depth 100-Compress)"
0 commit comments