Skip to content

Commit ad98de7

Browse files
committed
update .NET azd deployment instructions
1 parent 9048f08 commit ad98de7

1 file changed

Lines changed: 38 additions & 6 deletions

File tree

articles/azure-functions/scenario-mcp-apps.md

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ This article supports version 2 of the Python programming model for Azure Functi
4040
::: zone-end
4141
::: zone pivot="programming-language-csharp"
4242
+ [.NET 10 SDK](https://dotnet.microsoft.com/download)
43+
+ [Azure Developer CLI](https://learn.microsoft.com/azure/developer/azure-developer-cli/install-azd) **1.23.x or above**
4344
::: zone-end
4445
<!-- replace when supported
4546
::: zone pivot="programming-language-javascript,programming-language-typescript" -->
@@ -55,8 +56,11 @@ This article supports version 2 of the Python programming model for Azure Functi
5556
+ [Visual Studio Code](https://code.visualstudio.com/) with these extensions:
5657

5758
+ [Azure Functions extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions). This extension requires [Azure Functions Core Tools](functions-run-local.md) and attempts to install it when not available.
59+
::: zone-end
60+
::: zone pivot="programming-language-python,programming-language-typescript"
5861
+ [Azure Developer CLI extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.azure-dev).
59-
62+
::: zone-end
63+
::: zone pivot="programming-language-csharp,programming-language-python,programming-language-typescript"
6064
+ [Azurite storage emulator](../storage/common/storage-install-azurite.md#install-azurite)
6165

6266
+ [Azure CLI](/cli/azure/install-azure-cli). You can also run Azure CLI commands in [Azure Cloud Shell](../cloud-shell/overview.md).
@@ -68,18 +72,21 @@ This article supports version 2 of the Python programming model for Azure Functi
6872
Use the Azure Developer CLI to create an Azure Functions code project from a template.
6973

7074
1. In Visual Studio Code, open a folder or workspace where you want to create your project.
71-
75+
::: zone-end
76+
::: zone pivot="programming-language-python,programming-language-typescript"
7277
1. Press <kbd>F1</kbd> to open the command palette. Search for and run `Azure Developer CLI (azd): init`.
7378

7479
1. When prompted, select **Select a template**.
7580

7681
::: zone-end
7782
::: zone pivot="programming-language-csharp"
78-
4. Search for and select **Remote MCP Functions with .NET**.
83+
2. Open a terminal in Visual Studio Core and run:
7984

80-
5. When prompted, enter `mcpweather-dotnet` as the environment name.
85+
```console
86+
azd init --template remote-mcp-functions-dotnet -e mcpweather-dotnet
87+
```
8188

82-
The command pulls the project files from the [template repository](https://github.com/Azure-Samples/remote-mcp-functions-dotnet) and initializes the project in the current folder. In `azd`, the environment maintains a unique deployment context for your app, and you can define more than one. It's also used in the name of the resource group you create in Azure.
89+
This command pulls the project files from the [template repository](https://github.com/Azure-Samples/remote-mcp-functions-dotnet) and initializes the project in the current folder. The -e flag sets a name for the current environment. In `azd`, the environment maintains a unique deployment context for your app, and you can define more than one. It's also used in names of the resources you create in Azure.
8390
::: zone-end
8491
::: zone pivot="programming-language-typescript"
8592
4. Search for and select **Remote MCP Functions with TypeScript**.
@@ -91,7 +98,7 @@ Use the Azure Developer CLI to create an Azure Functions code project from a tem
9198
::: zone pivot="programming-language-python"
9299
4. Search for and select **Remote MCP Functions with Python**.
93100

94-
1. When prompted, enter `mcpweather-python` as the environment name.
101+
5. When prompted, enter `mcpweather-python` as the environment name.
95102

96103
The command pulls the project files from the [template repository](https://github.com/Azure-Samples/remote-mcp-functions-python) and initializes the project in the current folder. In `azd`, the environment maintains a unique deployment context for your app, and you can define more than one. It's also used in names of the resources you create in Azure.
97104
::: zone-end
@@ -235,8 +242,33 @@ You can view the complete project template in the [Azure Functions TypeScript MC
235242
After verifying the MCP Apps tools locally, you can publish the project to Azure.
236243

237244
## Deploy to Azure
245+
::: zone-end
238246

247+
::: zone pivot="programming-language-csharp,programming-language-python,programming-language-typescript"
239248
[!INCLUDE [deploy-azure](../../includes/functions-mcp-deploy-azure.md)]
249+
::: zone-end
250+
251+
::: zone pivot="programming-language-csharp"
252+
This project is configured to use `azd` to deploy this project to a new function app in a Flex Consumption plan in Azure. The project includes a set of Bicep files that `azd` uses to create a secure deployment to a Flex Consumption plan that follows best practices.
253+
254+
1. Set `DEPLOY_SERVICE` to provision `weather` app related resources:
255+
```console
256+
azd env set DEPLOY_SERVICE weather
257+
```
258+
259+
1. Provision the resources:
260+
```console
261+
azd provision
262+
```
263+
264+
When prompted, pick your subscription, an Azure region for the resources, and choose `false` to skip creating virtual network resources to simplify the deployment.
265+
266+
1. Deploy the `weather` app:
267+
268+
```console
269+
azd deploy --service weather
270+
```
271+
::: zone-end
240272

241273
## Connect to your remote MCP server
242274

0 commit comments

Comments
 (0)