Skip to content

Commit fa1e7f2

Browse files
committed
final tweaks
1 parent f8053a3 commit fa1e7f2

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

articles/azure-functions/create-first-function-azd-cli.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The project source uses the Azure Developer CLI (azd) to simplify deploying your
1515

1616
[!INCLUDE [functions-flex-preview-note](../../includes/functions-flex-preview-note.md)]
1717

18-
By default, the Flex Consumption plan follows a _pay for what you use_ 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.
1919

2020
## Prerequisites
2121

@@ -155,9 +155,10 @@ You can use the `azd init` command to create a local Azure Functions code projec
155155

156156
3. Run this command in the root folder:
157157

158-
```bash
158+
```console
159159
func init --worker-runtime python
160160
```
161+
161162
This command restores the _local.settings.json_ file in the root folder, which is required when running locally.
162163

163164
## Create and activate a virtual environment
@@ -217,7 +218,7 @@ py -m venv .venv
217218

218219
1. From your HTTP test tool in a new terminal, send an HTTP POST request with a JSON payload like in this example:
219220

220-
:::code language="http" source="~/functions-quickstart-dotnet-azd/http/test.http" range="5-11" :::
221+
:::code language="http" source="~/functions-quickstart-dotnet-azd/http/test.http" range="9-15" :::
221222

222223
You can find examples of both HTTP requests in the _test.http_ project file.
223224

@@ -286,7 +287,7 @@ After you verify your functions locally, it's time to publish them to Azure.
286287
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.
287288

288289
>[!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.
290291

291292
1. Run this command to create the Azure resources and deploy your app to Azure.
292293

@@ -298,8 +299,10 @@ This project is configured to use the `azd up` command to deploy this project to
298299

299300
1. When prompted, provide these required deployment parameters:
300301

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.|
303306
304307
The `azd up` command uses your response to these prompts with the Bicep configuration files to complete these deployment tasks:
305308

@@ -333,9 +336,12 @@ You can use the Core Tools to obtain the URL endpoints of your functions running
333336

334337
## Redeploy your code
335338

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.
337343

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.
339345

340346
## Clean up resources
341347

includes/functions-quickstart-azd-env.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ ms.author: glenga
88

99
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.
1010

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

Comments
 (0)