Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/maester365/maester
Browse files Browse the repository at this point in the history
  • Loading branch information
merill committed Mar 16, 2024
2 parents e6490c5 + cc0d0ba commit 1f63678
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
44 changes: 44 additions & 0 deletions docs/docs/commands/Connect-MtGraph.mdx
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
39 changes: 39 additions & 0 deletions docs/docs/commands/Get-MtGraphScopes.mdx
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
2 changes: 2 additions & 0 deletions docs/docs/commands/docusaurus.sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@

module.exports = [
'commands/Clear-MtGraphCache',
'commands/Connect-MtGraph',
'commands/Export-MtHtmlReport',
'commands/Get-MtConditionalAccessPolicies',
'commands/Get-MtGraphScopes',
'commands/Invoke-MtGraphRequest',
'commands/Test-MtAppManagementPolicyEnabled',
'commands/Test-MtCaAllAppsExists',
Expand Down

0 comments on commit 1f63678

Please sign in to comment.