Skip to content

Commit 3ccc126

Browse files
committed
Functions CLI scripts cleanup
1 parent 26735a5 commit 3ccc126

11 files changed

+122
-147
lines changed

articles/azure-functions/functions-cli-samples.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ The following table includes links to bash scripts for Azure Functions that use
1818
| Create app | Description |
1919
|---|---|
2020
| [Create a function app for serverless execution](scripts/functions-cli-create-serverless.md) | Creates a function app in a Consumption plan. |
21-
| [Create a function app in an App Service plan](scripts/functions-cli-create-app-service-plan.md) | Create a function app in a dedicated App Service plan. |
21+
| [Create a serverless Python function app](scripts/functions-cli-create-serverless-python.md) | Create a function app in a dedicated App Service plan. |
22+
| [Create a function app in a scalable Premium plan](scripts/functions-cli-create-premium-plan.md) | Create a function app in a dedicated App Service plan. |
23+
| [Create a function app in a dedicated (App Service) plan](scripts/functions-cli-create-app-service-plan.md) | Create a function app in a dedicated App Service plan. |
2224

2325
| Integrate | Description|
2426
|---|---|
@@ -29,15 +31,3 @@ The following table includes links to bash scripts for Azure Functions that use
2931
|---|---|
3032
| [Deploy from GitHub](scripts/functions-cli-create-function-app-github-continuous.md) | Create a function app that deploys from a GitHub repository. |
3133
| [Deploy from Azure DevOps](scripts/functions-cli-create-function-app-vsts-continuous.md) | Create a function app that deploys from an Azure DevOps repository. |
32-
33-
| Configure app | Description |
34-
|---|---|
35-
| [Map a custom domain to a function app](scripts/functions-cli-configure-custom-domain.md) | Define a custom domain for your functions. |
36-
| [Bind an SSL certificate to a function app](scripts/functions-cli-configure-ssl-certificate.md) | Upload SSL certificates for functions in a custom domain. |
37-
38-
<!---
39-
40-
|**Scale app**||
41-
42-
|**Connect app to resources**||
43-
-->

articles/azure-functions/scripts/functions-cli-configure-custom-domain.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

articles/azure-functions/scripts/functions-cli-configure-ssl-certificate.md

Lines changed: 0 additions & 57 deletions
This file was deleted.

articles/azure-functions/scripts/functions-cli-create-app-service-plan.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ Each command in the table links to command specific documentation. This script u
3838

3939
| Command | Notes |
4040
|---|---|
41-
| [az group create](https://docs.microsoft.com/cli/azure/group#az-group-create) | Creates a resource group in which all resources are stored. |
42-
| [az storage account create](https://docs.microsoft.com/cli/azure/storage/account#az-storage-account-create) | Creates an Azure Storage account. |
43-
| [az appservice plan create](https://docs.microsoft.com/cli/azure/appservice/plan#az-appservice-plan-create) | Creates an App Service plan. |
44-
| [az functionapp create](https://docs.microsoft.com/cli/azure/functionapp#az-functionapp-create) | Creates a function app in the App Service plan. |
41+
| [az group create](/cli/azure/group#az-group-create) | Creates a resource group in which all resources are stored. |
42+
| [az storage account create](/cli/azure/storage/account#az-storage-account-create) | Creates an Azure Storage account. |
43+
| [az functionapp plan create](/cli/azure/functionapp/plan#az-functionapp-plan-create) | Creates a Premium plan. |
44+
| [az functionapp create](/cli/azure/functionapp#az-functionapp-create) | Creates a function app in the App Service plan. |
4545

4646
## Next steps
4747

48-
For more information on the Azure CLI, see [Azure CLI documentation](https://docs.microsoft.com/cli/azure).
48+
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
4949

5050
Additional Azure Functions CLI script samples can be found in the [Azure Functions documentation](../functions-cli-samples.md).

articles/azure-functions/scripts/functions-cli-create-function-app-connect-to-cosmos-db.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ This script uses the following commands: Each command in the table links to comm
3737

3838
| Command | Notes |
3939
|---|---|
40-
| [az group create](https://docs.microsoft.com/cli/azure/group#az-group-create) | Create a resource group with location |
41-
| [az storage accounts create](https://docs.microsoft.com/cli/azure/storage/account#az-storage-account-create) | Create a storage account |
42-
| [az functionapp create](https://docs.microsoft.com/cli/azure/functionapp#az-functionapp-create) | Creates a function app in the serverless [consumption plan](../functions-scale.md#consumption-plan). |
43-
| [az cosmosdb create](https://docs.microsoft.com/cli/azure/cosmosdb#az-cosmosdb-create) | Create an Azure Cosmos DB database. |
40+
| [az group create](/cli/azure/group#az-group-create) | Create a resource group with location |
41+
| [az storage accounts create](/cli/azure/storage/account#az-storage-account-create) | Create a storage account |
42+
| [az functionapp create](/cli/azure/functionapp#az-functionapp-create) | Creates a function app in the serverless [consumption plan](../functions-scale.md#consumption-plan). |
43+
| [az cosmosdb create](/cli/azure/cosmosdb#az-cosmosdb-create) | Create an Azure Cosmos DB database. |
4444

4545
## Next steps
4646

47-
For more information on the Azure CLI, see [Azure CLI documentation](https://docs.microsoft.com/cli/azure).
47+
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
4848

4949
Additional Azure Functions CLI script samples can be found in the [Azure Functions documentation](../functions-cli-samples.md).
5050

articles/azure-functions/scripts/functions-cli-create-function-app-connect-to-storage-account.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ This script uses the following commands. Each command in the table links to comm
4444

4545
| Command | Notes |
4646
|---|---|
47-
| [az group create](https://docs.microsoft.com/cli/azure/group#az-group-create) | Create a resource group with location. |
48-
| [az storage account create](https://docs.microsoft.com/cli/azure/storage/account#az-storage-account-create) | Create a storage account. |
49-
| [az functionapp create](https://docs.microsoft.com/cli/azure/functionapp#az-functionapp-create) | Creates a function app in the serverless [consumption plan](../functions-scale.md#consumption-plan). |
47+
| [az group create](/cli/azure/group#az-group-create) | Create a resource group with location. |
48+
| [az storage account create](/cli/azure/storage/account#az-storage-account-create) | Create a storage account. |
49+
| [az functionapp create](/cli/azure/functionapp#az-functionapp-create) | Creates a function app in the serverless [consumption plan](../functions-scale.md#consumption-plan). |
5050

5151
## Next steps
5252

53-
For more information on the Azure CLI, see [Azure CLI documentation](https://docs.microsoft.com/cli/azure).
53+
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
5454

5555
Additional Azure Functions CLI script samples can be found in the [Azure Functions documentation](../functions-cli-samples.md).

articles/azure-functions/scripts/functions-cli-create-function-app-github-continuous.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ Each command in the table links to command specific documentation. This script u
4343

4444
| Command | Notes |
4545
|---|---|
46-
| [az group create](https://docs.microsoft.com/cli/azure/group#az-group-create) | Creates a resource group in which all resources are stored. |
47-
| [az storage account create](https://docs.microsoft.com/cli/azure/storage/account#az-storage-account-create) | Creates the storage account required by the function app. |
48-
| [az functionapp create](https://docs.microsoft.com/cli/azure/functionapp#az-functionapp-create) | Creates a function app in the serverless [consumption plan](../functions-scale.md#consumption-plan) and associates it with a Git or Mercurial repository. |
46+
| [az group create](/cli/azure/group#az-group-create) | Creates a resource group in which all resources are stored. |
47+
| [az storage account create](/cli/azure/storage/account#az-storage-account-create) | Creates the storage account required by the function app. |
48+
| [az functionapp create](/cli/azure/functionapp#az-functionapp-create) | Creates a function app in the serverless [consumption plan](../functions-scale.md#consumption-plan) and associates it with a Git or Mercurial repository. |
4949

5050
## Next steps
5151

52-
For more information on the Azure CLI, see [Azure CLI documentation](https://docs.microsoft.com/cli/azure).
52+
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
5353

5454
Additional Azure Functions CLI script samples can be found in the [Azure Functions documentation](../functions-cli-samples.md).

articles/azure-functions/scripts/functions-cli-create-function-app-vsts-continuous.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This topic shows you how to use Azure Functions to create a [serverless](https:/
1919
To complete this topic, you must have:
2020

2121
* An Azure DevOps repository that contains your function app project and to which you have administrative permissions.
22-
* A [personal access token (PAT)](https://docs.microsoft.com/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate) to access your Azure DevOps repository.
22+
* A [personal access token (PAT)](/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate) to access your Azure DevOps repository.
2323

2424
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
2525

@@ -41,13 +41,13 @@ This script uses the following commands to create a resource group, storage acco
4141

4242
| Command | Notes |
4343
|---|---|
44-
| [az group create](https://docs.microsoft.com/cli/azure/group#az-group-create) | Creates a resource group in which all resources are stored. |
45-
| [az storage account create](https://docs.microsoft.com/cli/azure/storage/account#az-storage-account-create) | Creates the storage account required by the function app. |
46-
| [az functionapp create](https://docs.microsoft.com/cli/azure/functionapp#az-functionapp-create) | Creates a function app in the serverless [consumption plan](../functions-scale.md#consumption-plan). |
47-
| [az functionapp deployment source config](https://docs.microsoft.com/cli/azure/functionapp/deployment/source#az-functionapp-deployment-source-config) | Associates a function app with a Git or Mercurial repository. |
44+
| [az group create](/cli/azure/group#az-group-create) | Creates a resource group in which all resources are stored. |
45+
| [az storage account create](/cli/azure/storage/account#az-storage-account-create) | Creates the storage account required by the function app. |
46+
| [az functionapp create](/cli/azure/functionapp#az-functionapp-create) | Creates a function app in the serverless [consumption plan](../functions-scale.md#consumption-plan). |
47+
| [az functionapp deployment source config](/cli/azure/functionapp/deployment/source#az-functionapp-deployment-source-config) | Associates a function app with a Git or Mercurial repository. |
4848

4949
## Next steps
5050

51-
For more information on the Azure CLI, see [Azure CLI documentation](https://docs.microsoft.com/cli/azure).
51+
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
5252

5353
Additional Azure Functions CLI script samples can be found in the [Azure Functions documentation](../functions-cli-samples.md).
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: Create a Function App in a Premium plan - Azure CLI
3+
description: Azure CLI Script Sample - Create a Function App in a scalable Premium plan
4+
ms.service: azure-functions
5+
ms.topic: sample
6+
ms.date: 11/23/2019
7+
---
8+
9+
# Create a function app in a Premium plan
10+
11+
This Azure Functions sample script creates a function app, which is a container for your functions. The function app that is created uses a [scalable Premium plan](../functions-premium-plan.md).
12+
13+
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
14+
15+
[!INCLUDE [cloud-shell-try-it.md](../../../includes/cloud-shell-try-it.md)]
16+
17+
If you choose to install and use the CLI locally, this article requires the Azure CLI version 2.0 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install the Azure CLI]( /cli/azure/install-azure-cli).
18+
19+
## Sample script
20+
21+
This script creates a function app using a [Premium plan](../functions-premium-plan.md).
22+
23+
[!code-azurecli-interactive[main](../../../cli_scripts/azure-functions/create-function-app-premium-plan/create-function-app-premium-plan.sh "Create an Azure Function on an App Service plan")]
24+
25+
[!INCLUDE [cli-script-clean-up](../../../includes/cli-script-clean-up.md)]
26+
27+
## Script explanation
28+
29+
Each command in the table links to command specific documentation. This script uses the following commands:
30+
31+
| Command | Notes |
32+
|---|---|
33+
| [az group create](/cli/azure/group#az-group-create) | Creates a resource group in which all resources are stored. |
34+
| [az storage account create](/cli/azure/storage/account#az-storage-account-create) | Creates an Azure Storage account. |
35+
| [az functionapp plan create](/cli/azure/functionapp/plan#az-functionapp-plan-create) | Creates a Premium plan. |
36+
| [az functionapp create](/cli/azure/functionapp#az-functionapp-create) | Creates a function app in the App Service plan. |
37+
38+
## Next steps
39+
40+
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
41+
42+
Additional Azure Functions CLI script samples can be found in the [Azure Functions documentation](../functions-cli-samples.md).

0 commit comments

Comments
 (0)