Remove -AuthorizationPolicyId which doesn't exist (anymore?) #940
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This parameter doesn't exist. At least in the latest v1.0 version of the Graph PowerShell module. Perhaps it used to exist?
Proof in doc: https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.identity.signins/update-mgpolicyauthorizationpolicy?view=graph-powershell-1.0
And in this error:
Edit: Actually! It exists, but only for the beta version!
https://learn.microsoft.com/en-us/powershell/module/Microsoft.Graph.Beta.Identity.SignIns/Update-MgBetaPolicyAuthorizationPolicy?view=graph-powershell-beta
There are significant differences between the v1.0 and beta versions of this API (returning an object vs. array, authorization policy under
defaultUserRolePermissions.permissionGrantPoliciesAssigned
vs.permissionGrantPolicyIdsAssignedToDefaultUserRole
)Currently all the content in the page refers to the beta version of the API and the commands. My advice is to either adapt it to v1.0, or keep beta but make it very explicit and use instead
Update-MgBetaPolicyAuthorizationPolicy