autographps-sdk
0.26.0
PowerShell SDK for Microsoft Graph automation
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2021 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
Clear-GraphLog Connect-GraphApi Disconnect-GraphApi Find-GraphLocalCertificate Format-GraphLog Get-GraphApplication Get-GraphApplicationCertificate Get-GraphApplicationConsent Get-GraphApplicationServicePrincipal Get-GraphConnection Get-GraphConnectionInfo Get-GraphError Get-GraphResource Get-GraphLog Get-GraphLogOption Get-GraphProfileSettings Get-GraphToken Invoke-GraphApiRequest New-GraphApplication New-GraphApplicationCertificate New-GraphConnection New-GraphLocalCertificate Register-GraphApplication Remove-GraphApplication Remove-GraphApplicationCertificate Remove-GraphApplicationConsent Remove-GraphConnection Remove-GraphResource Select-GraphProfileSettings Set-GraphApplicationConsent Set-GraphConnectionStatus Set-GraphLogOption Test-Graph Unregister-GraphApplication
PSEditions
Dependencies
-
- scriptclass (>= 0.20.2)
Release Notes
## AutoGraphPS-SDK 0.26.0 Release Notes
This release adds numerous usability improvements including certificate authentication improvements, profile-based configuration, and color output along with several breaking changes.
### New dependencies
None.
### Breaking changes
* The `Connect-GraphApi` positional parameter 0 is now the new `Name` parameter, not `Permissions`. To specify permissions, this must now requires explicit specification of the `Permissions` parameter.
* The `Invoke-GraphRequest` and `Get-GraphRequest` commands were usually paging through all results by default rather than returning some default minimum -- this has been fixed
* Some fields of `Get-GraphLog` such as `HasRequestBody` have been removed
* The output of `Get-GraphApplicationConsent` now returns `Delegated` instead of `DelegatedUser` for the `PermissionType` field
* The `AADAccountsOnly` parameter for `New-GraphApplication` has been renamed to `AllowMSAAccounts` and its semantics have been reversed to match the rename. So now by default, public client apps do not allow MSA accounts, where before they would (at least if the app was multi-tenant).
### New features
* Configuration: the module now supports "Profile settings". It reads the file `~/.autographps/settings.json` on module load if it exists and sets behaviors including the initial connection according to the settings expressed in the configuration file
* The following commands related to the proflie settings feature have been added:
* `Get-GraphProfileSettings`
* `Select-GraphProfileSettings`
* `Get-GraphConnection`: enumerates 'named' connections created by `New-GraphConnection` or profile settings
* `Remove-GraphConnection`: remove named connections
* `New-GraphConnection` supports a new `Name` parameter to assign an optional name the connection. Such connections may be enumerated by the `Get-GraphConnection` command
* `Connect-GraphApi` accepts the `Name` parameter to allow connecting using settings from a named connection
* `Connect-GraphApi` now supports the `NoProfile` parameter to ignore any default connections specified in the profile
* `New-GraphApplication` now supports specifying a password for certificates that are created in the file system
* `Connect-GraphApi` supports file-system based certificates! This is required for non-Windows operating systems like Linux or MacOS that do not support the `cert:` drive
* The existing `CertificatePath` parameter now supports file system paths in addition to Windows certificate store paths. A path to a .pfx file may be specified on any operating system
* The `CertCredential` parameter allows specification of the certificate password -- it is mandatory when specifying a file-system based certificate using the `CertificatePath` parameter
* The `NoCertCredential` parameter allows the password to be skipped when the `CertificatePath` parameter is specified -- this is useful when the file-system based certificate has no password.
* Support for eventual consistency, which allows for a range of rich, complex queries in exchange for those queries missing results from more recent updates to the Graph:
* `Connect-GraphApi` and `New-GraphConnection` expose a new `ConsistencyLevel` parameter that allows specification of consistency levels including `Eventual`
* The `Get-GraphResource` and `Invoke-GraphApi` also expose the `ConsistencyLevel` parameter to override the setting in the connection
* The `ConsistencyLevel` option is also configurable via the new profile settings feature as part of the connection settings
* `Get-GraphLog` output is now supported by views that can be used with `Format-Table` and `Format-List`:
* `Format-Table`: `GraphStatus`, `GraphDebug`, `GraphTiming`, `GraphAuthentication`
* `Format-List`" `GraphDetails`
* `Get-GraphLog` output now supports COLOR! This is supported in the default view of the output as well as the other views added by `Format-Table` and `Format-List`
* Request and response size are now part of `Get-GraphLog` output -- this is true for the default `Basic` log level
* The `Get-GraphApplicationConsent` supports the `PermissionType` parameter to optionally limit the consents to just `Delegated` or just `AppOnly` consent rather than both.
* The `Invoke-GraphRequest` and `Get-GraphResource` commands now support the `All` parameter to return all results. Without this parameter, `Invoke-GraphRequest` only returns either 100 results or the number of results contained in one REST response for the particular request URI, whichever is larger.
* The `Invoke-GraphRequest` and `Get-GraphResource` commands now support the `Count` parameter to return just the count of results that would be returned and note the results themselves. This is only supported if the request URI is backed by an API that supports this capability.
* Introduced the aliases `gcon` for `Get-GraphConnectionInfo` and `conga` for `Connect-GraphApi`
### Fixed defects
* The `CertificatePath` parameter of `New-GraphConnection` and `Connect-GraphApi` was broken -- specifying it caused an error. This has been fixed and the path to a certificate in the certificate store may now be specified.
* The `Get-GraphApplicationConsent` and other commands related to consent could fail when encountering permission id's for which no known permission name mapping could be located, possibly due to using the default snapshot of mappings rather than the most recent mappings found by reading the MS Graph service principal which requires additional access.
* The `Get-GraphApplicationConsent` and `Get-GraphApplication` commands would attempt to retrieve all consents for the given application in a tenant, but this could require a very large number of requests in a tenant with large numbers of users (e.g. 10^6) for instance. They now support the `All` parameter to retrieve all consents, but by default only returns 100-200. They also support paging with `First` and `Skip` parameters
* The `OutputFilePrefix` parameter of `Invoke-GraphApiRequest` and `Get-GraphRequest` was ignored resulting in file output with only a file extension -- this was fixed to actually use the base name.
FileList
- autographps-sdk.nuspec
- autographps-sdk.psd1
- autographps-sdk.psm1
- lib\Microsoft.Identity.Client.4.27.0\lib\net45\Microsoft.Identity.Client.dll
- lib\Microsoft.Identity.Client.4.27.0\lib\netstandard1.3\Microsoft.Identity.Client.dll
- lib\Microsoft.IdentityModel.Clients.ActiveDirectory.5.2.7\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll
- lib\Microsoft.IdentityModel.Clients.ActiveDirectory.5.2.7\lib\netstandard1.3\Microsoft.IdentityModel.Clients.ActiveDirectory.dll
- src\aliases.ps1
- src\cmdlets.ps1
- src\formats.ps1
- src\graph-sdk.ps1
- src\auth\AuthProvider.ps1
- src\auth\CompiledDeviceCodeAuthenticator.ps1
- src\auth\DeviceCodeAuthenticator.ps1
- src\auth\V1AuthProvider.ps1
- src\auth\V2AuthProvider.ps1
- src\client\Application.ps1
- src\client\GraphApplication.ps1
- src\client\GraphConnection.ps1
- src\client\GraphContext.ps1
- src\client\GraphIdentity.ps1
- src\client\LocalConnectionProfile.ps1
- src\client\LocalProfile.ps1
- src\client\LocalProfileSpec.ps1
- src\client\LocalSettings.ps1
- src\client\LogicalGraphManager.ps1
- src\cmdlets\Clear-GraphLog.ps1
- src\cmdlets\Connect-GraphApi.ps1
- src\cmdlets\Disconnect-GraphApi.ps1
- src\cmdlets\Find-GraphLocalCertificate.ps1
- src\cmdlets\Format-GraphLog.ps1
- src\cmdlets\Get-GraphApplication.ps1
- src\cmdlets\Get-GraphApplicationCertificate.ps1
- src\cmdlets\Get-GraphApplicationConsent.ps1
- src\cmdlets\Get-GraphApplicationServicePrincipal.ps1
- src\cmdlets\Get-GraphConnection.ps1
- src\cmdlets\Get-GraphConnectionInfo.ps1
- src\cmdlets\Get-GraphError.ps1
- src\cmdlets\Get-GraphLog.ps1
- src\cmdlets\Get-GraphLogOption.ps1
- src\cmdlets\Get-GraphProfileSettings.ps1
- src\cmdlets\Get-GraphResource.ps1
- src\cmdlets\Get-GraphToken.ps1
- src\cmdlets\Invoke-GraphApiRequest.ps1
- src\cmdlets\New-GraphApplication.ps1
- src\cmdlets\New-GraphApplicationCertificate.ps1
- src\cmdlets\New-GraphConnection.ps1
- src\cmdlets\New-GraphLocalCertificate.ps1
- src\cmdlets\Register-GraphApplication.ps1
- src\cmdlets\Remove-GraphApplication.ps1
- src\cmdlets\Remove-GraphApplicationCertificate.ps1
- src\cmdlets\Remove-GraphApplicationConsent.ps1
- src\cmdlets\Remove-GraphConnection.ps1
- src\cmdlets\Remove-GraphResource.ps1
- src\cmdlets\Select-GraphProfileSettings.ps1
- src\cmdlets\Set-GraphApplicationConsent.ps1
- src\cmdlets\Set-GraphConnectionStatus.ps1
- src\cmdlets\Set-GraphLogOption.ps1
- src\cmdlets\Test-Graph.ps1
- src\cmdlets\Unregister-GraphApplication.ps1
- src\cmdlets\common\ApplicationHelper.ps1
- src\cmdlets\common\CommandContext.ps1
- src\cmdlets\common\ConsentHelper.ps1
- src\cmdlets\common\DisplayTypeFormatter.ps1
- src\cmdlets\common\DynamicParamHelper.ps1
- src\cmdlets\common\Formats.ps1xml
- src\cmdlets\common\GraphOutputFile.ps1
- src\cmdlets\common\ItemResultHelper.ps1
- src\cmdlets\common\ParameterCompleter.ps1
- src\cmdlets\common\PermissionParameterCompleter.ps1
- src\cmdlets\common\QueryHelper.ps1
- src\common\ColorScheme.ps1
- src\common\ColorString.ps1
- src\common\DefaultScopeData.ps1
- src\common\GraphAccessDeniedException.ps1
- src\common\GraphApplicationCertificate.ps1
- src\common\GraphFormatter.ps1
- src\common\GraphUtilities.ps1
- src\common\PreferenceHelper.ps1
- src\common\ProgressWriter.ps1
- src\common\ResponseContext.ps1
- src\common\ScopeHelper.ps1
- src\common\Secret.ps1
- src\graphservice\ApplicationAPI.ps1
- src\graphservice\ApplicationObject.ps1
- src\graphservice\GraphEndpoint.ps1
- src\REST\GraphErrorRecorder.ps1
- src\REST\GraphRequest.ps1
- src\REST\GraphResponse.ps1
- src\REST\HttpUtilities.ps1
- src\REST\RequestLog.ps1
- src\REST\RequestLogEntry.ps1
- src\REST\RESTRequest.ps1
- src\REST\RESTResponse.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
0.32.0 | 236 | 11/9/2024 |
0.31.0 | 378 | 9/2/2024 |
0.30.0 | 368 | 2/19/2023 |
0.29.0 | 727 | 12/30/2021 |
0.28.0 | 559 | 10/12/2021 |
0.27.0 | 555 | 6/13/2021 |
0.26.1 | 469 | 5/5/2021 |
0.26.0 (current version) | 438 | 5/4/2021 |
0.25.0 | 458 | 2/27/2021 |
0.24.0 | 590 | 9/26/2020 |
0.23.0 | 394 | 9/26/2020 |
0.22.0 | 440 | 9/8/2020 |
0.21.1 | 595 | 6/20/2020 |
0.21.0 | 484 | 5/24/2020 |
0.20.0 | 792 | 4/19/2020 |
0.19.0 | 624 | 4/12/2020 |
0.18.0 | 1,165 | 2/8/2020 |
0.17.0 | 625 | 1/29/2020 |
0.16.0 | 719 | 11/6/2019 |
0.15.0 | 453 | 10/24/2019 |
0.14.0 | 417 | 10/23/2019 |
0.13.0 | 426 | 10/16/2019 |
0.12.0 | 421 | 10/7/2019 |
0.11.1 | 489 | 9/23/2019 |
0.11.0 | 401 | 9/20/2019 |
0.10.0 | 596 | 3/18/2019 |
0.9.0 | 632 | 2/3/2019 |
0.8.1 | 417 | 1/19/2019 |
0.8.0 | 415 | 1/13/2019 |
0.7.1 | 423 | 1/8/2019 |
0.7.0 | 407 | 1/8/2019 |
0.6.2 | 413 | 1/6/2019 |
0.6.1 | 410 | 1/5/2019 |
0.6.0 | 413 | 1/2/2019 |
0.5.1 | 458 | 10/30/2018 |
0.5.0 | 458 | 9/30/2018 |
0.4.0 | 432 | 9/15/2018 |