skip to Main Content

Azure – Powershell Function -WhatIf for cmdlet without the -WhatIf support?

For these cmdlets below, I try to create the function with the [CmdletBinding(SupportsShouldProcess)] line, but not sure that it will work. Using: https://learn.microsoft.com/en-us/powershell/module/msonline/set-msoluserlicense?view=azureadps-1.0 How can the script be modified to support the -WhatIf parameter? function Remove-License { [CmdletBinding(SupportsShouldProcess)] param ([String]…

VIEW QUESTION

Azure – How to find user principal name not a member of particular group (which contain "AVD" in its name)

From Azure AD, Are there any ways to find users who does not have a speciifc group assigned ( the name contain %AVD% in it) ? This is what I have tried: https://graph.microsoft.com/beta/users?$expand=memberOf https://graph.microsoft.com/v1.0/users/groups?$search="AVD" https://graph.microsoft.com/v1.0/users?$select=memberOf eq '%AVD%' unable to get…

VIEW QUESTION
Back To Top
Search