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/includes/deploy-intelligent-apps/deploy-intelligent-apps-linux-python-pivot.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,11 @@ You can use Azure App Service to work with popular AI frameworks like LangChain
13
13
#### Prerequisites
14
14
15
15
- An [Azure OpenAI resource](/azure/ai-services/openai/quickstart?pivots=programming-language-csharp&tabs=command-line%2Cpython#set-up) or an [OpenAI account](https://platform.openai.com/overview).
16
-
- A Flask web application. Create the sample app using our [quickstart](../../quickstart-python.md?tabs=flask%2Cwindows%2Cazure-cli%2Cvscode-deploy%2Cdeploy-instructions-azportal%2Cterminal-bash%2Cdeploy-instructions-zip-azcli#1---sample-application).
16
+
- A Flask web application. Create the sample app using our [quickstart](../../quickstart-python.md?tabs=flask%2Cwindows%2Cazure-cli%2Cvscode-deploy%2Cdeploy-instructions-azportal%2Cterminal-bash%2Cdeploy-instructions-zip-azcli#sample-application).
17
17
18
18
### Setup flask web app
19
19
20
-
For this Flask web application, we are building off the [quickstart](../../quickstart-python.md?tabs=flask%2Cwindows%2Cazure-cli%2Cvscode-deploy%2Cdeploy-instructions-azportal%2Cterminal-bash%2Cdeploy-instructions-zip-azcli#1---sample-application) app and updating the *app.py* file to send and receive requests to an Azure OpenAI OR OpenAI service using LangChain.
20
+
For this Flask web application, we are building off the [quickstart](../../quickstart-python.md?tabs=flask%2Cwindows%2Cazure-cli%2Cvscode-deploy%2Cdeploy-instructions-azportal%2Cterminal-bash%2Cdeploy-instructions-zip-azcli#sample-application) app and updating the *app.py* file to send and receive requests to an Azure OpenAI OR OpenAI service using LangChain.
21
21
22
22
First, copy, and replace the *index.html* file with the following code:
23
23
@@ -282,7 +282,7 @@ client = AzureOpenAI(
282
282
)
283
283
```
284
284
285
-
Once the credentials are added to the application, you�ll then need to enable managed identity in your application and grant access to the resource.
285
+
Once the credentials are added to the application, you'll then need to enable managed identity in your application and grant access to the resource.
286
286
287
287
1. In your web app resource, navigate to the **Identity** blade and turn on **System assigned** and click **Save**
288
288
2. Once System assigned identity is turned on, it registers the web app with Microsoft Entra ID and the web app can be granted permissions to access protected resources.
Copy file name to clipboardExpand all lines: articles/app-service/includes/quickstart-python/create-app-cli.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Azure CLI commands can be run on a computer with the [Azure CLI installed](/cli/
8
8
9
9
Azure CLI has a command `az webapp up` that will create the necessary resources and deploy your application in a single step.
10
10
11
-
If necessary, login to Azure using [az login](/cli/azure/authenticate-azure-cli).
11
+
If necessary, log in to Azure using [az login](/cli/azure/authenticate-azure-cli).
12
12
13
13
```azurecli
14
14
az login
@@ -24,7 +24,7 @@ az webapp up --runtime PYTHON:3.9 --sku B1 --logs
24
24
* The `--sku` parameter defines the size (CPU, memory) and cost of the app service plan. This example uses the B1 (Basic) service plan, which will incur a small cost in your Azure subscription. For a full list of App Service plans, view the [App Service pricing](https://azure.microsoft.com/pricing/details/app-service/linux/) page.
25
25
* The `--logs` flag configures default logging required to enable viewing the log stream immediately after launching the webapp.
26
26
* You can optionally specify a name with the argument `--name <app-name>`. If you don't provide one, then a name will be automatically generated.
27
-
* You can optionally include the argument `--location <location-name>` where `<location_name>` is an available Azure region. You can retrieve a list of allowable regions for your Azure account by running the [`az account list-locations`](/cli/azure/appservice#az-appservice-list-locations) command.
27
+
* You can optionally include the argument `--location <location-name>` where `<location_name>` is an available Azure region. You can retrieve a list of allowable regions for your Azure account by running the [`az appservice list-locations`](/cli/azure/appservice#az-appservice-list-locations) command.
28
28
29
29
The command may take a few minutes to complete. While the command is running, it provides messages about creating the resource group, the App Service plan, and the app resource, configuring logging, and doing ZIP deployment. It then gives the message, "You can launch the app at http://<app-name>.azurewebsites.net", which is the app's URL on Azure.
Copy file name to clipboardExpand all lines: articles/app-service/includes/quickstart-python/create-app-service-azure-portal-4.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@ ms.author: daberry
4
4
ms.topic: include
5
5
ms.date: 07/26/2023
6
6
---
7
-
The App Service plan controls how many resources (CPU/memory) are available to your app and the cost of those resources.<br>
7
+
The App Service plan controls the amount of resources (CPU/memory) that are available to your app and the cost of those resources.<br>
8
8
<br>
9
-
For this example, under **Dev/Test**, select the **Basic B1** plan. The Basic B1 plan will incur a small charge against your Azure account but is recommended for better performance over the Free F1 plan.<br>
9
+
For this example, under **Dev/Test**, select the **Basic B1** plan. The Basic B1 plan will incur a small charge against your Azure account but is recommended for better performance over the Free F1 plan.<br>
10
10
<br>
11
11
When finished, select **Select** to apply your changes.
Copy file name to clipboardExpand all lines: articles/app-service/includes/quickstart-python/deploy-local-git.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ ms.author: cephalin
4
4
ms.topic: include
5
5
ms.date: 01/29/2022
6
6
---
7
-
You can deploy your application code from a local Git repository to Azure by configuring a [Git remote](https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes) in your local repo pointing at Azure to push code to. The URL of the remote repository and Git credentials needed for configuration can be retrieved using either the Azure portal or the Azure CLI.
7
+
You can deploy your application code from a local Git repository to Azure by configuring a [Git remote](https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes) in your local repo that points at the repo you want to push code to. The URL of the remote repository and Git credentials needed for configuration can be retrieved using either the Azure portal or the Azure CLI.
@@ -21,7 +21,7 @@ Next, in the root directory of your application, configure a [Git remote](https:
21
21
git remote add azure <git-deployment-url>
22
22
```
23
23
24
-
You can now push code from your local Git repository to Azure using the Git remote you just configured. The default deployment branch for App Service is `master`, but many Git repositories are moving away from `master`to`main`. You can either specify the mapping from local branch name to remote branch name in the push (as shown below), or you can configure your [`DEPLOYMENT_BRANCH` app setting](../../deploy-local-git.md?tabs=cli#change-deployment-branch).
24
+
You can now push code from your local Git repository to Azure using the Git remote you just configured. The default deployment branch for App Service is `master`, but many Git repositories are moving away from `master`and using`main`. You can either specify the mapping from local branch name to remote branch name in the push (as shown below), or you can configure your [`DEPLOYMENT_BRANCH` app setting](../../deploy-local-git.md?tabs=cli#change-deployment-branch).
25
25
26
26
```bash
27
27
git push azure main:master
@@ -31,11 +31,11 @@ The first time you push code to Azure, Git will prompt you for the Azure deploym
31
31
32
32
### [Azure CLI](#tab/deploy-instructions-azcli)
33
33
34
-
First, configure the deployment source for your web app to be local Git using the `az webapp deployment source` command. This command will output the URL of the remote Git repository that you will be pushing code to. Make a copy of this value as you will need it in a later step.
34
+
First, configure the deployment source for your web app to be local Git using the `az webapp deployment source` command. This command will output the URL of the remote Git repository that you'll be pushing code to. Make a copy of this value as you'll need it in a later step.
Retrieve the deployment credentials for your application. These will be needed for Git to authenticate to Azure when you push code to Azure in a later step.
38
+
Retrieve the deployment credentials for your application. Git will need these to authenticate to Azure when you push code to Azure in a later step.
@@ -45,10 +45,10 @@ Next, in the root directory of your application, configure a [Git remote](https:
45
45
git remote add azure <git-deployment-url>
46
46
```
47
47
48
-
You can now push code from your local Git repository to Azure using the Git remote you just configured. The default deployment branch for App Service is `master`, but many Git repositories are moving away from `master`to`main`. You can either specify the mapping from local branch name to remote branch name in the push (as shown below), or you can configure your [`DEPLOYMENT_BRANCH` app setting](../../deploy-local-git.md?tabs=cli#change-deployment-branch).
48
+
You can now push code from your local Git repository to Azure using the Git remote you just configured. The default deployment branch for App Service is `master`, but many Git repositories are moving away from `master`and using`main`. You can either specify the mapping from local branch name to remote branch name in the push (as shown below), or you can configure your [`DEPLOYMENT_BRANCH` app setting](../../deploy-local-git.md?tabs=cli#change-deployment-branch).
49
49
50
50
```bash
51
51
git push azure main:master
52
52
```
53
53
54
-
The first time you push code to Azure, Git will prompt you for the Azure deployment credentials you obtained in a previous step. Git will then cache these credentials so you won't have to reenter them on subsequent deployments.
54
+
The first time you push code to Azure, Git will prompt you for the Azure deployment credentials you obtained in a previous step. Git will then cache these credentials so you won't have to re-enter them on subsequent deployments.
Copy file name to clipboardExpand all lines: articles/app-service/includes/quickstart-python/stream-logs-azure-portal-2.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,6 @@ ms.author: daberry
4
4
ms.topic: include
5
5
ms.date: 01/29/2022
6
6
---
7
-
Select the **Log stream**item from the menu under the **Monitoring** section. Refresh the home page in the app or attempt other requests to generate some log messages.<br>
7
+
Select **Log stream** from the **Monitoring** section in the navigation pane on the left. Refresh the home page in the app or attempt other requests to generate some log messages.<br>
8
8
<br>
9
-
You will see any log messages generated by your app and messages generated by the service in the output.
9
+
You'll see any log messages generated by your app and messages generated by the service in the output.
0 commit comments