msgraph-sdk-powershell | Powershell SDK for Microsoft Graph | Command Line Interface library
kandi X-RAY | msgraph-sdk-powershell Summary
kandi X-RAY | msgraph-sdk-powershell Summary
Powershell SDK for Microsoft Graph
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of msgraph-sdk-powershell
msgraph-sdk-powershell Key Features
msgraph-sdk-powershell Examples and Code Snippets
Community Discussions
Trending Discussions on msgraph-sdk-powershell
QUESTION
I`m exploring msgraph-sdk-powershell module to execute some automations against Azure AD. I have trouble creating hash table for Update-MgAdministrativeUnit cmdlet. I want to update the members of a Administrative Unit (add and remove members) but the help dose not provide adequate information how to define the hash table:
...ANSWER
Answered 2020-Oct-01 at 19:22Adding or removing members is currently not supported.
QUESTION
I am using https://github.com/microsoftgraph/msgraph-sdk-powershell, as I need Powershell 7 support for my script, the AzureAD module has a ton of issues in anything but Powershell 5 on Windows I am finding. Basically, I am trying to create an app registration in a B2C tenant. The problem I was having, was my script seemed fine but I wasn't able to grant any admin consent to any of the scopes defined. Then I noticed the issue - when you create an app registration in the portal it automatically gets a service principal, which New-MgApplication
does not do.
I have the below script which works, up until I try and assign the service principal to my app using New-MgServicePrincipalAppRoleAssignment
, where it breaks down with the error: New-MgServicePrincipalAppRoleAssignment_CreateExpanded: Not a valid reference update.
I am unsure if this is the function appropriate for my need or whether New-MgRoleManagementDirectoryRoleAssignment
is the correct function.
ANSWER
Answered 2020-Apr-05 at 21:30Turns out I did not need to assign a role to my service principal for it work and everything to show up correctly. It was a combination of Azure's UI being laggy and also key was adding the Tag in the service principal, which when I posted this I had not yet tested.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install msgraph-sdk-powershell
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page