- Debug output for granting CSP application
- Automatic refreshing of tokens was not using secure strings
Get-MSPToolboxPartnerList
was not working when connected to a tenant
Grant-CSPApplication
is nowGrant-MSPApplication
Get-MSPToolboxPartnerList
was still using the -AsMSP switch internallyGrant-MSPApplication
was still using the -AsMSP switch internally
Connect-MSPToolbox
was missing some syntax which broke the module import
-ReturnAccessToken
on bothConnect-MSPToolbox
andConnect-MSPPartner
Disconnect-MSPPartner
-AsMSP
switch. When not connected with a partner it defaults to the MSP authentication header inNew-MSPGraphRequest
- Logo in PowerShellGallery
Disconnect-MSPToolbox
, how did I not think about this before..?
Connect-MSPToolbox
no longer accepts plaintext input for the following parameters:
-ApplicationSecret
-RefreshToken
Please add | ConvertTo-SecureString -AsPlainText -Force
at the end of your secrets in your script (for example from AZ Keyvault) and you should be good to go.
- New cmdlet
Grant-CSPApplication
!- This will grant your CSP application across all your managed tenants, if the app is already present in the tenant it will remove the application and grant it again, this is useful when you need to update the permissions since those won't be copied over anymore.
- Optional parameter
-CustomerTenantID
for when you want to run it on just one tenant. - Example can be found in the examples section
- Debugging on all cmdlet's to help troubleshoot + a new internal debug printer
- Error formatting/output is greatly enhanced, if you are still experiencing issues please open an issue
GetMSPToolboxPartnerList
now usesInvoke-MSPGraphRequest
- Reading out permissions with the
-Debug
switch onConnect-MSPToolbox
andConnect-MSPPartner
- Optional parameter
-Scope
was added toConnect-MSPPartner
, by default this ishttps://graph.microsoft.com/.default
-Customer [bool]
is now-AsMSP [switch]
onInvoke-MSPGraphRequest
. Simply add this switch if you want to run a command on the MSP tenant
- Dependencies! Module is now independant, switched
New-PartnerAccessToken
forInvoke-RestMethod
's- With this comes a drastic improvement on speed when connecting to multiple tenants
- Debugging mode in tools and other cmdlets
- Check if tokens are about to expire, if so generate new ones
- Accept
[hashtable]
and[pscustomobject]
onInvoke-MSPGraphRequest
Write-Error
is the default method for handling errors now
- Alias for
Connect-MSPPartner
:Connect-MSPToolboxPartner
This marks the first non-prerelease version of MSPToolbox! I feel like this version is production ready. Must there be any problems you are facing please don't hesitate to make an issue request. Please read the changelog below for previous versions. For this first non-prerelease version the following has been changed/added:
Connect-MSPToolboxPartner
is nowConnect-MSPPartner
- Docs have been updated, use
Get-Help <command>
to get help and/or examples on how to use this module
- Dev environment has been fixed
Content-Type
of requests is nowapplication/json
- Body parameter for
Invoke-MSPGraphRequest
was set to[array]
, this is now accepts a[hashtable]
- Module now exports cmdlet's instead of functions
- PartnerCenter module import
- Unnecesary throws
Invoke-MSPGraphRequest
- Previously called
New-GraphRequest
- Returns 'value' by default if present. No need to add
.value
to extract it - Pagination of data if
@odata.nextLink
is returned $Customer
boolean switch, if you want to do a Graph request on your CSP tenant, default is set to$true
- Default method is now set to
Get
- Previously called
Connect-MSPToolbox
Connect-MSPToolboxPartner
Get-MSPToolboxCurrentConnection
Get-MSPToolboxPartnerList
New-GraphRequest