You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure-sql/database/active-geo-replication-configure-portal.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,8 +151,6 @@ This operation permanently stops the replication to the secondary database, and
151
151
1. In the [Azure portal](https://portal.azure.com), browse to the primary database in the geo-replication partnership.
152
152
2. Select **Replicas**.
153
153
3. In the **Geo replicas** list, select the database you want to remove from the geo-replication partnership, select the ellipsis, and then select **Stop replication**.
154
-
155
-
:::image type="content" source="./media/active-geo-replication-configure-portal/azure-portal-select-stop-replication.png" alt-text="Screenshot that shows selecting stop replication from the drop-down.":::
156
154
5. A confirmation window opens. Click **Yes** to remove the database from the geo-replication partnership. (Set it to a read-write database not part of any replication.)
In this article, you will learn how to create, configure, and manage elastic jobs.
18
+
In this article, you'll learn how to create, configure, and manage elastic jobs.
19
19
20
-
If you have not used Elastic jobs, [learn more about the job automation concepts in Azure SQL Database](job-automation-overview.md).
20
+
If you haven't used Elastic jobs, [learn more about the job automation concepts in Azure SQL Database](job-automation-overview.md).
21
21
22
22
## Create and configure the agent
23
23
@@ -46,9 +46,10 @@ Setting up the proper credentials to run a job can be a little confusing, so kee
46
46
47
47
- The database scoped credentials must be created in the *Job database*.
48
48
-**All target databases must have a login with [sufficient permissions](/sql/relational-databases/security/permissions-database-engine) for the job to complete successfully** (`jobuser` in the diagram below).
49
+
- Credentials created in target databases (LOGIN and PASSWORD for `masteruser` and `jobuser` in the subsequent diagram) should match the IDENTITY and SECRET in the credentials created in the Job database.
49
50
- Credentials can be reused across jobs, and the credential passwords are encrypted and secured from users who have read-only access to job objects.
50
51
51
-
The following image is designed to assist in understanding and setting up the proper job credentials. **Remember to create the user in every database (all *target user dbs*) the job needs to run**.
52
+
The following image is designed to help understand setting up the proper job credentials. **Remember to create the user in every database (all *target user dbs*) the job needs to run**.
52
53
53
54

54
55
@@ -58,7 +59,7 @@ A few best practice considerations for working with Elastic Jobs:
58
59
59
60
- Limit usage of the APIs to trusted individuals.
60
61
- Credentials should have the least privileges necessary to perform the job step. For more information, see [Authorization and Permissions](/dotnet/framework/data/adonet/sql/authorization-and-permissions-in-sql-server).
61
-
- When using a server and/or pool target group member, it is highly suggested to create a separate credential with rights on the `master` database to view/list databases that is used to expand the database lists of the server(s) and/or pool(s) prior to the job execution.
62
+
- When using a server and/or pool target group member, it's highly suggested to create a separate credential with rights on the `master` database to view/list databases that is used to expand the database lists of the server(s) and/or pool(s) prior to the job execution.
62
63
63
64
## Agent performance, capacity, and limitations
64
65
@@ -82,18 +83,18 @@ These are the current limitations to the Elastic Jobs service. We're actively w
82
83
| The Elastic Job agent needs to be recreated and started in the new region after a failover/move to a new Azure region. | The Elastic Jobs service stores all its job agent and job metadata in the jobs database. Any failover or move of Azure resources to a new Azure region will also move the jobs database, job agent and jobs metadata to the new Azure region. However, the Elastic Job agent is a compute only resource and needs to be explicitly re-created and started in the new region before jobs will start executing again in the new region. Once started, the Elastic Job agent will resume executing jobs in the new region as per the previously defined job schedule. |
83
84
| Concurrent jobs limit. | Currently, the preview is limited to 100 concurrent jobs. |
84
85
| Excessive Audit logs from Jobs database | The Elastic Job agent operates by constantly polling the Job database to check for the arrival of new jobs and other CRUD operations. If auditing is enabled on the server that houses a Jobs database, a large amount of audit logs may be generated by the Jobs database. This can be mitigated by filtering out these audit logs using the `Set-AzSqlServerAudit` command with a predicate expression.<BR/><BR/>For example:<BR/> `Set-AzSqlServerAudit -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -BlobStorageTargetState Enabled -StorageAccountResourceId "/subscriptions/7fe3301d-31d3-4668-af5e-211a890ba6e3/resourceGroups/resourcegroup01/providers/Microsoft.Storage/storageAccounts/mystorage" -PredicateExpression "database_principal_name <> '##MS_JobAccount##'"`<BR/><BR/>This command will only filter out Job Agent to Jobs database audit logs, not Job Agent to any target databases audit logs.|
85
-
| Private endpoints are not supported | Elastic Job Agents currently cannot connect to Databases and Elastic Pools which restrict connections to private endpoints.|
86
+
| Private endpoints aren't supported | Elastic Job Agents currently can't connect to Databases and Elastic Pools which restrict connections to private endpoints.|
86
87
| Use of a Hyperscale database as *Job database*| Using a Hyperscale database as a *Job database* isn't supported. However, elastic jobs can target Hyperscale databases in the same way as any other database in Azure SQL Database.|
87
-
| Serverless DBs and auto-pausing with Elastic Jobs. | Auto-pause enabled serverless database is not supported as a *Job Database*. Serverless databases targeted by elastic jobs do support auto-pausing, and will be resumed by job connections.
88
+
| Serverless DBs and auto-pausing with Elastic Jobs. | Auto-pause enabled serverless database isn't supported as a *Job Database*. Serverless databases targeted by elastic jobs do support auto-pausing, and will be resumed by job connections.
88
89
89
90
## Best practices for creating jobs
90
91
91
92
Consider the following best practices when working with Elastic Database jobs:
92
93
93
94
### Idempotent scripts
94
-
A job's T-SQL scripts must be [idempotent](https://en.wikipedia.org/wiki/Idempotence). **Idempotent** means that if the script succeeds, and it is run again, the same result occurs. A script may fail due to transient network issues. In that case, the job will automatically retry running the script a preset number of times before desisting. An idempotent script has the same result even if its been successfully run twice (or more).
95
+
A job's T-SQL scripts must be [idempotent](https://en.wikipedia.org/wiki/Idempotence). **Idempotent** means that if the script succeeds, and it's run again, the same result occurs. A script may fail due to transient network issues. In that case, the job will automatically retry running the script a preset number of times before desisting. An idempotent script has the same result even if it's been successfully run twice (or more).
95
96
96
-
A simple tactic is to test for the existence of an object before creating it. A hypothetical example is shown below:
97
+
A simple tactic is to test for the existence of an object before creating it. The following is a hypothetical example:
97
98
98
99
```sql
99
100
IF NOT EXISTS (SELECT*FROMsys.objectsWHERE [name] = N'some_object')
Copy file name to clipboardExpand all lines: azure-sql/database/elastic-pool-manage.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,7 @@ To create and manage SQL Database elastic pools and pooled databases with Azure
51
51
|[Set-AzSqlElasticPool](/powershell/module/az.sql/set-azsqlelasticpool)|Modifies properties of an elastic pool For example, use the **StorageMB** property to modify the max storage of an elastic pool.|
52
52
|[Remove-AzSqlElasticPool](/powershell/module/az.sql/remove-azsqlelasticpool)|Deletes an elastic pool.|
53
53
|[Get-AzSqlElasticPoolActivity](/powershell/module/az.sql/get-azsqlelasticpoolactivity)|Gets the status of operations on an elastic pool|
54
+
|[Stop-AzSqlElasticPoolActivity](/powershell/module/az.sql/stop-azsqlelasticpoolactivity)| Cancels the asynchronous update operation on an elastic pool. |
54
55
|[New-AzSqlDatabase](/powershell/module/az.sql/new-azsqldatabase)|Creates a new database in an existing pool or as a single database. |
55
56
|[Get-AzSqlDatabase](/powershell/module/az.sql/get-azsqldatabase)|Gets one or more databases.|
56
57
|[Set-AzSqlDatabase](/powershell/module/az.sql/set-azsqldatabase)|Sets properties for a database, or moves an existing database into, out of, or between elastic pools.|
Copy file name to clipboardExpand all lines: azure-sql/managed-instance/frequently-asked-questions-faq.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ sections:
43
43
44
44
### What service tier am I eligible for?
45
45
46
-
Any customer is eligible for any service tier. However, if you want to exchange your existing licenses for discounted rates on Azure SQL Managed Instance by using [Azure Hybrid Benefit](https://azure.microsoft.com/pricing/hybrid-benefit/), bear in mind that SQL Server Enterprise Edition customers with Software Assurance are eligible for the [General Purpose](../database/service-tier-general-purpose.md) or [Business Critical](../database/service-tier-business-critical.md) performance tiers and SQL Server Standard Edition customers with Software Assurance are eligible for the General Purpose performance tier only. For more information, see [Specific rights of the AHB](../azure-hybrid-benefit.md?tabs=azure-powershell#what-are-the-specific-rights-of-the-azure-hybrid-benefit-for-sql-server).
46
+
Any customer is eligible for any service tier. Both Standard and Enterprise editions covered with Software Assurance can be exchanged by using the [Azure Hybrid Benefit](../azure-hybrid-benefit.md) for the General Purpose or Business Critical service tier using the following exchange ratios: 1 Standard edition = 1 General Purpose, 1 Enterprise edition = 1 Business Critical, 1 Enterprise edition = 4 General Purpose, and 4 General Purpose = 1 Enterprise Edition. For more information, see [Specific rights of the AHB](../azure-hybrid-benefit.md?tabs=azure-powershell#what-are-the-specific-rights-of-the-azure-hybrid-benefit-for-sql-server).
47
47
48
48
### What subscription types are supported for SQL Managed Instance?
Copy file name to clipboardExpand all lines: azure-sql/managed-instance/recovery-using-backups.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -197,6 +197,15 @@ For business-critical applications that require large databases and must ensure
197
197
198
198
For more information about business continuity choices, see [Overview of business continuity](../database/business-continuity-high-availability-disaster-recover-hadr-overview.md).
199
199
200
+
## Limitations
201
+
202
+
Consider the following limitations when working with backups and Azure SQL Managed Instance:
203
+
204
+
- Geo-restore of a database can only be performed to an instance in the same subscription as the source SQL managed instance.
205
+
- SQL Managed Instance databases can only be [restored to SQL Server 2022](restore-database-to-sql-server.md) (either on-premises, or on a virtual machine) if the source SQL Managed Instance has enrolled in the [November 2022 feature wave](november-2022-feature-wave-enroll.md).
206
+
- SQL Managed Instance databases are encrypted with TDE by default. To restore your database to an instance other than the source SQL Managed Instance, the target instance must have access to the same key in Azure Key Vault used to encrypt the source database, or you must disable TDE encryption on the source database before taking the backup.
Copy file name to clipboardExpand all lines: azure-sql/multi-model-features.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ If you have JSON text, you can extract data from JSON or verify that JSON is pro
66
66
-[OPENJSON](/sql/t-sql/functions/openjson-transact-sql): Can transform an array of JSON objects into a set of rows, for more advanced querying and analysis. Any SQL query can be executed on the returned result set.
67
67
-[FOR JSON](/sql/relational-databases/json/format-query-results-as-json-with-for-json-sql-server): Lets you format data stored in your relational tables as JSON text.
68
68
69
-

69
+

70
70
71
71
For more information, see [How to work with JSON data](database/json-features.md).
0 commit comments