81 lines
2.7 KiB
JSON
81 lines
2.7 KiB
JSON
{
|
|
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
|
|
"contentVersion": "1.0.0.0",
|
|
"parameters": {
|
|
"resourceGroupName": {
|
|
"type": "string",
|
|
"defaultValue": "asgform-app-20230727003745ResourceGroup",
|
|
"metadata": {
|
|
"_parameterType": "resourceGroup",
|
|
"description": "资源的资源组名称。建议将资源放在同一个资源组中,以便更好地进行跟踪。"
|
|
}
|
|
},
|
|
"resourceGroupLocation": {
|
|
"type": "string",
|
|
"defaultValue": "australiaeast",
|
|
"metadata": {
|
|
"_parameterType": "location",
|
|
"description": "资源组的位置。资源组的位置可能与资源不同。"
|
|
}
|
|
},
|
|
"resourceLocation": {
|
|
"type": "string",
|
|
"defaultValue": "[parameters('resourceGroupLocation')]",
|
|
"metadata": {
|
|
"_parameterType": "location",
|
|
"description": "资源的位置。默认情况下使用资源组的位置,除非资源提供程序不受支持。"
|
|
}
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"type": "Microsoft.Resources/resourceGroups",
|
|
"name": "[parameters('resourceGroupName')]",
|
|
"location": "[parameters('resourceGroupLocation')]",
|
|
"apiVersion": "2019-10-01"
|
|
},
|
|
{
|
|
"type": "Microsoft.Resources/deployments",
|
|
"name": "[concat(parameters('resourceGroupName'), 'Deployment', uniqueString(concat('asg_form_db', subscription().subscriptionId)))]",
|
|
"resourceGroup": "[parameters('resourceGroupName')]",
|
|
"apiVersion": "2019-10-01",
|
|
"dependsOn": [
|
|
"[parameters('resourceGroupName')]"
|
|
],
|
|
"properties": {
|
|
"mode": "Incremental",
|
|
"template": {
|
|
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
|
|
"contentVersion": "1.0.0.0",
|
|
"resources": [
|
|
{
|
|
"kind": "v12.0",
|
|
"location": "[parameters('resourceLocation')]",
|
|
"name": "asg-formdbserver",
|
|
"type": "Microsoft.Sql/servers",
|
|
"apiVersion": "2017-10-01-preview"
|
|
},
|
|
{
|
|
"sku": {
|
|
"name": "Standard",
|
|
"tier": "Standard",
|
|
"capacity": 10
|
|
},
|
|
"kind": "v12.0,user",
|
|
"location": "[parameters('resourceLocation')]",
|
|
"name": "asg-formdbserver/asg_form_db",
|
|
"type": "Microsoft.Sql/servers/databases",
|
|
"apiVersion": "2017-10-01-preview",
|
|
"dependsOn": [
|
|
"asg-formdbserver"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"metadata": {
|
|
"_dependencyType": "mssql.azure"
|
|
}
|
|
} |