autographps-sdk

0.11.1

PowerShell SDK for automating the Microsoft Graph

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name autographps-sdk -RequiredVersion 0.11.1

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name autographps-sdk -Version 0.11.1

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2019 Adam Edwards.

Package Details

Author(s)

  • Adam Edwards

Tags

MSGraph Graph AADGraph Azure MicrosoftGraph Microsoft-Graph MS-Graph AAD-Graph REST CRUD GraphAPI poshgraph poshgraph-sdk autograph Windows Linux MacOS

Functions

Connect-Graph Disconnect-Graph Find-GraphLocalCertificate Get-GraphApplication Get-GraphApplicationCertificate Get-GraphApplicationConsent Get-GraphApplicationServicePrincipal Get-GraphConnectionInfo Get-GraphError Get-GraphItem Get-GraphToken Invoke-GraphRequest New-GraphApplication New-GraphApplicationCertificate New-GraphConnection New-GraphLocalCertificate Register-GraphApplication Remove-GraphApplication Remove-GraphApplicationCertificate Remove-GraphApplicationConsent Remove-GraphItem Set-GraphApplicationConsent Set-GraphConnectionStatus Test-Graph Unregister-GraphApplication

PSEditions

Core Desktop

Dependencies

Release Notes

# AutoGraphPS-SDK 0.11.1 Release Notes

This release addresses breaking changes caused by major changes in all 3 dependencies: ScriptClass,
ADAL, and MSAL. Additionally, improvements in app management commands, new app consent features, and
general command consistency cleanup is included in the release.

## New dependencies

* ScriptClass 0.20.1
* ADAL 5.2
* MSAL 4.4

## Breaking changes

* The `Connect-Graph`, `New-GraphConnection`, and `Get-GraphToken` commands now have the same parameter names where
 the parameters represent the same thing.
* Some command parameter names have been changed for clarity
* The `GrantedPermissions` parameter has been replaced with two new parameters in several commands that
 could take both app-only permissions and delegated permissions: `ApplicationPermisisons`
 and `DelegatedUserPermissions`
* The `Permissions` parameter in several commands auto-completed to both app-only and delegated
 permissions, but since only delegated permissions can be specified at runtime for these
 commands, auto-complete now only completes delegated permissions
* The `NoninteractiveAppOnlyAuth` parameter of several commands is no longer necessary -- the presence of
 `Confidential` and `ApplicationPermissions` parameters indicates the state this parameter represented
* The `ConsentForTenant` flag had an ambiguous meaning and was replaced by `ConsentAllUsers` for
 application management and consent-related commands

## New features

* App-only consent: The code defect in the MS Graph REST API blocking app-only consent was addressed,
 so now `New-GraphApplication`, `Set-GraphApplicationConsent`, `Get-GraphApplicationConsent`,
 and `Remove-GraphApplicationConsent` have been updated to support it
* In particular `New-GraphApplication` automatically consents confidential app-only apps because the
 Graph API for doing so is now fixed. Therefore the command o longer displays a warning when creating
 instructing the user to manually consent the app.
* `Connect-Graph` now returns `GraphConnectionInfo` object
* `Connect-Graph`, `New-GraphConnection`, and `Get-GraphToken` now support the new `GraphResourceUri`
 parameter which allows the caller to use a resource URI that is not the same as the actual
 graph endpoint used for REST. This is useful for test scenarios, such as those where a proxy
 is used to get to Graph -- the resource URI for token acquisition can be set to `https://graph.microsoft.com/`
 using the `GraphResourceUri` parameter, and the endpoint can be the proxy in front of Graph.

## Fixed defects

* Used `ErrorAction Ignore` instead of `SilentlyContinue` in numerous places throughout the code
 to avoid error stream pollution
* General error stream pollution cleanup

FileList

Version History

Version Downloads Last updated
0.30.0 228 2/19/2023
0.29.0 723 12/30/2021
0.28.0 555 10/12/2021
0.27.0 551 6/13/2021
0.26.1 465 5/5/2021
0.26.0 434 5/4/2021
0.25.0 454 2/27/2021
0.24.0 586 9/26/2020
0.23.0 390 9/26/2020
0.22.0 436 9/8/2020
0.21.1 591 6/20/2020
0.21.0 480 5/24/2020
0.20.0 788 4/19/2020
0.19.0 620 4/12/2020
0.18.0 1,161 2/8/2020
0.17.0 621 1/29/2020
0.16.0 715 11/6/2019
0.15.0 449 10/24/2019
0.14.0 413 10/23/2019
0.13.0 422 10/16/2019
0.12.0 417 10/7/2019
0.11.1 (current version) 485 9/23/2019
0.11.0 397 9/20/2019
0.10.0 592 3/18/2019
0.9.0 628 2/3/2019
0.8.1 413 1/19/2019
0.8.0 411 1/13/2019
0.7.1 419 1/8/2019
0.7.0 403 1/8/2019
0.6.2 409 1/6/2019
0.6.1 406 1/5/2019
0.6.0 409 1/2/2019
0.5.1 454 10/30/2018
0.5.0 454 9/30/2018
0.4.0 428 9/15/2018
Show less