This template deploys an Azure Cosmos DB account, an App Service Plan, and creates a Web App in the App Service Plan. It also adds two Application settings to the Web App that reference the Azure Cosmos DB account endpoint. This way solutions deployed to the Web App can connect to the Azure Cosmos DB account endpoint using those settings.
Denne Azure Resource Manager (ARM)-malen ble opprettet av et medlem av fellesskapet og ikke av Microsoft. Hver ARM-mal er lisensiert til deg i henhold til en lisensavtale med eieren, ikke med Microsoft. Microsoft er ikke ansvarlig for ARM-maler som leveres og lisensieres av medlemmer og siler dem ikke ut med tanke på sikkerhet, kompatibilitet eller ytelse. Fellesskapets ARM-maler støttes ikke av noe Microsoft-støtteprogram eller -tjeneste, og er gjort tilgjengelig SOM DE ER, uten noen form for garanti.
Parametere
Parameternavn | Beskrivelse |
---|---|
databaseAccountName | The Azure Cosmos DB database account name. |
appSvcPlanName | The name of the App Service Plan that will host the Web App. |
svcPlanSize | The instance size of the App Service Plan. |
svcPlanSku | The pricing tier of the App Service plan. |
webAppName | The name of the Web App. |
Bruke malen
PowerShell
New-AzureRmResourceGroupDeployment -Name <deployment-name> -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/201-documentdb-webapp/azuredeploy.jsonInstallere og konfigurere Azure PowerShell
Kommandolinje
azure config mode arm azure group deployment create <my-resource-group> <my-deployment-name> --template-uri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/201-documentdb-webapp/azuredeploy.jsonInstaller og konfigurer Azures kommandolinjegrensesnitt for alle plattformer