Az Azure-gyorskonfigurálási sablonok jelenleg angol nyelven érhetők el
Create Azure SQL Servers and Database with Failover Group
Creates two Azure SQL servers, a database, and a failover group.
Ezt az Azure Resource Manager-sablont (ARM-sablont) nem a Microsoft, hanem a közösség egyik tagja készítette. Az egyes ARM-sablonok nem a Microsofttól, hanem a sablon tulajdonosától licencelhetők licencszerződés keretében. A Microsoft semmilyen felelősséget nem vállalal a közösség tagjai által biztosított és licencbe adott ARM-sablonokért, és azokat a biztonság, kompatibilitás és teljesítmény szempontjából nem ellenőrzi. A közösségi ARM-sablonokat a Microsoft semmilyen terméktámogatási programja vagy szolgáltatása nem támogatja, és ezek „adott állapotukban” állnak rendelkezésre, mindennemű garancia nélkül.
Paraméterek
Paraméter neve | Leírás |
---|---|
sqlServerPrimaryName | The name of the primary SQL Server. |
sqlServerPrimaryAdminUsername | The administrator username of the primary SQL Server. |
sqlServerPrimaryAdminPassword | The administrator password of the primary SQL Server. |
sqlServerSecondaryName | The name of the secondary SQL Server. |
sqlServerSecondaryRegion | The location of the secondary SQL Server. |
sqlServerSecondaryAdminUsername | The administrator username of the secondary SQL Server. |
sqlServerSecondaryAdminPassword | The administrator password of the secondary SQL Server. |
sqlFailoverGroupName | The name of the failover group. |
location | Location for all resources. |
A sablon használata
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 deploymentAz Azure PowerShell telepítése és konfigurálása
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.sql/sql-with-failover-group/azuredeploy.json
Parancssor
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 deploymentAz Azure többplatformos parancssori felületének telepítése és beállítása
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.sql/sql-with-failover-group/azuredeploy.json