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
Copy file name to clipboardExpand all lines: docker/tutorials/tutorial-multi-container-app-mysql.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,11 +89,11 @@ In this example, you create the network and attach the MySQL container at startu
89
89
--network todo-app --network-alias mysql
90
90
-v todo-mysql-data:/var/lib/mysql
91
91
-e MYSQL_ROOT_PASSWORD=<your-password>
92
-
-e MYSQL_DB=todos
92
+
-e MYSQL_DATABASE=todos
93
93
mysql:5.7
94
94
```
95
95
96
-
This command also defines the `MYSQL_ROOT_PASSWORD` and `MYSQL_DB` environment variables. For more information, see [MySQL Docker Hub listing](https://hub.docker.com/_/mysql/).
96
+
This command also defines the `MYSQL_ROOT_PASSWORD` and `MYSQL_DATABASE` environment variables. For more information, see [MySQL Docker Hub listing](https://hub.docker.com/_/mysql/).
97
97
98
98
> [!WARNING]
99
99
> This tutorial illustrates password credentials to authenticate with a MySQL database, which is not the most secure method. Refer to the [MySQL documentation](https://dev.mysql.com/doc/) to learn about more secure methods of authentication.
@@ -146,7 +146,7 @@ The `todo` app supports setting certain environment variables to specify your My
146
146
|`MYSQL_HOST`|`mysql`| The host name for the MySQL server. |
147
147
|`MYSQL_USER`|`root`| The username to use for the connection. |
148
148
|`MYSQL_PASSWORD`|`<your-password>`| The password to use for the connection. In this example, substitute your root password for the `<your-password>` placeholder. |
149
-
|`MYSQL_DB`|`todos`| The name of the database to use after the connection is established. |
149
+
|`MYSQL_DATABASE`|`todos`| The name of the database to use after the connection is established. |
150
150
151
151
> [!WARNING]
152
152
> Using environment variables to set connection settings is acceptable for development, but this practice isn't recommended for running applications in production. For more information, see [Why you shouldn't use environment variables for secret data](https://diogomonica.com/2017/03/27/why-you-shouldnt-use-env-variables-for-secret-data/).
@@ -166,7 +166,7 @@ In the following example, you start your app and connect your app container to y
166
166
-e MYSQL_HOST=mysql
167
167
-e MYSQL_USER=root
168
168
-e MYSQL_PASSWORD=<your-password>
169
-
-e MYSQL_DB=todos
169
+
-e MYSQL_DATABASE=todos
170
170
node:20-alpine
171
171
sh -c "yarn install && yarn run dev"
172
172
```
@@ -255,7 +255,7 @@ In the following example, you configure a Docker Compose file for your multi-con
255
255
-e MYSQL_HOST=mysql
256
256
-e MYSQL_USER=root
257
257
-e MYSQL_PASSWORD=<your-password>
258
-
-e MYSQL_DB=todos
258
+
-e MYSQL_DATABASE=todos
259
259
node:20-alpine
260
260
sh -c "yarn install && yarn run dev"
261
261
```
@@ -320,7 +320,7 @@ In the following example, you configure a Docker Compose file for your multi-con
320
320
MYSQL_HOST: mysql
321
321
MYSQL_USER: root
322
322
MYSQL_PASSWORD: <your-password>
323
-
MYSQL_DB: todos
323
+
MYSQL_DATABASE: todos
324
324
```
325
325
326
326
Remember to enter your MySQL root password for the `<your-password>` placeholder.
@@ -361,7 +361,7 @@ In the following example, you configure a Docker Compose file for your multi-con
361
361
- todo-mysql-data:/var/lib/mysql
362
362
environment:
363
363
MYSQL_ROOT_PASSWORD: <your-password>
364
-
MYSQL_DB: todos
364
+
MYSQL_DATABASE: todos
365
365
```
366
366
367
367
Remember to enter your MySQL root password for the `<your-password>` placeholder.
@@ -394,15 +394,15 @@ In the following example, you configure a Docker Compose file for your multi-con
Copy file name to clipboardExpand all lines: docs/azure/azure-cosmosdb-add-connected-service.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: ghogen
5
5
manager: mijacobs
6
6
ms.subservice: azure-development
7
7
ms.topic: conceptual
8
-
ms.date: 02/15/2024
8
+
ms.date: 03/20/2025
9
9
ms.author: ghogen
10
10
monikerRange: ">= vs-2019"
11
11
---
@@ -118,9 +118,12 @@ The connected service functionality adds all the needed references and connectio
118
118
119
119
1. Enter a connection string name, and choose whether you want the connection string stored in a local secrets file, or in [Azure Key Vault](/azure/key-vault).
The connection string is added as a secret and made available in the app configuration. In ASP.NET Core apps, you can access this connection string by using the `Configuration` property on the `WebApplicationBuilder` object.
122
124
123
-
The connection string is added as a secret and made available in the app configuration. In ASP.NET Core apps, you can access this connection string by using the `Configuration` property on the `WebApplicationBuild` object.
125
+
> [!NOTE]
126
+
> With Visual Studio 2022 version 17.12 and later, this procedure uses [Microsoft Entra managed identity](/entra/identity/managed-identities-azure-resources/overview), a passwordless authentication method, to connect to the database. The warning on this screen means that you need to perform a manual step in the Azure CLI after completing this procedure in Visual Studio. See [Use data plane role-based access control with Azure Cosmos DB for NoSQL](/azure/cosmos-db/nosql/security/how-to-grant-data-plane-role-based-access?tabs=built-in-definition%2Ccsharp&pivots=azure-interface-cli#disable-local-auth).
124
127
125
128
1. The **Summary of changes** screen shows all the modifications that will be made to your project if you complete the process. If the changes look OK, choose **Finish**.
Copy file name to clipboardExpand all lines: docs/containers/docker-compose-properties.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,7 @@ Use double quotes around the values, as in the preceding example, and use the ba
130
130
|com.microsoft.visualstudio.debuggee.noattach.program|The program launched when you use **Start without debugging** (**Ctrl**+**F5**) in an Azure functions project that runs in an [isolated process](/azure/azure-functions/dotnet-isolated-process-guide). Typically both **F5** and **Ctrl**+**F5** uses the same program, but if any project type like Azure Functions in an isolated process requires a different program than **F5**, then this will be used.|
131
131
|com.microsoft.visualstudio.debuggee.noattach.arguments|The arguments passed to the program when you use **Start without debugging** (**Ctrl**+**F5**) in an Azure functions project that runs in an isolated process.|
132
132
|com.microsoft.visual-studio.project-name|The name of the project, which helps Visual Studio find the project if the project is not in the same folder as the Dockerfile.|
133
+
|com.microsoft.visualstudio.launch-url.path-query|The path and query used by the containers window when opening links in the ports tab.<br/><br/>Requires Visual Studio 17.13 or later.|
0 commit comments