Skip to content

Commit

Permalink
Update example readme
Browse files Browse the repository at this point in the history
Signed-off-by: Sujay Kandwal <[email protected]>
  • Loading branch information
skandwal-mitre committed Dec 18, 2024
1 parent b6bdfa6 commit 232a01b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions o365-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Control 8.5.3 is an example of MicrosoftTeams module in use. This uses the teams
To run this example profile, enter this is the command:

```sh
time bundle exec inspec exec . --controls=microsoft-365-foundations-1.1.3 microsoft-365-foundations-1.2.1 microsoft-365-foundations-1.3.6 microsoft-365-foundations-7.2.3 microsoft-365-foundations-8.5.3 --input client_id=$CLIENT_ID tenant_id=$TENANT_ID client_secret=$CLIENT_SECRET certificate_path=$CERTIFICATE_PATH certificate_password=$CERTIFICATE_PASSWORD organization=$ORGANIZATION --input-file=inputs.yml
time bundle exec inspec exec . -t pwsh://pwsh-options --controls=microsoft-365-foundations-1.1.3 microsoft-365-foundations-1.2.1 microsoft-365-foundations-1.3.6 microsoft-365-foundations-7.2.3 microsoft-365-foundations-8.5.3
```

This example profile uses two custom resources named pwsh_single_session_graph_exchange and pwsh_single_session_teams_pnp. The names imply which modules in powershell they connect to. The goal of these resources is to establish one session and make the running of our other microsoft profile with more controls much faster.
This example profile uses two a custom resource named pwsh_single_session_executor. Within it, there are two functions named run_script_in_graph_exchange and run_script_in_teams_pnp. The names of these methods imply which modules in powershell they connect to. The goal of these methods is to establish one session for commands that connect to graph/exchange and one session for commands that connect to teams/pnp. The result of this will allow the microsoft profile to run its controls much faster.

0 comments on commit 232a01b

Please sign in to comment.