Skip to content

Commit e230ae7

Browse files
MashaMSFTPhilKang0704sasapoporwestMSFTPiJoCoder
authored
Ignite 2023 ship room - Azure SQL - 912639 (sql-docs-pr) (#29003)
* Merging main into release branch (#28757) * SQL MI DB copy move doc with operation speed details. * Add note on not copying database tags. * Fix bullets for backup article * October 2023 GDR * Known issue section * minor * Fixes suggested by acrolinx. * Fixes suggested by acrolinx. * Update sql-database-vulnerability-assessment-storage.md Updated prereqs * Update sql-database-vulnerability-assessment-storage.md Updated prereqs * Update sql-database-vulnerability-assessment-storage.md Updated prereqs * Update private link image and steps * Fixing cert typo Fixes https://github.com/MicrosoftDocs/azure-docs/issues/112911 * acro * Fix Acrolinx error * Replace CONCAT_WS with CONCAT in syntax example for CONCAT (#9406) * Add imports to Python Azure SQL guide * making a few fixes (#28754) --------- Co-authored-by: Phil <v-jiakan@microsoft.com> Co-authored-by: Sasa Popovic <sasapopo@microsoft.com> Co-authored-by: Randolph West MSFT <97149825+rwestMSFT@users.noreply.github.com> Co-authored-by: JosephPilov-MSFT <23519517+PiJoCoder@users.noreply.github.com> Co-authored-by: prmerger-automator[bot] <40007230+prmerger-automator[bot]@users.noreply.github.com> Co-authored-by: Catalin Esanu <106605928+CESANU@users.noreply.github.com> Co-authored-by: VanMSFT <40007119+VanMSFT@users.noreply.github.com> Co-authored-by: Dennis Rea <v-denrea@microsoft.com> Co-authored-by: David Wales <daviewales@disroot.org> Co-authored-by: Scott Addie <scott.addie@microsoft.com> Co-authored-by: Shilpa Sharma <v-shils@microsoft.com> * Merging main into release branch (#28820) * Update permissions-database-engine.md clearer sentence * clarify RT purpose --------- Co-authored-by: Andreas Wolter <47007612+AndreasWolter@users.noreply.github.com> Co-authored-by: prmerger-automator[bot] <40007230+prmerger-automator[bot]@users.noreply.github.com> Co-authored-by: zoran-rilak-msft <81432157+zoran-rilak-msft@users.noreply.github.com> * Merging main into release branch (#28939) * Review data compression content and include issue 7800 * Fix typo on create external data source * [BULK UPDATE] DocuTune - Add ms.custom tags for horizontals * Linux article refresh, including updated external links * Fix spacing and version number in Linux articles * Update string-split-transact-sql.md Added clarification and improved sentence structure to improve version compatibility clarity. * Refresh STRING_SPLIT article and include PR 9458 --------- Co-authored-by: Phil <v-jiakan@microsoft.com> Co-authored-by: Randolph West MSFT <97149825+rwestMSFT@users.noreply.github.com> Co-authored-by: prmerger-automator[bot] <40007230+prmerger-automator[bot]@users.noreply.github.com> Co-authored-by: Sergio Govoni <segovoni@gmail.com> Co-authored-by: dbradish-microsoft <dbradish@microsoft.com> Co-authored-by: Tracey Torble <56347952+ttorble@users.noreply.github.com> Co-authored-by: DrDallas <62620251+DrDallas@users.noreply.github.com> Co-authored-by: Regan Downer <v-rdowner@microsoft.com> * 20231030 Hyperscale elastic pool premium-series hardware preview * added disaster recovery link information (#27391) editing things consolding content in end to end scenarios fixing things fixing things a few more changes clarified language around SQL MI link typo fixing a few things processing suggestions, updating images, etc updating more things testing double tabs tryna fix tabs nested tabs maybe trying to fix tabs trying more updating script article Update managed-instance-link-configure-how-to-scripts.md Attempting to unwind tabs. fixing things added troubleshooting section and updated image fixing things fixing a few things fixing a few more things fixing bookmarks fixing dashboard info fixing anchors changes based on feedback updating based on mladen's comment more of mladen's changes fixing another azure backup mention Apply suggestions from code review Co-authored-by: Mladen Andzic (Msft) <mlandzic@microsoft.com> typo fixing blocking issues * Removing the preview label for SQL MI database copy move article. (#28889) * Introducing machine groups under VC (#28822) Updated DNS refresh article Removed VC deletion Subnet delegation update for one VC mention Removed VC from cross-region move article VC is automatically deleted with last instance removal, therefore this was not needed anymore. Adjuster VC wording in MW article Since we are changing system architecture from multiple VC to one VC per subnet, we need to adjust terminology where VC now can consist of multiple machine groups that together form a virtual cluster. Adjusted VC machine group content in FAQ Only one paragraph change so it mentions machine group change Added virtual cluster architecture article.md Combine content from couple of articles and create entry point for all VC related concepts. Added VC architecture image Create temp.md Added VC arch image to proper folder Removed temp file for folder creation VC architecture adjustments Replaced image, fixed API url and article title. VC architecture content Added management operations, ip address usage, and DNS synchronization content. Refreshed VC architecture image VC architecture Minor adjustments Delete azure-sql/managed-instance/virtual-cluster-delete.md Deleted article. Should be redirected to /virtual-cluster-architecture#delete-a-subnet-after-deleting-an-azure-sql-managed-instance Added redirection for virtual cluster removal article Update toc.yml Added VC architecture. Removed VC delete. updated link to "subnet delete" in ARM template example updated link to "subnet delete" in subnet delegation Update connectivity-architecture-overview.md Apply suggestions from code review Co-authored-by: Masha Thomas (MSFT) <32783170+MashaMSFT@users.noreply.github.com> Linux article refresh, including updated external links Update resolve-private-domain-names.md Update maintenance-window.md Update vnet-subnet-move-instance.md Update maintenance-window.md Update frequently-asked-questions-faq.yml Update management-operations-overview.md Update vnet-subnet-determine-size.md Update subnet-service-aided-configuration-enable.md Some acrolink suggestions. fixing toc and redirection editing new vc article Apply suggestions from code review committing suggestions fixing things Apply suggestions from code review removing extra image switching the management operations overview article added new images fixing blocking issues fixing image name fixing sups * Removing preview label from SQL MI DTC article. (#28887) * Instance stop/start GA (#28658) Update instance-stop-start-how-to.md Added PS and CLI for manual start-stop Update instance-stop-start-how-to.md Fixed tabs Apply suggestions from code review Update instance-stop-start-how-to.md Update instance-stop-start-how-to.md Polished scripts for manual start/stop. Prep for updating schedule section. Update instance-stop-start-how-to.md Added powershell examples for schedule Update instance-stop-start-how-to.md Added cli examples for schedule SQL MI stop/start GA fixing tab addressing blocking issues resetting whats new Co-authored-by: Uros Milanovic (MSFT) <urmilano@microsoft.com> * Ledger in MI - GA (#28743) fixing blocking issues * VBS-GA-Release (#28278) VBS-GA-Release Enable enclave wizard changes Resolve warnings Update azure-sql/database/always-encrypted-enclaves-configure-attestation.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update azure-sql/database/always-encrypted-enclaves-enable.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update azure-sql/database/always-encrypted-enclaves-enable.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update azure-sql/database/always-encrypted-enclaves-enable.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update azure-sql/database/always-encrypted-enclaves-enable.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update azure-sql/database/always-encrypted-enclaves-enable.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update azure-sql/database/always-encrypted-enclaves-enable.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update azure-sql/database/always-encrypted-enclaves-enable.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update azure-sql/database/always-encrypted-enclaves-enable.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update azure-sql/database/always-encrypted-enclaves-enable.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update azure-sql/database/always-encrypted-enclaves-enable.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update azure-sql/database/always-encrypted-enclaves-enable.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update azure-sql/database/always-encrypted-enclaves-getting-started-vbs.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update azure-sql/database/always-encrypted-enclaves-getting-started-vbs.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update azure-sql/database/always-encrypted-enclaves-getting-started-vbs.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update azure-sql/database/always-encrypted-enclaves-getting-started-vbs.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update docs/relational-databases/security/encryption/always-encrypted-enclaves-query-columns.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update docs/relational-databases/security/encryption/always-encrypted-enclaves.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> Update docs/relational-databases/security/encryption/configure-always-encrypted-enclaves.md Co-authored-by: Van To <40007119+VanMSFT@users.noreply.github.com> VBS enclaves preview annotation VBS enclaves remove preview fixing blocking issues * Multi-AZ GA adjustments (#28777) * Improving HA article for M-AZ Removing preview term + minor content adjustments Adjusted SLA value so it matches SLA doc Adding zone-redundancy change to management operations Apply suggestions from code review comitting suggestions from review addressing blocking issues * Update management-operations-overview.md fixing table --------- Co-authored-by: Masha Thomas (MSFT) <32783170+MashaMSFT@users.noreply.github.com> * Staging draft for standby replica (#28665) cross-linking fixing warnings rewriting for clarity Apply suggestions from code review rajesh's suggestions Co-authored-by: rajeshsetlem <25328917+rajeshsetlem@users.noreply.github.com> fixing a few things adding limitation fixing blocking issues resetting doc changes article * combined whats new information for ignite (#28794) fixing broken bookmark fixing typo added hs pricing note updated language fixing whats new fixing more things updating hs pricing note fixing a few things fixing more things fixing things adding virtual cluster link Apply suggestions from code review committing william's suggestions Co-authored-by: William Assaf MSFT <74387232+WilliamDAssafMSFT@users.noreply.github.com> merging in william's changes Feature Wave GA and rollout adjustments (#15) * Update november-2022-feature-wave-enroll.md - Adjusted content so it reflects current rollout state - Removed "self-migrate" section, since it can result with missconfiguration. * Update frequently-asked-questions-faq.yml Adjusted FAQ section updating feature wave stuff fixing things typo fixing a few more things updating instance move info added fast provisioning info fixing blocking issues --------- Co-authored-by: Phil <v-jiakan@microsoft.com> Co-authored-by: Sasa Popovic <sasapopo@microsoft.com> Co-authored-by: Randolph West MSFT <97149825+rwestMSFT@users.noreply.github.com> Co-authored-by: JosephPilov-MSFT <23519517+PiJoCoder@users.noreply.github.com> Co-authored-by: prmerger-automator[bot] <40007230+prmerger-automator[bot]@users.noreply.github.com> Co-authored-by: Catalin Esanu <106605928+CESANU@users.noreply.github.com> Co-authored-by: VanMSFT <40007119+VanMSFT@users.noreply.github.com> Co-authored-by: Dennis Rea <v-denrea@microsoft.com> Co-authored-by: David Wales <daviewales@disroot.org> Co-authored-by: Scott Addie <scott.addie@microsoft.com> Co-authored-by: Shilpa Sharma <v-shils@microsoft.com> Co-authored-by: Alma Jenks <v-alje@microsoft.com> Co-authored-by: Andreas Wolter <47007612+AndreasWolter@users.noreply.github.com> Co-authored-by: zoran-rilak-msft <81432157+zoran-rilak-msft@users.noreply.github.com> Co-authored-by: Sergio Govoni <segovoni@gmail.com> Co-authored-by: dbradish-microsoft <dbradish@microsoft.com> Co-authored-by: Tracey Torble <56347952+ttorble@users.noreply.github.com> Co-authored-by: DrDallas <62620251+DrDallas@users.noreply.github.com> Co-authored-by: Regan Downer <v-rdowner@microsoft.com> Co-authored-by: WilliamDAssafMSFT <74387232+WilliamDAssafMSFT@users.noreply.github.com> Co-authored-by: Uros Milanovic (MSFT) <urmilano@microsoft.com> Co-authored-by: Pieter Vanhove <pieter.vanhove@microsoft.com> Co-authored-by: Diana Richards <103777760+v-dirichards@users.noreply.github.com>
1 parent 04f940b commit e230ae7

File tree

107 files changed

+3244
-2393
lines changed

Some content is hidden

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

107 files changed

+3244
-2393
lines changed

.openpublishing.redirection.azure-sql.json

+25
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",
@@ -629,6 +649,11 @@
629649
"source_path_from_root": "/azure-sql/database/authentication-mfa-ssms-configure.md",
630650
"redirect_url": "/azure/azure-sql/database/authentication-mfa-ssms-overview",
631651
"redirect_document_id": false
652+
},
653+
{
654+
"source_path_from_root": "/azure-sql/managed-instance/virtual-cluster-delete.md",
655+
"redirect_url": "/azure/azure-sql/managed-instance/virtual-cluster-architecture",
656+
"redirect_document_id": false
632657
}
633658
]
634659
}

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

+76
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ To add a secondary database, you must be the subscription owner or co-owner.
3333
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).
3434
After the secondary is created and seeded, data begins replicating from the primary database to the new secondary database.
3535

36+
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.
37+
3638
> [!NOTE]
3739
> If the partner database already exists, (for example, as a result of terminating a previous geo-replication relationship) the command fails.
3840
@@ -226,8 +228,82 @@ Remove-AzSqlDatabaseSecondary @parameters
226228

227229
---
228230

231+
## Cross-subscription geo-replication
232+
233+
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.
234+
235+
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.
236+
237+
```sql
238+
select client_net_address from sys.dm_exec_connections where session_id = @@SPID;
239+
```
240+
241+
For more information, see [Configure firewall](firewall-configure.md).
242+
243+
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.
244+
245+
```sql
246+
create login geodrsetup with password = 'ComplexPassword01';
247+
```
248+
249+
3. In the same database, create a user for the login, and add it to the `dbmanager` role:
250+
251+
```sql
252+
create user geodrsetup for login geodrsetup;
253+
alter role dbmanager add member geodrsetup;
254+
```
255+
256+
4. Take note of the SID value of the new login. Obtain the SID value using the following query.
257+
258+
```sql
259+
select sid from sys.sql_logins where name = 'geodrsetup';
260+
```
261+
262+
5. Connect to the **primary** database (not the `master` database), and create a user for the same login.
263+
264+
```sql
265+
create user geodrsetup for login geodrsetup;
266+
```
267+
268+
6. In the same database, add the user to the `db_owner` role.
269+
270+
```sql
271+
alter role db_owner add member geodrsetup;
272+
```
273+
274+
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.
275+
276+
```sql
277+
create login geodrsetup with password = 'ComplexPassword01', sid=0x010600000000006400000000000000001C98F52B95D9C84BBBA8578FACE37C3E;
278+
```
279+
280+
8. In the same database, create a user for the login, and add it to the `dbmanager` role.
281+
282+
```sql
283+
create user geodrsetup for login geodrsetup;
284+
alter role dbmanager add member geodrsetup;
285+
```
286+
287+
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.
288+
289+
```sql
290+
alter database [dbrep] add secondary on server [servername];
291+
```
292+
293+
10. After the geo-secondary is successfully created, the users, logins, and firewall rules created by this procedure can be removed.
294+
295+
> [!NOTE]
296+
> Cross-subscription geo-replication operations including setup and geo-failover are only supported using REST API & T-SQL commands.
297+
>
298+
> 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).
299+
>
300+
> 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.
301+
302+
303+
229304
## Next steps
230305

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

0 commit comments

Comments
 (0)