Skip to content

Commit

Permalink
Updated README and Azure.Identity package.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad Amer committed Jun 9, 2024
1 parent 48a4b21 commit a4070f1
Show file tree
Hide file tree
Showing 6 changed files with 1,041 additions and 8 deletions.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\moam\\data\\github\\graph-connectors-samples\\samples\\dotnet-csharp-m365-roadmap\\",
"Documents": [],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": []
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Identity" Version="1.10.4" />
<PackageReference Include="Azure.Identity" Version="1.11.3" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.0" />
<PackageReference Include="Microsoft.Graph" Version="5.42.0" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
Expand Down
19 changes: 12 additions & 7 deletions samples/dotnet-csharp-m365-roadmap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

This sample contains a Microsoft Graph connector that shows how to Ingest M365 Roadmap content in Microsoft 365 using Microsoft Graph connectors. For each file, it M365 Roadmap content, maps them to the external connection's schema and ingests the content retaining the content and metadata. The ingested content is set to be visible to everyone in the organization.

![M365 Roadmap Graph Connector](./assets/M365-Roadmap-Graph-Connector.png)
![M365 Roadmap Graph Connector](./assets/M365-Roadmap-Graph-Connector01.png)
![M365 Roadmap Graph Connector](./assets/M365-Roadmap-Graph-Connector02.png)


## Contributors
Expand All @@ -17,29 +18,33 @@ Version|Date|Comments
-------|----|--------
1.0|February 18, 2024|Initial release
1.1|May 12, 2024|Updated README.md, resultsLayout files
1.2|June 09, 2024|Updated README.md, upgraded Azure.Identity package

## Prerequisites

- [Microsoft 365 Developer tenant](https://developer.microsoft.com/microsoft-365/dev-program)
- [.NET 8](https://dotnet.microsoft.com/download/dotnet/8.0)
- Microsoft PowerShell
- Created and Configure Microsoft Entra app registration. Grant it the following API permissions
- ExternalConnection.ReadWrite.OwnedBy
- ExternalItem.ReadWrite.OwnedBy

## Minimal path to awesome

- Clone this repository (or [download this solution as a .ZIP file](https://pnp.github.io/download-partial/?url=https://github.com/pnp/graph-connectors-samples/tree/main/samples/dotnet-csharp-m365-roadmap) then unzip it)
- add the information about the Entra ID app in user secrets
- dotnet user-secrets init
- dotnet user-secrets set "AzureAd:ClientId" client-Id-value
- dotnet user-secrets set "AzureAd:ClientSecret" secret-Text-value
- dotnet user-secrets set "AzureAd:TenantId" Tenant-Id-value
- dotnet user-secrets set "EntraId:ClientId" "[application id]"
- dotnet user-secrets set "EntraId:ClientSecret" "[secret value]"
- dotnet user-secrets set "EntraId:TenantId" "[directory (tenant) id]"
- Build the project: `dotnet build`
- Change the working directory to the path to where the project file is present.
- Create the external connection: `./connector create-connection` (this will take several minutes)
- Ingest the content: `./connector load-content`
- Create the external connection: `dotnet run -- provision-connection` (this will take several minutes)
- Ingest the content: `dotnet run -- load-content`
- [Create result type](https://learn.microsoft.com/microsoftsearch/manage-result-types) with default settings and the external connection you've just created
- Use the `resultLayout.json` file for the Adaptive Card code

-

## Results Layout
- Browse to the admin center then Search & intelligence then update the result layout with the resultLayout json file.

Expand Down

0 comments on commit a4070f1

Please sign in to comment.