Add Agent365ToolsServicePrincipalProdPublic script#10
Merged
mrunalhirve128 merged 3 commits intomainfrom Nov 14, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new PowerShell script to create the Agent 365 Tools Service Principal in an Azure tenant. This is a one-time administrative operation that enables regular users to create their own app registrations without requiring admin rights.
Key Changes:
- New administrative script for Service Principal creation with comprehensive error handling
- Automatic Microsoft.Graph module installation and validation
- User-friendly output with color-coded status messages and detailed instructions
scripts/cli/Auth/New-Agent365ToolsServicePrincipalProdPublic.ps1
Outdated
Show resolved
Hide resolved
scripts/cli/Auth/New-Agent365ToolsServicePrincipalProdPublic.ps1
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
gattimassimo
approved these changes
Nov 14, 2025
rahuldevikar761
approved these changes
Nov 14, 2025
sellakumaran
pushed a commit
that referenced
this pull request
Feb 27, 2026
* Git push script * Update scripts/cli/Auth/New-Agent365ToolsServicePrincipalProdPublic.ps1 Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update scripts/cli/Auth/New-Agent365ToolsServicePrincipalProdPublic.ps1 Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DESCRIPTION
This script creates the Service Principal for Agent 365 Tools in your Azure AD tenant. This is a ONE-TIME operation per tenant that requires admin permissions.
After the Service Principal is created, regular users can create their own app registrations without needing admin rights.
This script needs to be accessible
& needs to be referenced before developing an agent in a tenant in Learn doc
Source: https://github.com/bap-microsoft/MCP-Platform/pull/530/files