##Description Api App handling connection with DocumentDB this will handle communcation with REST API and used with Logic Apps. Both the AuthKey (primary API key) and the Endpoint URL for the Document DB instance is retrieved in the template.
{
"Name": "endpoint",
"Value": "[reference(concat('Microsoft.DocumentDb/databaseAccounts/', parameters('databaseAccountName'))).documentEndpoint]"
},
{
"Name": "authKey",
"Value": "[listKeys(resourceId('Microsoft.DocumentDb/databaseAccounts', parameters('databaseAccountName')), '2015-04-08').primaryMasterKey]"
}
| Parameter | Description | Type | Validation |
|---|---|---|---|
| Database | Name of the database to connect to | String | Required |
| DatabaseAccountName | Name of the database account | String | Required |
| AppSvcPlanName | Name of the App Service Plan | String | Required |
| ApiAppName | Name of the Api App | String | Required |
This deploys via Azure Portal (WEB APP)
This deploys via Azure Portal (API APP)
If the required parameters are not set the web app will fail to load, this due to a initial connection is made on startup.