Skip to content

Commit 1e87e3d

Browse files
authored
Merge pull request #215747 from Venkateshdodda-MSFT/patch-14
(AzureCXP) fixes MicrosoftDocs/azure-docs#100364
2 parents 6624aa4 + 88ff658 commit 1e87e3d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

articles/app-service/includes/tutorial-dotnetcore-sqldb-app/deploy-local-git.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You can deploy your application code from a local Git repository to Azure by con
1212
| Instructions | Screenshot |
1313
|:----------------|-----------:|
1414
| [!INCLUDE [Deploy from Local Git 1](<./deploy-from-local-git-azure-portal-1.md>)] | :::image type="content" source="../../media/tutorial-dotnetcore-sqldb-app/azure-portal-deploy-local-git-01-240px.png" alt-text="A screenshot showing how to navigate to a web app using the search box in Azure portal." lightbox="../../media/tutorial-dotnetcore-sqldb-app/azure-portal-deploy-local-git-01.png"::: |
15-
| [!INCLUDE [Deploy from Local Git 2](<./deploy-from-local-git-azure-portal-2.md>)] | :::image type="content" source="../../media/tutorial-dotnetcore-sqldb-app/azure-portal-deploy-local-git-02-240px.png" alt-text="A screenshot showing te location of the deployment page and how to configure a web app for local Git deployment in the Azure portal." lightbox="../../media/tutorial-dotnetcore-sqldb-app/azure-portal-deploy-local-git-02.png"::: |
15+
| [!INCLUDE [Deploy from Local Git 2](<./deploy-from-local-git-azure-portal-2.md>)] | :::image type="content" source="../../media/tutorial-dotnetcore-sqldb-app/azure-portal-deploy-local-git-02-240px.png" alt-text="A screenshot showing the location of the deployment page and how to configure a web app for local Git deployment in the Azure portal." lightbox="../../media/tutorial-dotnetcore-sqldb-app/azure-portal-deploy-local-git-02.png"::: |
1616
| [!INCLUDE [Deploy from Local Git 3](<./deploy-from-local-git-azure-portal-3.md>)] | :::image type="content" source="../../media/tutorial-dotnetcore-sqldb-app/azure-portal-deploy-local-git-03-240px.png" alt-text="A screenshot of the Azure portal showing the Git URL to push code to for local Git deployments." lightbox="../../media/tutorial-dotnetcore-sqldb-app/azure-portal-deploy-local-git-03.png"::: |
1717

1818
### [Azure CLI](#tab/deploy-instructions-azcli)
@@ -36,17 +36,21 @@ az webapp deployment list-publishing-credentials \
3636

3737
---
3838

39-
Next, let's add an Azure origin to our local Git repo using the App Service Git deployment URL from the step where we created our App Service. Make sure to replace your app name in the url below. You can also get this completed URL from the Azure Portal Local Git/FTPS Credentials tab.
39+
Next, let's add an Azure origin to our local Git repo using the App Service Git deployment URL from the step where we created our App Service. Make sure to replace your app name in the url below. You can also get this completed URL from the Azure portal Local Git/FTPS Credentials tab.
4040

4141
```bash
4242
git remote add azure https://<your-app-name>.scm.azurewebsites.net/<your-app-name>.git
4343
```
44-
44+
Before pushing your code to App Service you need to commit the changes in your local Git that were done in Step#5.
45+
```bash
46+
git add <file-name> or git add .
47+
git commit -m "Updating the modified appsettings.json and Startup.cs files"
48+
```
4549
Finally, push your code using the correct origin and branch name.
4650

4751
```bash
4852
## Master is the default deployment branch for App Service - this will ensure our local main branch works for the deployment
4953
git push azure main:master
5054
```
5155

52-
Enter your password if you are prompted to do so. This command will take a moment to run as it deploys your app code to the Azure App Service.
56+
Enter your password if you are prompted to do so. This command will take a moment to run as it deploys your app code to the Azure App Service.

0 commit comments

Comments
 (0)