Skip to content

Conversation

@madsbolaris
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings November 17, 2025 20:45
@madsbolaris madsbolaris requested a review from a team as a code owner November 17, 2025 20:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new Microsoft Copilot Studio (MCS) relay agent sample that demonstrates how to call Copilot Studio Agents from an Agent instance. The sample includes comprehensive setup scripts, configuration files, and a complete C# implementation.

Key changes:

  • PowerShell automation scripts for Agent Blueprint and Agent User creation
  • Complete C# relay agent implementation with authentication and notification handling
  • Extensive documentation covering setup, deployment, and troubleshooting

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 22 comments.

Show a summary per file
File Description
scripts/createAgenticUser.ps1 Script to create Agent Identity and Agent User with configuration support
scripts/createAgentBlueprint.ps1 Script to create Agent Blueprint and configure permissions with MCP scope support
scripts/Add-AgentBlueprintPermissions.ps1 Script to manage inheritable delegated scopes for Agent Blueprints
scripts/DelegatedAgentApplicationCreateConsent.ps1 Script to grant AgentApplication.Create permissions
scripts/README.md Setup documentation for Agent Blueprint creation and configuration
scripts/README_AgentUserCreation.md Documentation for Agent Identity and Agent User creation
README.md Comprehensive setup guide covering the entire deployment process
appsettings.json Configuration template for token validation, authentication, and Copilot Studio connection
AgenticRelay/Program.cs Main entry point configuring the agent application and middleware
AgenticRelay/AgenticRelay.cs Core agent logic handling notifications and relaying to MCS
AgenticRelay/AspNetExtensions.cs Token validation extensions for ABS/SMBA authentication
AgenticRelay/AgenticRelay.csproj Project file with required package dependencies
AgenticRelayExample.sln Solution file for the sample project
.gitignore Git ignore rules for development files


This sample demonstrates how to call Copilot Studio Agents from an Agent instance.

## Run the setup scripts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please have the developer set up the Azure resources via the devtools CLI instead of these individual scripts.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this come in a subsequent PR?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please refer to the other README.md files in the repo to see what they are expected to look like.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use the CLI for this and all other scripts

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack. I can commit to moving to the CLI this evening. Could it come after this initial PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants