C# console application demonstrating use of service service profiles and Power BI embedding together with Fabric workspace items .
The repo includes a .vscode folder so you can debug the console app with the VS Code debugger instead of relying on Visual Studio solution settings.
- Install the .NET 8 SDK and open the repository folder in VS Code.
- Copy the template settings file (kept out of git) so the build can copy it:
copy appsettings.template.json appsettings.json
- Restore and build from the integrated terminal:
dotnet restore dotnet build FabricServicePrincipalProfile.csproj
- Press F5 and select .NET Launch (FabricServicePrincipalProfile). The launch profile runs
dotnet run --project FabricServicePrincipalProfile.csprojfrom the repository root, keeping relative paths intact. - If you need environment variables (for secrets or overrides), create a
.envfile in the repo root. VS Code will load it automatically when you use the launch profile.
The app expects these configuration keys under AppSettings: (use Key Vault secret names that map to these, typically with -- separators, for example AppSettings--FabricCapacityId):
FabricCapacityIdServicePrincipalAuthTenantIdServicePrincipalAuthClientIdServicePrincipalAuthClientSecretServicePrincipalObjectIdServicePrincipalProfileIdAdminUserId