The Azure Quickstart templates are currently available in English

Kentico MVC

Filip Volner 提供
上次更新日期: 2019/8/19

This template facilitates the deployment of resources required to host Kentico MVC environments in Microsoft Azure.

此 Azure Resource Manager (ARM) 範本是由社群成員 (而非 Microsoft) 建立。每個 ARM 範本都是由其擁有者 (而非 Microsoft) 依據授權合約授權給您。Microsoft 並不負責社群成員所提供和授權的 ARM 範本,而不會為了安全性、相容性或效能進行篩選。社群 ARM 範本並未依據任何 Microsoft 支援方案或服務提供支援,而且會在沒有任何擔保的情況下依現況提供。

參數

參數名稱 說明
hostingPlanMVC Name of the App Service hosting plan for the Web App used to host the MVC application.
pricingTierMVC Pricing tier of the created App Service hosting plan for the MVC application. See the Microsoft Azure App Service documentation for details on pricing.
MVCSiteName Name of the Web App hosting the MVC application. By default, the deployed Web App will be available at MVCSiteName.azurewebsites.net. Keep in mind that the name must be unique across the entire Azure environment, not only within your hosting plan.
hostingPlanAdministration Name of the App Service hosting plan for the Web App used to host the Kentico administration application.
pricingTierAdministration Pricing tier of the created App Service hosting plan for the Kentico administration project. See the Microsoft Azure App Service documentation for details on pricing.
administrationSiteName Name of the Web App hosting the Kentico administration project. By default, the deployed Web App will be available at AdministrationSiteName.azurewebsites.net. Keep in mind that the name must be unique across the entire Azure environment, not only within your hosting plan.
sqlServerName Server name of the deployed Azure SQL server. The server name can contain only lowercase letters, numbers, and '-', but can't start or end with '-' or have more than 63 characters. The deployed server will be available at SQLServerName.database.windows.net. Keep in mind that the server name must be unique across the entire Azure environment, not only within your hosting plan.
sqlAdministratorLogin Login for the Azure SQL server administrator.
sqlAdministratorPassword Password for the Azure SQL server administrator account. The password is case-sensitive and may contain lower case, upper case, numbers and special characters. The default Azure password complexity rules: minimum length of 8 characters, minimum of 1 uppercase character, minimum of 1 lowercase character, minimum of 1 number. Moreover, the password cannot contain the account name of the user account performing the deployment. The password can be up to 128 characters long.
connectionStringDatabaseName Database name substituted in the 'Initial Catalog' parameter of the administration and website Web App connection strings. If left empty, the Web Apps are deployed without preconfigured connection strings.
location The geographical location to which the resources will be deployed.

使用範本

PowerShell

New-AzResourceGroup -Name <resource-group-name> -Location <resource-group-location> #use this command when you need to create a new resource group for your deployment
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/kentico-mvc-environment/azuredeploy.json
安裝和設定 Azure PowerShell

命令列

az group create --name <resource-group-name> --location <resource-group-location> #use this command when you need to create a new resource group for your deployment
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/kentico-mvc-environment/azuredeploy.json
安裝和設定 Azure 跨平台命令列介面