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
This module assumes that there are a [resource group](https://docs.microsoft.com/en-us/azure/azure-resource-manager/manage-resource-groups-portal#create-resource-groups), an [app service plan](https://docs.microsoft.com/en-us/azure/app-service/overview-hosting-plans), and a [storage account resource](https://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview)
@@ -255,14 +72,21 @@ You will need to provide the following information for the dependencies:
255
72
256
73
This is a map where the key is the `function_app_name` and the definition for the function app:
257
74
258
-
-**`app_settings`:** The function app settings config map.
259
-
-**`image`:** The docker image name.
75
+
- For Docker based deployment, the object has one field:
76
+
image: which refers to the docker image name to deploy.
77
+
- For running from a package, it should contains the fields:
78
+
- zip: contains an http reference to the package.
79
+
80
+
> This will enable your function app to run from a package by adding a WEBSITE_RUN_FROM_PACKAGE setting to your function app settings.
81
+
82
+
- hash: contains a hash of the zip file for downloads integrity check.
83
+
260
84
261
85
### Manually deploying Private ACR Images
262
86
263
-
If no image is deployed due to the usage of a Private ACR configuration then the `image` should be left blank and images can be deployed post terraform provisioning has occured by using the Azure CLI or some other process.
87
+
If no image is deployed due to the usage of a Private ACR configuration then the `image` should be left blank and images can be deployed post terraform provisioning has occured by using the Azure CLI or some other process. The below example uses the Azure CLI and docker.
264
88
265
-
```
89
+
```bash
266
90
RESOURCE_GROUP="<resource_group_name>"
267
91
REGISTRY_SERVER="<registry_server_name>"
268
92
FUNCTION_APP="<function_app_name>"
@@ -281,16 +105,10 @@ az functionapp config container set --docker-custom-image-name $REGISTRY_SERVER.
281
105
```
282
106
283
107
284
-
## Resources
285
-
286
-
| Resource | Description |
287
-
|--------|-------------|
288
-
| azurerm_function_app | The actual azure function app resources being created and deployed. |
0 commit comments