-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/maester365/maester
- Loading branch information
Showing
3 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
id: Connect-MtGraph | ||
title: Connect-MtGraph | ||
hide_title: false | ||
hide_table_of_contents: false | ||
custom_edit_url: https://github.com/maester365/maester/blob/main/src/public/Connect-MtGraph.ps1 | ||
--- | ||
|
||
## SYNOPSIS | ||
|
||
Helper method to connect to Microsoft Graph using Connect-MgGraph with the required scopes. | ||
|
||
## SYNTAX | ||
|
||
```powershell | ||
Connect-MtGraph | ||
``` | ||
|
||
## DESCRIPTION | ||
|
||
Use this cmdlet to connect to Microsoft Graph using Connect-MgGraph. | ||
|
||
This cmdlet is a short form for calling | ||
``` | ||
Connect-MgGraph -Scopes (Get-MtGraphScopes) | ||
``` | ||
|
||
## EXAMPLES | ||
|
||
### EXAMPLE 1 | ||
|
||
```powershell | ||
Connect-MtGraph | ||
``` | ||
|
||
## PARAMETERS | ||
|
||
## INPUTS | ||
|
||
## OUTPUTS | ||
|
||
## NOTES | ||
|
||
## RELATED LINKS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
id: Get-MtGraphScopes | ||
title: Get-MtGraphScopes | ||
hide_title: false | ||
hide_table_of_contents: false | ||
custom_edit_url: https://github.com/maester365/maester/blob/main/src/public/Get-MtGraphScopes.ps1 | ||
--- | ||
|
||
## SYNOPSIS | ||
|
||
Returns the list of Graph scopes required to run Maester. | ||
|
||
## SYNTAX | ||
|
||
```powershell | ||
Get-MtGraphScopes | ||
``` | ||
|
||
## DESCRIPTION | ||
|
||
Use this cmdlet to connect to Microsoft Graph using Connect-MgGraph. | ||
|
||
## EXAMPLES | ||
|
||
### EXAMPLE 1 | ||
|
||
```powershell | ||
Connect-MgGraph -Scopes (Get-MtGraphScopes) | ||
``` | ||
|
||
## PARAMETERS | ||
|
||
## INPUTS | ||
|
||
## OUTPUTS | ||
|
||
## NOTES | ||
|
||
## RELATED LINKS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters