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
By default, the Flex Consumption plan follows a _payforwhatyouuse_ billing model, which means completing this quickstart incurs a small cost of a few USD cents or less in your Azure account.
18
+
By default, the Flex Consumption plan follows a _pay-for-what-you-use_ billing model, which means to complete this quickstart incurs a small cost of a few USD cents or less in your Azure account.
19
19
20
20
## Prerequisites
21
21
@@ -155,9 +155,10 @@ You can use the `azd init` command to create a local Azure Functions code projec
155
155
156
156
3. Run this command in the root folder:
157
157
158
-
```bash
158
+
```console
159
159
func init --worker-runtime python
160
160
```
161
+
161
162
This command restores the _local.settings.json_ file in the root folder, which is required when running locally.
162
163
163
164
## Create and activate a virtual environment
@@ -217,7 +218,7 @@ py -m venv .venv
217
218
218
219
1. From your HTTP test tool in a new terminal, send an HTTP POST request with a JSON payload like in this example:
You can find examples of both HTTP requests in the _test.http_ project file.
223
224
@@ -286,7 +287,7 @@ After you verify your functions locally, it's time to publish them to Azure.
286
287
This project is configured to use the `azd up` command to deploy this project to a new function app in a Flex Consumption plan in Azure.
287
288
288
289
>[!TIP]
289
-
>This project includes a set of Bicep files that `azd` uses to create a best practices secure deployment to a Flex consumption plan.
290
+
>This project includes a set of Bicep files that `azd` uses to create a secure deployment to a Flex consumption plan that follows best practices.
290
291
291
292
1. Run this command to create the Azure resources and deploy your app to Azure.
292
293
@@ -298,8 +299,10 @@ This project is configured to use the `azd up` command to deploy this project to
298
299
299
300
1. When prompted, provide these required deployment parameters:
300
301
301
-
+ _Azure subscription_: Subscription in which your resources are created.
302
-
+ _Azure location_: Azure region in which to create the resource group that contains the new Azure resources. Only regions that currently support the Flex Consumption plan are shown.
302
+
| Parameter | Description |
303
+
| ---- | ---- |
304
+
| _Azure subscription_ | Subscription in which your resources are created.|
305
+
| _Azure location_ | Azure region in which to create the resource group that contains the new Azure resources. Only regions that currently support the Flex Consumption plan are shown.|
303
306
304
307
The `azd up` command uses your response to these prompts with the Bicep configuration files to complete these deployment tasks:
305
308
@@ -333,9 +336,12 @@ You can use the Core Tools to obtain the URL endpoints of your functions running
333
336
334
337
## Redeploy your code
335
338
336
-
Your responses to `azd` prompts and other environment variables generated by `azd` are stored in your named environment. This means that you can run the `azd up` command as many times as you need to both reprovision your function app and deploy updates to your source code. During subsequent executions, existing resources are skipped. Deployed code files are always overwritten by the latest deployment package.
339
+
You can run the `azd up` command as many times as you need to both provision your Azure resources and deploy code updates to your function app.
340
+
341
+
>[!NOTE]
342
+
>Deployed code files are always overwritten by the latest deployment package.
337
343
338
-
Use the `azd env get-values` command to review all of the variables in your environment that were used when creating Azure resources.
344
+
Your initial responses to `azd` prompts and any environment variables generated by `azd` are stored locally in your named environment. Use the `azd env get-values` command to review all of the variables in your environment that were used when creating Azure resources.
Copy file name to clipboardExpand all lines: includes/functions-quickstart-azd-env.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,4 +8,4 @@ ms.author: glenga
8
8
9
9
2. Enter an environment name when prompted, such as `flexquickstart`. In `azd`, the environment is used to maintain a unique deployment context for your app, and you can define more than one. It's also used in the name of the resource group you create in Azure.
10
10
11
-
After you specify the environment, `azd`clones the template files to your machine and initializes a local project in your current folder.
11
+
After you specify the environment, `azd`downloads project files from the template and initializes a local project in your current folder.
0 commit comments