Skip to content

Commit 987dba0

Browse files
committed
Fix build warnings
1 parent 0229151 commit 987dba0

File tree

4 files changed

+31
-217
lines changed

4 files changed

+31
-217
lines changed

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

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

articles/azure-functions/how-to-create-function-azure-cli.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,31 @@ In Azure Functions, a function project is a container for one or more individual
2929
::: zone pivot="programming-language-csharp,programming-language-javascript,programming-language-typescript,programming-language-powershell,programming-language-python"
3030
1. In a terminal or command prompt, run the following command for your chosen language to create a function app project in the current folder:
3131
::: zone-end
32-
::: zone pivot="programming-language-csharp"
33-
32+
::: zone pivot="programming-language-csharp"
3433
```console
3534
func init --worker-runtime dotnet-isolated
3635
```
37-
::: zone-end
38-
::: zone pivot="programming-language-javascript"
36+
::: zone-end
37+
::: zone pivot="programming-language-javascript"
3938
```console
4039
func init --worker-runtime node --language javascript
4140
```
42-
::: zone-end
43-
::: zone pivot="programming-language-powershell"
41+
::: zone-end
42+
::: zone pivot="programming-language-powershell"
4443
```console
4544
func init --worker-runtime powershell
4645
```
47-
::: zone-end
48-
::: zone pivot="programming-language-python"
46+
::: zone-end
47+
::: zone pivot="programming-language-python"
4948
```console
5049
func init --worker-runtime python
5150
```
52-
::: zone-end
53-
::: zone pivot="programming-language-typescript"
51+
::: zone-end
52+
::: zone pivot="programming-language-typescript"
5453
```console
5554
func init --worker-runtime node --language typescript
5655
```
57-
::: zone-end
56+
::: zone-end
5857
::: zone pivot="programming-language-java"
5958
<!--- The Maven archetype requires it's own create flow...-->
6059
1. In an empty folder, run this `mvn` command to generate the code project from an Azure Functions [Maven archetype](https://maven.apache.org/guides/introduction/introduction-to-archetypes.html):
@@ -103,11 +102,9 @@ In Azure Functions, a function project is a container for one or more individual
103102
```console
104103
cd fabrikam-functions
105104
```
106-
::: zone-end
107-
105+
::: zone-end
108106
The project root folder contains various files for the project, including configurations files named [local.settings.json](functions-develop-local.md#local-settings-file) and [host.json](functions-host-json.md). Because *local.settings.json* can contain secrets downloaded from Azure, the file is excluded from source control by default in the *.gitignore* file.
109-
110-
::: zone pivot="programming-language-csharp,programming-language-javascript,programming-language-typescript,programming-language-powershell,programming-language-python"
107+
::: zone pivot="programming-language-csharp,programming-language-javascript,programming-language-typescript,programming-language-powershell,programming-language-python"
111108
2. Use this `func new` command to add a function to your project:
112109

113110
```console

includes/functions-create-azure-resources-flex-cli.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,30 +98,40 @@ Use the following commands to create these items. Both Azure CLI and PowerShell
9898
<!---Replace tabs when PowerShell cmdlets support Flex Consumption plans.
9999
### [Azure CLI](#tab/azure-cli)
100100
-->
101-
::: zone pivot="programming-language-csharp"
101+
::: zone pivot="programming-language-csharp"
102+
```azurecli
102103
az functionapp create --resource-group "AzureFunctionsQuickstart-rg" --name <APP_NAME> --flexconsumption-location <REGION> \
103104
--runtime dotnet-isolated --runtime-version <LANGUAGE_VERSION> --storage-account <STORAGE_NAME> \
104105
--deployment-storage-auth-type UserAssignedIdentity --deployment-storage-auth-value <USER_NAME>
106+
```
105107
::: zone-end
106108
::: zone pivot="programming-language-java"
109+
```azurecli
107110
az functionapp create --resource-group "AzureFunctionsQuickstart-rg" --name <APP_NAME> --flexconsumption-location <REGION> \
108111
--runtime java --runtime-version <LANGUAGE_VERSION> --storage-account <STORAGE_NAME> \
109112
--deployment-storage-auth-type UserAssignedIdentity --deployment-storage-auth-value <USER_NAME>
113+
```
110114
::: zone-end
111115
::: zone pivot="programming-language-javascript,programming-language-typescript"
116+
```azurecli
112117
az functionapp create --resource-group "AzureFunctionsQuickstart-rg" --name <APP_NAME> --flexconsumption-location <REGION> \
113118
--runtime node --runtime-version <LANGUAGE_VERSION> --storage-account <STORAGE_NAME> \
114119
--deployment-storage-auth-type UserAssignedIdentity --deployment-storage-auth-value <USER_NAME>
120+
```
115121
::: zone-end
116122
::: zone pivot="programming-language-python"
123+
```azurecli
117124
az functionapp create --resource-group "AzureFunctionsQuickstart-rg" --name <APP_NAME> --flexconsumption-location <REGION> \
118125
--runtime python --runtime-version <LANGUAGE_VERSION> --storage-account <STORAGE_NAME> \
119126
--deployment-storage-auth-type UserAssignedIdentity --deployment-storage-auth-value <USER_NAME>
127+
```
120128
::: zone-end
121129
::: zone pivot="programming-language-powershell"
130+
```azurecli
122131
az functionapp create --resource-group "AzureFunctionsQuickstart-rg" --name <APP_NAME> --flexconsumption-location <REGION> \
123132
--runtime python --runtime-version <LANGUAGE_VERSION> --storage-account <STORAGE_NAME> \
124133
--deployment-storage-auth-type UserAssignedIdentity --deployment-storage-auth-value <USER_NAME>
134+
```
125135
::: zone-end
126136
<!---
127137
### [Azure PowerShell](#tab/azure-powershell)
@@ -142,9 +152,9 @@ Use the following commands to create these items. Both Azure CLI and PowerShell
142152
+ `<USER_NAME>`: the name of the user-assigned managed identity.
143153
+ `<LANGUAGE_VERSION>`: use the [supported language stack version](../articles/azure-functions/supported-languages.md) you verified locally.
144154
145-
This command creates a function app running in your specified language runtime on Linux in the [Flex Consumption Plan](flex-consumption-plan.md), which is free for the amount of usage you incur here. The command also creates an associated Azure Application Insights instance in the same resource group, with which you can monitor your function app and view logs. For more information, see [Monitor Azure Functions](functions-monitoring.md). The instance incurs no costs until you activate it.
155+
This command creates a function app running in your specified language runtime on Linux in the [Flex Consumption Plan](../articles/azure-functions/flex-consumption-plan.md), which is free for the amount of usage you incur here. The command also creates an associated Azure Application Insights instance in the same resource group, with which you can monitor your function app and view logs. For more information, see [Monitor Azure Functions](../articles/azure-functions/functions-monitoring.md). The instance incurs no costs until you activate it.
146156
147-
1. Add your user-assigned managed identity to the [Monitoring Metrics Publisher](../role-based-access-control/built-in-roles/monitor.md#monitoring-metrics-publisher) role in your Application Insights instance:
157+
1. Add your user-assigned managed identity to the [Monitoring Metrics Publisher](../articles/role-based-access-control/built-in-roles/monitor.md#monitoring-metrics-publisher) role in your Application Insights instance:
148158
149159
:::code language="azurecli" source="~/azure_cli_scripts/azure-functions/create-function-app-flex-plan-identities/create-function-app-flex-plan-identities.md" range="42-44":::
150160

redirects/.openpublishing.redirection.azure-functions.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
"source_path_from_root": "/articles/azure-functions/durable/durable-functions-configure-durable-functions-with-credentials.md",
1515
"redirect_url": "/azure/azure-functions/durable/durable-functions-configure-managed-identity",
1616
"redirect_document_id": false
17-
}
17+
},
18+
{
19+
"source_path_from_root": "/articles/azure-functions/create-first-function-cli-csharp.md",
20+
"redirect_url": "/azure/azure-functions/how-to-create-function-azure-cli?pivot=programming-language-csharp",
21+
"redirect_document_id": false
22+
}
1823
]
1924
}

0 commit comments

Comments
 (0)