The Azure Quickstart templates are currently available in English
This template helps you setup the resources needed to deploy BOSH and Cloud Foundry across two regions on Azure.
此 Azure Resource Manager (ARM) 模板由社区的某个成员(而不是由 Microsoft)创建。每个 ARM 模板都根据其所有者(不是 Microsoft)的许可协议向你授予许可。Microsoft 不对由社区成员提供并授予许可的 ARM 模板负责,并且不针对安全性、兼容性和性能进行筛选。社区 ARM 模板不由任何 Microsoft 支持计划或服务提供支持,按“原样”提供,没有任何种类的担保。
参数
参数名 | 说明 |
---|---|
vmName | name of the vm, will be used as DNS Name for the Public IP used to access the Virtual Machine |
adminUsername | User name for the Virtual Machine |
sshKeyData | Please copy the content of your SSH RSA public key and paste it here. You can use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs. |
environment | AzureCloud is Global Azure |
tenantID | ID of the tenant. See https://github.com/cloudfoundry-incubator/bosh-azure-cpi-release/blob/master/docs/guidance.md |
clientID | ID of the client. See https://github.com/cloudfoundry-incubator/bosh-azure-cpi-release/blob/master/docs/guidance.md |
clientSecret | secret of the client. See https://github.com/cloudfoundry-incubator/bosh-azure-cpi-release/blob/master/docs/guidance.md |
autoDeployBosh | The flag that enables automatic deployment of Bosh |
primaryLocation | The primary location to provision resources for Bosh and CF |
secondaryLocation | The secondary location to provision resources for Bosh and CF |
vpnGwSharedKey | Please provide a shared key for the VPN gateway. This field should not be blank. |
systemdomain | Domain name used for Cloud Foundry system domain |
dbendpoint | Database host endpoint that has ccdb and uaadb provisioned with default admin account used in this template |
nfsendpoint | NFS endpoint for Cloud Foundry |
使用模板
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安装和配置 Azure PowerShell
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/bosh-cf-crossregion/azuredeploy.json
命令行
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安装和配置 Azure 跨平台命令行界面
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/bosh-cf-crossregion/azuredeploy.json