Skip to content

Commit 693f727

Browse files
committed
validation
1 parent 9445fe0 commit 693f727

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

articles/app-service/tutorial-php-mysql-app.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ The creation wizard generated the connectivity variables for you already as [app
143143
1. In the left menu of the App Service page, select **Settings > Environment variables**.
144144
1. Select **AZURE_MYSQL_PASSWORD**.
145145
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.
147147
:::column-end:::
148148
:::column:::
149149
:::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
243243
:::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":::
244244
:::column-end:::
245245
:::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**.
253-
:::column-end:::
254-
:::column:::
255-
:::image type="content" source="./media/tutorial-php-mysql-app/azure-portal-secure-connection-secrets-9.png" alt-text="A screenshot showing the Add/Edit application setting dialog." lightbox="./media/tutorial-php-mysql-app/azure-portal-secure-connection-secrets-9.png":::
256-
:::column-end:::
257-
:::row-end:::
258246

259247
To summarize, the process for securing your connection secrets involved:
260248

@@ -263,9 +251,6 @@ To summarize, the process for securing your connection secrets involved:
263251
- Creating a Key Vault connection with the system-assigned managed identity.
264252
- Updating the service connectors to store the secrets in the key vault.
265253

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-
269254
Having issues? Check the [Troubleshooting section](#troubleshooting).
270255

271256
-----
@@ -300,7 +285,7 @@ Having issues? Check the [Troubleshooting section](#troubleshooting).
300285
> [!IMPORTANT]
301286
> 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.
302287
>
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)
304289
305290

306291
## 5 - Deploy sample code
@@ -810,6 +795,8 @@ It means you haven't run database migrations, or database migrations weren't suc
810795
- [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)
811796
- [How does local app development work with GitHub Actions?](#how-does-local-app-development-work-with-github-actions)
812797
- [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)
813800
814801
::: zone-end
815802
@@ -819,6 +806,8 @@ It means you haven't run database migrations, or database migrations weren't suc
819806
- [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)
820807
- [How does local app development work with GitHub Actions?](#how-does-local-app-development-work-with-github-actions)
821808
- [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)
822811
823812
::: zone-end
824813
@@ -902,6 +891,21 @@ The autogenerated workflow file from App Service defines build-then-deploy, two-
902891
903892
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.
904893
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 for you when you created the codespace. For your convenience, we include the GitHub Copilot chat extension in 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.
908+
905909
<a name="next"></a>
906910
907911
## Next steps

0 commit comments

Comments
 (0)