Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 7188468

Browse files
authored
Merge branch 'main' into sqlsvr-aad-p1
2 parents f3a949c + c62f71f commit 7188468

798 files changed

Lines changed: 34907 additions & 23714 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.openpublishing.publish.config.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@
7272
"branch": "master",
7373
"branch_mapping": {}
7474
},
75-
{
76-
"path_to_root": "azure",
77-
"url": "https://github.com/MicrosoftDocs/azure-docs-pr",
78-
"branch": "main",
79-
"branch_mapping": {}
80-
},
8175
{
8276
"path_to_root": "azure_cli_scripts",
8377
"url": "https://github.com/Azure-Samples/azure-cli-samples",

.openpublishing.redirection.azure-sql.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,26 @@
455455
"redirect_url": "/azure/azure-sql/virtual-machines/windows/ways-to-connect-to-sql",
456456
"redirect_document_id": false
457457
},
458+
{
459+
"source_path_from_root": "/azure-sql/managed-instance/managed-instance-link-use-ssms-to-replicate-database.md",
460+
"redirect_url": "/azure/azure-sql/managed-instance/managed-instance-link-configure-how-to-ssms",
461+
"redirect_document_id": true
462+
},
463+
{
464+
"source_path_from_root": "/azure-sql/managed-instance/managed-instance-link-use-ssms-to-failover-database.md",
465+
"redirect_url": "/azure/azure-sql/managed-instance/managed-instance-link-configure-how-to-ssms",
466+
"redirect_document_id": false
467+
},
468+
{
469+
"source_path_from_root": "/azure-sql/managed-instance/managed-instance-link-use-scripts-to-failover-database.md",
470+
"redirect_url": "/azure/azure-sql/managed-instance/managed-instance-link-configure-how-to-scripts",
471+
"redirect_document_id": false
472+
},
473+
{
474+
"source_path_from_root": "/azure-sql/managed-instance/managed-instance-link-use-scripts-to-replicate-database.md",
475+
"redirect_url": "/azure/azure-sql/managed-instance/managed-instance-link-configure-how-to-scripts",
476+
"redirect_document_id": false
477+
},
458478
{
459479
"source_path_from_root": "/azure-sql/database/service-tier-hyperscale-named-replicas-faq.yml",
460480
"redirect_url": "/azure/azure-sql/database/service-tier-hyperscale-frequently-asked-questions-faq#read-scale-out-questions",
@@ -631,8 +651,8 @@
631651
"redirect_document_id": false
632652
},
633653
{
634-
"source_path_from_root": "/azure-sql/database/change-data-capture-overview.md",
635-
"redirect_url": "/sql/relational-databases/track-changes/about-change-data-capture-sql-server",
654+
"source_path_from_root": "/azure-sql/managed-instance/virtual-cluster-delete.md",
655+
"redirect_url": "/azure/azure-sql/managed-instance/virtual-cluster-architecture",
636656
"redirect_document_id": false
637657
}
638658
]

.openpublishing.redirection.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41805,11 +41805,6 @@
4180541805
"redirect_url": "/sql/sql-server/versioning-system-monikers-ui-sql-server",
4180641806
"redirect_document_id": false
4180741807
},
41808-
{
41809-
"source_path_from_root": "/docs/relational-databases/track-changes/known-issues-and-limitations.md",
41810-
"redirect_url": "/sql/relational-databases/track-changes/about-change-data-capture-sql-server",
41811-
"redirect_document_id": false
41812-
},
4181341808
{
4181441809
"source_path": "docs/relational-databases/track-changes/known-issues-resolutions-with-cdc-for-oracle-attunity.md",
4181541810
"redirect_url": "/sql/integration-services/change-data-capture/known-issues-resolutions-with-cdc-for-oracle-attunity",
@@ -41850,6 +41845,11 @@
4185041845
"redirect_url": "/sql/relational-databases/polybase/polybase-guide",
4185141846
"redirect_document_id": false
4185241847
},
41848+
{
41849+
"source_path": "docs/relational-databases/track-changes/known-issues-and-limitations.md",
41850+
"redirect_url": "/sql/relational-databases/track-changes/known-issues-and-errors-change-data-capture",
41851+
"redirect_document_id": false
41852+
},
4185341853
{
4185441854
"source_path": "docs/advanced-analytics/tutorials/walkthrough-prepare-the-data.md",
4185541855
"redirect_url": "/sql/advanced-analytics/tutorials/demo-data-nyctaxi-in-sql",
@@ -59574,6 +59574,11 @@
5957459574
"source_path": "docs/ssdt/release-notes-ssdt.md",
5957559575
"redirect_url": "/sql/ssdt/previous-releases-of-sql-server-data-tools-ssdt-and-ssdt-bi",
5957659576
"redirect_document_id": false
59577+
},
59578+
{
59579+
"source_path": "docs/ssms/f1-help/connect-to-server-database-engine.md",
59580+
"redirect_url": "/sql/ssms/f1-help/connect-to-server-login-page-database-engine",
59581+
"redirect_document_id": false
5957759582
}
5957859583
]
5957959584
}

azure-sql/azure-hybrid-benefit.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,10 @@ SQL Database and SQL Managed Instance customers have the following rights associ
120120

121121
|License footprint|What does Azure Hybrid Benefit for SQL Server get you?|
122122
|---|---|
123-
|SQL Server Enterprise Edition core customers with SA|<li>Can pay base rate on Hyperscale, General Purpose, or Business Critical SKU</li><br><li>One core on-premises = Four vCores in Hyperscale SKU</li><br><li>One core on-premises = Four vCores in General Purpose SKU</li><br><li>One core on-premises = One vCore in Business Critical SKU</li>|
124-
|SQL Server Standard Edition core customers with SA|<li>Can pay base rate on Hyperscale, General Purpose, or Business Critical SKU</li><br><li>One core on-premises = One vCore in Hyperscale SKU</li><br><li>One core on-premises = One vCore in General Purpose SKU</li><br><li>Four cores on-premises = One vCore in Business Critical SKU</li>|
123+
|SQL Server Enterprise Edition core customers with SA|<li>Can pay base rate on Hyperscale, General Purpose, or Business Critical SKU</li><br><li>One core on-premises = Four vCores in Hyperscale SKU<sup>1</sup></li><br><li>One core on-premises = Four vCores in General Purpose SKU</li><br><li>One core on-premises = One vCore in Business Critical SKU</li>|
124+
|SQL Server Standard Edition core customers with SA|<li>Can pay base rate on Hyperscale, General Purpose, or Business Critical SKU</li><br><li>One core on-premises = One vCore in Hyperscale SKU<sup>1</sup></li><br><li>One core on-premises = One vCore in General Purpose SKU</li><br><li>Four cores on-premises = One vCore in Business Critical SKU</li>|
125+
126+
<sup>1</sup> Simplified pricing for SQL Database Hyperscale coming soon. Review the [Hyperscale pricing blog](https://aka.ms/hsignite2023) for details.
125127

126128
## Next steps
127129

azure-sql/database/active-geo-replication-configure-portal.md

Lines changed: 83 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ ms.date: 06/29/2023
88
ms.service: sql-database
99
ms.subservice: high-availability
1010
ms.topic: tutorial
11-
ms.custom:
12-
- sqldbrb=1
13-
- devx-track-azurecli
11+
ms.custom: sqldbrb=1, devx-track-azurecli, ignite-2023, devx-track-azurepowershell
1412
---
1513
# Tutorial: Configure active geo-replication and failover (Azure SQL Database)
1614

@@ -33,6 +31,8 @@ To add a secondary database, you must be the subscription owner or co-owner.
3331
The secondary database has the same name as the primary database and has, by default, the same service tier and compute size. The secondary database can be a single database or a pooled database. For more information, see [DTU-based purchasing model](service-tiers-dtu.md) and [vCore-based purchasing model](service-tiers-vcore.md).
3432
After the secondary is created and seeded, data begins replicating from the primary database to the new secondary database.
3533

34+
If your secondary replica is used _only_ for disaster recovery (DR) and doesn't have any read or write workloads, you can save on licensing costs by designating the database for standby when you configure a new active geo-replication relationship. Review [license-free standby replica](standby-replica-how-to-configure.md) to learn more.
35+
3636
> [!NOTE]
3737
> If the partner database already exists, (for example, as a result of terminating a previous geo-replication relationship) the command fails.
3838
@@ -42,27 +42,27 @@ After the secondary is created and seeded, data begins replicating from the prim
4242

4343
2. On the SQL Database page, select your database, scroll to **Data management**, select **Replicas**, and then select **Create replica**.
4444

45-
:::image type="content" source="./media/active-geo-replication-configure-portal/azure-cli-create-geo-replica.png" alt-text="Configure geo-replication":::
45+
:::image type="content" source="media/active-geo-replication-configure-portal/azure-cli-create-geo-replica.png" alt-text="Screenshot that shows the Configure geo-replication option.":::
4646

4747
3. Select or create the server for the secondary database, and configure the **Compute + storage** options if necessary. You can select any region for your secondary server, but we recommend the [paired region](/azure/availability-zones/cross-region-replication-azure).
4848

49-
:::image type="content" source="./media/active-geo-replication-configure-portal/azure-portal-create-and-configure-replica.png" alt-text="{alt-text}":::
49+
:::image type="content" source="media/active-geo-replication-configure-portal/azure-portal-create-and-configure-replica.png" alt-text="Screenshot that shows the Create and configure replica screen." lightbox="media/active-geo-replication-configure-portal/azure-portal-create-and-configure-replica.png":::
5050

5151
Optionally, you can add a secondary database to an elastic pool. To create the secondary database in a pool, select **Yes** next to **Want to use SQL elastic pool?** and select a pool on the target server. A pool must already exist on the target server. This workflow doesn't create a pool.
5252

5353
4. Click **Review + create**, review the information, and then click **Create**.
5454

5555
5. The secondary database is created and the deployment process begins.
5656

57-
:::image type="content" source="./media/active-geo-replication-configure-portal/azure-portal-geo-replica-deployment.png" alt-text="Screenshot that shows the deployment status of the secondary database.":::
57+
:::image type="content" source="media/active-geo-replication-configure-portal/azure-portal-geo-replica-deployment.png" alt-text="Screenshot that shows the deployment status of the secondary database." lightbox="media/active-geo-replication-configure-portal/azure-portal-geo-replica-deployment.png":::
5858

5959
6. When the deployment is complete, the secondary database displays its status.
6060

61-
:::image type="content" source="./media/active-geo-replication-configure-portal/azure-portal-sql-database-secondary-status.png" alt-text="Screenshot that shows the secondary database status after deployment.":::
61+
:::image type="content" source="media/active-geo-replication-configure-portal/azure-portal-sql-database-secondary-status.png" alt-text="Screenshot that shows the secondary database status after deployment." lightbox="media/active-geo-replication-configure-portal/azure-portal-sql-database-secondary-status.png":::
6262

6363
7. Return to the primary database page, and then select **Replicas**. Your secondary database is listed under **Geo replicas**.
6464

65-
:::image type="content" source="./media/active-geo-replication-configure-portal/azure-sql-db-geo-replica-list.png" alt-text="Screenshot that shows the SQL database primary and geo replicas.":::
65+
:::image type="content" source="media/active-geo-replication-configure-portal/azure-sql-db-geo-replica-list.png" alt-text="Screenshot that shows the SQL database primary and geo replicas.":::
6666

6767
# [Azure CLI](#tab/azure-cli)
6868

@@ -152,7 +152,7 @@ The secondary database can be switched to become the primary.
152152
2. Scroll to **Data management**, and then select **Replicas**.
153153
3. In the **Geo replicas** list, select the database you want to become the new primary, select the ellipsis, and then select **Forced failover**.
154154

155-
:::image type="content" source="./media/active-geo-replication-configure-portal/azure-portal-select-forced-failover.png" alt-text="Screenshot that shows selecting forced failover from the drop-down.":::
155+
:::image type="content" source="media/active-geo-replication-configure-portal/azure-portal-select-forced-failover.png" alt-text="Screenshot that shows selecting forced failover from the drop-down." lightbox="media/active-geo-replication-configure-portal/azure-portal-select-forced-failover.png":::
156156
4. Select **Yes** to begin the failover.
157157

158158
# [Azure CLI](#tab/azure-cli)
@@ -226,8 +226,82 @@ Remove-AzSqlDatabaseSecondary @parameters
226226

227227
---
228228

229+
## Cross-subscription geo-replication
230+
231+
Use Transact-SQL (T-SQL) create a geo-secondary in a subscription different from the subscription of the primary (whether under the same tenant of Microsoft Entra ID ([formerly Azure Active Directory](/azure/active-directory/fundamentals/new-name)) or not), follow the steps in this section.
232+
233+
1. Add the IP address of the client machine executing the T-SQL commands in this example, to the server firewalls of **both** the primary and secondary servers. You can confirm that IP address by executing the following query while connected to the primary server from the same client machine.
234+
235+
```sql
236+
select client_net_address from sys.dm_exec_connections where session_id = @@SPID;
237+
```
238+
239+
For more information, see [Configure firewall](firewall-configure.md).
240+
241+
2. In the `master` database on the **primary** server, create a SQL authentication login dedicated to active geo-replication setup. Adjust login name and password as needed.
242+
243+
```sql
244+
create login geodrsetup with password = 'ComplexPassword01';
245+
```
246+
247+
3. In the same database, create a user for the login, and add it to the `dbmanager` role:
248+
249+
```sql
250+
create user geodrsetup for login geodrsetup;
251+
alter role dbmanager add member geodrsetup;
252+
```
253+
254+
4. Take note of the SID value of the new login. Obtain the SID value using the following query.
255+
256+
```sql
257+
select sid from sys.sql_logins where name = 'geodrsetup';
258+
```
259+
260+
5. Connect to the **primary** database (not the `master` database), and create a user for the same login.
261+
262+
```sql
263+
create user geodrsetup for login geodrsetup;
264+
```
265+
266+
6. In the same database, add the user to the `db_owner` role.
267+
268+
```sql
269+
alter role db_owner add member geodrsetup;
270+
```
271+
272+
7. In the `master` database on the **secondary** server, create the same login as on the primary server, using the same name, password, and SID. Replace the hexadecimal SID value in the sample command below with the one obtained in Step 4.
273+
274+
```sql
275+
create login geodrsetup with password = 'ComplexPassword01', sid=0x010600000000006400000000000000001C98F52B95D9C84BBBA8578FACE37C3E;
276+
```
277+
278+
8. In the same database, create a user for the login, and add it to the `dbmanager` role.
279+
280+
```sql
281+
create user geodrsetup for login geodrsetup;
282+
alter role dbmanager add member geodrsetup;
283+
```
284+
285+
9. Connect to the `master` database on the **primary** server using the new `geodrsetup` login, and initiate geo-secondary creation on the secondary server. Adjust database name and secondary server name as needed. Once the command is executed, you can monitor geo-secondary creation by querying the [sys.dm_geo_replication_link_status](/sql/relational-databases/system-dynamic-management-views/sys-dm-geo-replication-link-status-azure-sql-database) view in the **primary** database, and the [sys.dm_operation_status](/sql/relational-databases/system-dynamic-management-views/sys-dm-operation-status-azure-sql-database) view in the `master` database on the **primary** server. The time needed to create a geo-secondary depends on the primary database size.
286+
287+
```sql
288+
alter database [dbrep] add secondary on server [servername];
289+
```
290+
291+
10. After the geo-secondary is successfully created, the users, logins, and firewall rules created by this procedure can be removed.
292+
293+
> [!NOTE]
294+
> Cross-subscription geo-replication operations including setup and geo-failover are only supported using REST API & T-SQL commands.
295+
>
296+
> Adding a geo-secondary using T-SQL is not supported when connecting to the primary server over a [private endpoint](private-endpoint-overview.md). If a private endpoint is configured but public network access is allowed, adding a geo-secondary is supported when connected to the primary server from a public IP address. Once a geo-secondary is added, [public network access can be denied](connectivity-settings.md#deny-public-network-access).
297+
>
298+
> Creating a geo-secondary on a logical server in a different Microsoft Entra tenant is not supported when [Microsoft Entra-only authentication](authentication-azure-ad-only-authentication.md) is enabled on either primary or secondary logical server.
299+
300+
301+
229302
## Next steps
230303

231304
* To learn more about active geo-replication, see [active geo-replication](active-geo-replication-overview.md).
232305
* To learn about auto-failover groups, see [Auto-failover groups](auto-failover-group-sql-db.md)
233306
* For a business continuity overview and scenarios, see [Business continuity overview](business-continuity-high-availability-disaster-recover-hadr-overview.md).
307+
* Save on licensing costs by designating your secondary DR replica for [standby](standby-replica-how-to-configure.md).

0 commit comments

Comments
 (0)