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

[BUG] DeployPermissions.ps1 #445

Open
briandelmsft opened this issue May 14, 2024 · 3 comments
Open

[BUG] DeployPermissions.ps1 #445

briandelmsft opened this issue May 14, 2024 · 3 comments
Assignees
Labels
bug Something isn't working enhancement Enhancement to existing module Permissions script GrantPermissions.ps1 and its legacy version

Comments

@briandelmsft
Copy link
Owner

There may be an issue with the newest versions of the PowerShell modules no longer working with the builtin PowerShell, now seem to only work with 7.

image
@briandelmsft briandelmsft added the pending-triage Submitted issue needing triage label May 14, 2024
@briandelmsft briandelmsft added bug Something isn't working Permissions script GrantPermissions.ps1 and its legacy version and removed pending-triage Submitted issue needing triage labels May 14, 2024
@piaudonn
Copy link
Collaborator

piaudonn commented May 15, 2024

I had a similar issue recently, and the customer had to update PowerShell to fix the problem.
I am not sure how we can address it in the script else than removing the dependency to the modules or requiring a version of PowerShell.
I was working on having a Graph API documented way to add permissions. Maybe a Postman package, or a raw level PowerShell workaround if we can't update PowerShell.
For SP, we can add a manual way to do it in the GUI. But for not for MI.

@briandelmsft
Copy link
Owner Author

@piaudonn what do you think about refining this to run from cloud shell? Maybe the run a command in cloud shell to download and execute the script and it prompts for the tenantid, RG, etc. then we document cloud shell as being the preferred way, though it should still work locally. At least this way we have a consistent platform to run it from.

@piaudonn
Copy link
Collaborator

@piaudonn piaudonn added the enhancement Enhancement to existing module label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement Enhancement to existing module Permissions script GrantPermissions.ps1 and its legacy version
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants