-
Notifications
You must be signed in to change notification settings - Fork 254
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
Fixes to remove old assignment and 10 char limit #15
Conversation
- cleanup script - Description and metadata addition to DINE-* policy files - Added known issue about subsequent deployment to different locations - Removing 10 chars limitation for enterpriseScaleCompanyPrefix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you Bruno. Just one comment about the metadata/description.
Also, can you provide some evidence with these changes. For example, screenshot of a successful deployment, successful cleanup, deployment to a management group that has more than 10 characters, etc. Thanks!
@@ -135,7 +135,7 @@ ForEach ($identity in $policyAssignmentIdentities) { | |||
|
|||
ForEach ($roleAssignment in $identityRoleAssignments) { | |||
|
|||
If ($roleAssignment.Description -like '*_deployed_by_amba*') { | |||
If ($roleAssignment.Description -eq '_deployed_by_amba') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see "_deployed_by_amba" was added in the metadata of the role assignment, however here the if statement the evaluations is done on ".Description" can you validate whether that is correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as the script line goes, I made the change to look for exact value (case insensitive). Wildcard in this case can lead to something different added by the customer ... very unlikely but possible.
Here they are the screenshots:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Overview/Summary
Replace this with a brief description of what this Pull Request fixes, changes, etc.
This PR fixes/adds/changes/removes
Breaking Changes
As part of this Pull Request I have
main
branch