You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+[Azure Developer CLI](https://learn.microsoft.com/azure/developer/azure-developer-cli/install-azd)**1.23.x or above**
43
44
::: zone-end
44
45
<!-- replace when supported
45
46
::: 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
55
56
+[Visual Studio Code](https://code.visualstudio.com/) with these extensions:
56
57
57
58
+[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"
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.
83
90
::: zone-end
84
91
::: zone pivot="programming-language-typescript"
85
92
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
91
98
::: zone pivot="programming-language-python"
92
99
4. Search for and select **Remote MCP Functions with Python**.
93
100
94
-
1. When prompted, enter `mcpweather-python` as the environment name.
101
+
5. When prompted, enter `mcpweather-python` as the environment name.
95
102
96
103
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.
97
104
::: zone-end
@@ -235,8 +242,33 @@ You can view the complete project template in the [Azure Functions TypeScript MC
235
242
After verifying the MCP Apps tools locally, you can publish the project to Azure.
236
243
237
244
## Deploy to Azure
245
+
::: zone-end
238
246
247
+
::: zone pivot="programming-language-csharp,programming-language-python,programming-language-typescript"
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.
0 commit comments