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: articles/app-service/tutorial-php-mysql-app.md
+21-17Lines changed: 21 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,7 @@ The creation wizard generated the connectivity variables for you already as [app
143
143
1. In the left menu of the App Service page, select **Settings > Environment variables**.
144
144
1. Select **AZURE_MYSQL_PASSWORD**.
145
145
1. In **Add/Edit application setting**, in the **Value** field, copy the password string for use later.
146
-
This app settings let you connect to the MySQL database secured behind private endpoints. However, the secrets are saved directly in the App Service app, which isn't the best. You'll change this. In addition, you will add a `APP_KEY` setting, which is required by your Laravel app.
146
+
This app settings let you connect to the MySQL database secured behind private endpoints. However, the secrets are saved directly in the App Service app, which isn't the best. You'll change this.
147
147
:::column-end:::
148
148
:::column:::
149
149
:::image type="content" source="./media/tutorial-php-mysql-app/azure-portal-secure-connection-secrets-1.png" alt-text="A screenshot showing how to see the value of an app setting." lightbox="./media/tutorial-php-mysql-app/azure-portal-secure-connection-secrets-1.png":::
@@ -243,18 +243,6 @@ The creation wizard generated the connectivity variables for you already as [app
243
243
:::image type="content" source="./media/tutorial-php-mysql-app/azure-portal-secure-connection-secrets-8.png" alt-text="A screenshot showing how to see the value of MySQL password in Azure." lightbox="./media/tutorial-php-mysql-app/azure-portal-secure-connection-secrets-8.png":::
244
244
:::column-end:::
245
245
:::row-end:::
246
-
:::row:::
247
-
:::column span="2":::
248
-
**Step 9:** The sample application reads the APP_KEY environment variable to set the [required APP_KEY setting](https://laravel.com/docs/10.x/encryption#configuration). You create it as an app setting in this step.
249
-
1. In the **App settings** tab, select **Add**.
250
-
1. Set **Name** to *APP_KEY*.
251
-
1. Set **Value** to a long random string.
252
-
1. Click **Apply**, then **Apply** again, then **Confirm**.
To summarize, the process for securing your connection secrets involved:
260
248
@@ -263,9 +251,6 @@ To summarize, the process for securing your connection secrets involved:
263
251
- Creating a Key Vault connection with the system-assigned managed identity.
264
252
- Updating the service connectors to store the secrets in the key vault.
265
253
266
-
> [!NOTE]
267
-
> Ideally, the `APP_KEY` app setting should be configured as a key vault reference too, which is a multi-step process. For more information, see [How do I change the APP_KEY app setting to a Key Vault reference?](#how-do-i-change-the-app_key-app-setting-to-a-key-vault-reference)
268
-
269
254
Having issues? Check the [Troubleshooting section](#troubleshooting).
270
255
271
256
-----
@@ -300,7 +285,7 @@ Having issues? Check the [Troubleshooting section](#troubleshooting).
300
285
> [!IMPORTANT]
301
286
> The `APP_KEY` value is used here for convenience. For production scenarios, it should be generated specifically for your deployment using `php artisan key:generate --show` in the command line.
302
287
>
303
-
> Ideally, the `APP_KEY` app setting should be configured as a key vault reference too, which is a multi-step process. For more information, see [How do I change the APP_KEY app setting to a Key Vault reference?](#how-do-i-change-the-app-key-app-setting-to-a-key-vault-reference)
288
+
> Ideally, the `APP_KEY` app setting should be configured as a key vault reference too, which is a multi-step process. For more information, see [How do I change the APP_KEY app setting to a Key Vault reference?](#how-do-i-change-the-app_key-app-setting-to-a-key-vault-reference)
304
289
305
290
306
291
## 5 - Deploy sample code
@@ -810,6 +795,8 @@ It means you haven't run database migrations, or database migrations weren't suc
810
795
- [How do I change the APP_KEY app setting to a Key Vault reference?](#how-do-i-change-the-app_key-app-setting-to-a-key-vault-reference)
811
796
- [How does local app development work with GitHub Actions?](#how-does-local-app-development-work-with-github-actions)
812
797
- [Why is the GitHub Actions deployment so slow?](#why-is-the-github-actions-deployment-so-slow)
798
+
- [I don't have permissions to create a user-assigned identity](#i-dont-have-permissions-to-create-a-user-assigned-identity)
799
+
- [What can I do with GitHub Copilot in my codespace?](#what-can-i-do-with-github-copilot-in-my-codespace)
813
800
814
801
::: zone-end
815
802
@@ -819,6 +806,8 @@ It means you haven't run database migrations, or database migrations weren't suc
819
806
- [How do I connect to the MySQL database that's secured behind the virtual network with other tools?](#how-do-i-connect-to-the-mysql-database-thats-secured-behind-the-virtual-network-with-other-tools)
820
807
- [How does local app development work with GitHub Actions?](#how-does-local-app-development-work-with-github-actions)
821
808
- [Why is the GitHub Actions deployment so slow?](#why-is-the-github-actions-deployment-so-slow)
809
+
- [I don't have permissions to create a user-assigned identity](#i-dont-have-permissions-to-create-a-user-assigned-identity)
810
+
- [What can I do with GitHub Copilot in my codespace?](#what-can-i-do-with-github-copilot-in-my-codespace)
822
811
823
812
::: zone-end
824
813
@@ -902,6 +891,21 @@ The autogenerated workflow file from App Service defines build-then-deploy, two-
902
891
903
892
Most of the time taken by the two-job process is spent uploading and download artifacts. If you want, you can simplify the workflow file by combining the two jobs into one, which eliminates the need for the upload and download steps.
904
893
894
+
#### I don't have permissions to create a user-assigned identity
895
+
896
+
See [Set up GitHub Actions deployment from the Deployment Center](deploy-github-actions.md#set-up-github-actions-deployment-from-the-deployment-center).
897
+
898
+
#### What can I do with GitHub Copilot in my codespace?
899
+
900
+
You might have noticed that the GitHub Copilot chat view was already there foryou when you created the codespace. For your convenience, we include the GitHub Copilot chat extensionin the container definition (see *.devcontainer/devcontainer.json*). However, you need a [GitHub Copilot account](https://docs.github.com/copilot/using-github-copilot/using-github-copilot-code-suggestions-in-your-editor) (30-day free trial available).
901
+
902
+
A few tips for you when you talk to GitHub Copilot:
903
+
904
+
- In a single chat session, the questions and answers build on each other and you can adjust your questions to fine-tune the answer you get.
905
+
- By default, GitHub Copilot doesn't have access to any file in your repository. To ask questions about a file, open the file in the editor first.
906
+
- To let GitHub Copilot have access to all of the files in the repository when preparing its answers, begin your question with `@workspace`. For more information, see [Use the @workspace agent](https://github.blog/2024-03-25-how-to-use-github-copilot-in-your-ide-tips-tricks-and-best-practices/#10-use-the-workspace-agent).
907
+
- In the chat session, GitHub Copilot can suggest changes and (with `@workspace`) even where to make the changes, but it's not allowed to make the changes for you. It's up to you to add the suggested changes and test it.
0 commit comments