msgraph-sdk-powershell
msgraph-sdk-powershell copied to clipboard
Powershell SDK for Microsoft Graph
When running the command: ```powershell Get-MgDirectoryDeletedItem -DirectoryObjectId microsoft.graph.user ``` I would expect the output to show me the deleted users in Azure AD. Instead it shows: ``` Id DeletedDateTime --...
The following code (can't get it to show as code for some reason): `Import-Module Microsoft.Graph.PersonalContacts Connect-MgGraph Select-MgProfile –Name "beta" $params = @{ GivenName = "Given" Surname = "Sur" EmailAddresses =...
Trying to add a user to an AAD group, I did the following: `$params = @{` `"@odata.id"= "https://graph.microsoft.com/v1.0/users/47f666c9-xxxx-xxxx-xxxxxxxxxxxx"` `}` `New-MgGroupMemberByRef -GroupId 66fa7ce5-xxxx-xxxx-xxxxxxxxxxxx -BodyParameter $params ` But surprisingly, I get this...
We should consider [embedding PowerShell snippets](https://docs.microsoft.com/en-us/graph/api/application-addkey?view=graph-rest-1.0&tabs=powershell#request) from the API reference docs in the [help files](https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.applications/add-mgapplicationkey?view=graph-powershell-1.0) when no example exists. ### Considerations - The injected examples should not replace existing workload...
This PR closes #1394 by adding ci-build.yml pipeline definition. The pipeline definition will: - Install required tools. - Perform security pre-checks. - Generate, build, test, and pack modules. - Publish...
1. Find a way of linking from the PowerShell reference page back to the API reference page. 1. Human written content in API reference page that describes the purpose of...
Hello, I don't know if it's a bug, but sometime when i try to get the cmdlet from the Graph URL, it give me an error : `URI is not...
Currently updates to [powershell document repository](https://github.com/MicrosoftDocs/microsoftgraph-docs-powershell) are done locally by running a scripts and manually creating a pull request. The scripts are responsible for 1. Copying markdown files from the...
[AB#10963](https://microsoftgraph.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_workitems/edit/10963) Tasks to be completed as part of this item: - [x] https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/1228. - [x] https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/692#issue-916683722. - [x] https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/1069 - [x] https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/1295 - [ ] https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/838. - [ ] #1296...
While troubleshooting a script that uses the Get-mgAuditSignIn with a filter that was resulting in an invalid filter, I noticed that in debug mode even after selecting the beta profile,...