Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PSRule] Fix Rule Azure.Policy.AssignmentDescriptors #2668

Closed
Tracked by #2151
fabmas opened this issue Feb 7, 2023 · 1 comment · Fixed by #3893
Closed
Tracked by #2151

[PSRule] Fix Rule Azure.Policy.AssignmentDescriptors #2668

fabmas opened this issue Feb 7, 2023 · 1 comment · Fixed by #3893
Assignees
Labels
[cat] modules category: modules enhancement New feature or request

Comments

@fabmas
Copy link
Member

fabmas commented Feb 7, 2023

Rule Azure.Policy.AssignmentDescriptors

Error: AZR-000143: ***apasubmin001 failed Azure.Policy.AssignmentDescriptors. Policy assignments should use a display name and description.

❓ Validate with the team if the following actions are good:

  1. Set "description" and "displayName" as mandatory parameters in the deploy.bicep file.
  2. Add the following parameters on the deploy.test.bicep:
description: '[Description] Policy Assignment at the management group scope'   
displayName: '[Display Name] Policy Assignment at the management group scope'

Above actions should be applied to the following files:

  • ResourceModules/modules/Microsoft.Authorization/policyAssignments/.test/sub.min/deploy.test.bicep 
  • ResourceModules/modules/Microsoft.Authorization/policyAssignments/.test/rg.min/deploy.test.bicep 
  • ResourceModules/modules/Microsoft.Authorization/policyAssignments/.test/mg.min/deploy.test.bicep 
  • ResourceModules/modules/Microsoft.Authorization/policyAssignments/deploy.bicep 
@eriqua
Copy link
Contributor

eriqua commented Feb 9, 2023

OPT 1: Configure the Rule to be ignored for files (i.e., exclusion)
OPT 2: Make the property mandatory and update the test cases to comply

Team decides for OPT1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[cat] modules category: modules enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants