Skip to content

Commit abc116f

Browse files
authored
Merge pull request #41066 from github/repo-sync
Repo sync
2 parents 1a452b7 + ab4fd32 commit abc116f

File tree

1 file changed

+3
-32
lines changed

1 file changed

+3
-32
lines changed

content/copilot/how-tos/use-copilot-agents/coding-agent/extend-coding-agent-with-mcp.md

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -156,40 +156,11 @@ The [Notion MCP server](https://github.com/makenotion/notion-mcp-server) gives {
156156

157157
### Example: Azure
158158

159-
The [Azure MCP server](https://github.com/Azure/azure-mcp) creates a seamless connection between {% data variables.product.prodname_copilot_short %} and key Azure services such as Azure Cosmos DB and the Azure Storage platform.
159+
The [Azure MCP Server](https://github.com/Azure/azure-mcp) allows {% data variables.product.prodname_copilot_short %} to understand your Azure-specific files and Azure resources within your subscription when making code changes.
160160

161-
To use the Azure MCP with {% data variables.copilot.copilot_coding_agent %}, you must update the repository's `copilot-setup-steps.yml` file to include an Azure login workflow step.
161+
To automatically configure your repository with a `copilot-setup-steps.yml` file to authenticate with Azure, plus secrets for authentication, clone the repository locally then run the [Azure Developer CLI](https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/?ref_product=copilot&ref_type=engagement&ref_style=button)'s `azd coding-agent config` command in the root of the repository.
162162

163-
1. Configure OIDC in a Microsoft Entra application, trusting {% data variables.product.github %}. See [Use the Azure Login action with OpenID Connect](https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure-openid-connect).
164-
1. Add a `.github/workflows/copilot-setup-steps.yml` Actions workflow file in your repository if you do not already have one.
165-
1. Add an Azure login step to the `copilot-setup-steps` workflow job.
166-
167-
```yaml copy
168-
on:
169-
workflow_dispatch:
170-
permissions:
171-
id-token: write
172-
contents: read
173-
jobs:
174-
copilot-setup-steps:
175-
runs-on: ubuntu-latest
176-
permissions:
177-
id-token: write
178-
contents: read
179-
environment: copilot
180-
steps:
181-
- name: Azure login
182-
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5
183-
with:
184-
client-id: {% raw %}${{ secrets.AZURE_CLIENT_ID }}{% endraw %}
185-
tenant-id: {% raw %}${{ secrets.AZURE_TENANT_ID }}{% endraw %}
186-
subscription-id: {% raw %}${{ secrets.AZURE_SUBSCRIPTION_ID }}{% endraw %}
187-
```
188-
189-
This configuration ensures the `azure/login` action is executed when {% data variables.copilot.copilot_coding_agent %} runs.
190-
191-
1. In your repository’s {% data variables.product.prodname_copilot_short %} environment, add secrets for your `AZURE_CLIENT_ID`, `AZURE_TENANT_ID` and `AZURE_SUBSCRIPTION_ID`.
192-
1. Configure the Azure MCP server by adding an `azure` object to your MCP configuration.
163+
Once you've run the command and merged the created pull request, you can add the MCP configuration to your repository.
193164

194165
```json copy
195166
{

0 commit comments

Comments
 (0)