< Back
Invoke-GraphRequest
Post
NAME Invoke-GraphRequest
SYNOPSIS
Invoke a request to the Microsoft Graph API
SYNTAX
Invoke-GraphRequest [[-Token] <Object>] [[-url] <Object>] [[-Method] <Object>] [[-Body] <Object>]
[[-customHeaders] <Object>] [<CommonParameters>]
DESCRIPTION
Invoke a request to the Microsoft Graph API using the Token and setting content type to correct format (JSON)
PARAMETERS
-Token <Object>
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-url <Object>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Method <Object>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Body <Object>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-customHeaders <Object>
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
This is a preview/beta version. Please send any comments to jgs@coretech.dk
Developed by MVP Jakob Gottlieb Svendsen - jakob@runbook.guru - jgs@coretech.dk
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$Token = Get-GraphAuthToken -AADTenant "runbookguru.onmicrosoft.com" -ClientId
"cdec3c46-b1cd-4ce7-859a-b6fac1ceafee" -RedirectUri "http://www.runbook.guru" -Credential (get-credential)
Invoke-GraphRequest -url "https://graph.microsoft.com/beta/subscr ... 6b2fb5ecf1"
-Token $Token -Method DELETE
RELATED LINKS
http://graph.microsoft.io/
SYNOPSIS
Invoke a request to the Microsoft Graph API
SYNTAX
Invoke-GraphRequest [[-Token] <Object>] [[-url] <Object>] [[-Method] <Object>] [[-Body] <Object>]
[[-customHeaders] <Object>] [<CommonParameters>]
DESCRIPTION
Invoke a request to the Microsoft Graph API using the Token and setting content type to correct format (JSON)
PARAMETERS
-Token <Object>
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-url <Object>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Method <Object>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Body <Object>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-customHeaders <Object>
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
This is a preview/beta version. Please send any comments to jgs@coretech.dk
Developed by MVP Jakob Gottlieb Svendsen - jakob@runbook.guru - jgs@coretech.dk
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$Token = Get-GraphAuthToken -AADTenant "runbookguru.onmicrosoft.com" -ClientId
"cdec3c46-b1cd-4ce7-859a-b6fac1ceafee" -RedirectUri "http://www.runbook.guru" -Credential (get-credential)
Invoke-GraphRequest -url "https://graph.microsoft.com/beta/subscr ... 6b2fb5ecf1"
-Token $Token -Method DELETE
RELATED LINKS
http://graph.microsoft.io/