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
Host-level [function access keys](function-keys-how-to.md) are defined as Azure resources. This means that you can create and manage host keys in your ARM templates and Bicep files. A host key is defined as a resource of type `Microsoft.Web/sites/host/functionKeys`. This example creates a host-level access key named `my_custom_key` when the function app is created:
In this example, the `name` parameter is the name of the new function app. You must include a `dependsOn` setting to guarantee that the key is created with the new function app. Finally, the `properties` object of the host key can also include a `value` property that can be used to set a specific key.
1711
-
1712
-
When you don't set the `value` property, Functions automatically generates a new key for you when the resource is created, which is recommended. To learn more about access keys, including security best practices for working with access keys, see [Work with access keys in Azure Functions](function-keys-how-to.md).
1713
-
1673
+
::: zone-end
1714
1674
:::zone pivot="flex-consumption-plan"
1715
1675
## Application configuration
1716
1676
@@ -1735,7 +1695,7 @@ The Flex Consumption plan also supports these application settings:
@@ -1938,6 +1898,46 @@ You might also need to use these settings when your function app has network res
1938
1898
1939
1899
When you're restricting access to the storage account through the private endpoints, you aren't able to access the storage account through the portal or any device outside the virtual network. You can give access to your secured IP address or virtual network in the storage account by [Managing the default network access rule](../storage/common/storage-network-security.md#change-the-default-network-access-rule).
1940
1900
::: zone-end
1901
+
## Function access keys
1902
+
1903
+
Host-level [function access keys](function-keys-how-to.md) are defined as Azure resources. This means that you can create and manage host keys in your ARM templates and Bicep files. A host key is defined as a resource of type `Microsoft.Web/sites/host/functionKeys`. This example creates a host-level access key named `my_custom_key` when the function app is created:
In this example, the `name` parameter is the name of the new function app. You must include a `dependsOn` setting to guarantee that the key is created with the new function app. Finally, the `properties` object of the host key can also include a `value` property that can be used to set a specific key.
1938
+
1939
+
When you don't set the `value` property, Functions automatically generates a new key for you when the resource is created, which is recommended. To learn more about access keys, including security best practices for working with access keys, see [Work with access keys in Azure Functions](function-keys-how-to.md).
1940
+
1941
1941
## Create your template
1942
1942
1943
1943
Experts with Bicep or ARM templates can manually code their deployments using a simple text editor. For the rest of us, there are several ways to make the development process easier:
@@ -2000,17 +2000,17 @@ You can also create a test resource group to find [preflight](../azure-resource-
2000
2000
2001
2001
You can use any of the following ways to deploy your Bicep file and template:
@@ -2036,7 +2036,7 @@ Here's an example that uses HTML:
2036
2036
2037
2037
The following PowerShell commands create a resource group and deploy a Bicep file or ARM template that creates a function app with its required resources. To run locally, you must have [Azure PowerShell](/powershell/azure/install-azure-powershell) installed. Run [`Connect-AzAccount`](/powershell/module/az.accounts/connect-azaccount) to sign in.
2038
2038
2039
-
#### [ARM template](#tab/json)
2039
+
#### [Bicep](#tab/bicep)
2040
2040
2041
2041
```powershell
2042
2042
# Register Resource Providers if they're not already registered
0 commit comments