Skip to content

Commit 139cea0

Browse files
20220728 2033 update powershell examples
1 parent 16f6dbb commit 139cea0

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎azure-sql/database/scripts/monitor-and-scale-database-powershell.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.topic: sample
1414
author: WilliamDAssafMSFT
1515
ms.author: wiassaf
1616
ms.reviewer: wiassaf, mathoma
17-
ms.date: 03/12/2019
17+
ms.date: 07/28/2022
1818
---
1919

2020
# Use PowerShell to monitor and scale a single database in Azure SQL Database
@@ -56,7 +56,8 @@ This script uses the following commands. Each command in the table links to comm
5656
| [New-AzSqlServer](/powershell/module/az.sql/new-azsqlserver) | Creates a server that hosts a single database or elastic pool. |
5757
| [Get-AzMetric](/powershell/module/az.monitor/get-azmetric) | Shows the size usage information for the database.|
5858
| [Set-AzSqlDatabase](/powershell/module/az.sql/set-azsqldatabase) | Updates database properties or moves the database into, out of, or between elastic pools. |
59-
| [Add-AzMetricAlertRule](/powershell/module/az.monitor/add-azmetricalertrule) | Sets an alert rule to automatically monitor metrics in the future. |
59+
| [Add-AzMetricAlertRule](/powershell/module/az.monitor/add-azmetricalertrule) | (*Deprecated*) Adds or updates an alert rule to automatically monitor metrics in the future. Applies only to classic metric-based alert rules. |
60+
| [Add-AzMetricAlertRuleV2](/powershell/module/az.monitor/add-azmetricalertruleV2) | Adds or updates an alert rule to automatically monitor metrics in the future. Applies only to non-classic metric-based alert rules. |
6061
| [Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup) | Deletes a resource group including all nested resources. |
6162

6263

‎azure-sql/database/scripts/monitor-and-scale-pool-powershell.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.topic: sample
1414
author: WilliamDAssafMSFT
1515
ms.author: wiassaf
1616
ms.reviewer: wiassaf, mathoma
17-
ms.date: 03/12/2019
17+
ms.date: 07/28/2022
1818
---
1919
# Use PowerShell to monitor and scale an elastic pool in Azure SQL Database
2020
[!INCLUDE[appliesto-sqldb](../../includes/appliesto-sqldb.md)]
@@ -50,9 +50,9 @@ This script uses the following commands. Each command in the table links to comm
5050
| [New-AzSqlElasticPool](/powershell/module/az.sql/new-azsqlelasticpool) | Creates an elastic pool. |
5151
| [New-AzSqlDatabase](/powershell/module/az.sql/new-azsqldatabase) | Creates a database in a server. |
5252
| [Get-AzMetric](/powershell/module/az.monitor/get-azmetric) | Shows the size usage information for the database.|
53-
| [Add-AzMetricAlertRule](/powershell/module/az.monitor/add-azmetricalertrule) | Adds or updates a metric-based alert rule. |
5453
| [Set-AzSqlElasticPool](/powershell/module/az.sql/set-azsqlelasticpool) | Updates elastic pool properties. |
55-
| [Add-AzMetricAlertRule](/powershell/module/az.monitor/add-azmetricalertrule) | Sets an alert rule to automatically monitor metrics in the future. |
54+
| [Add-AzMetricAlertRule](/powershell/module/az.monitor/add-azmetricalertrule) | (*DeprecateD*) Adds or updates an alert rule to automatically monitor metrics in the future. Applies only to classic metric-based alert rules.|
55+
| [Add-AzMetricAlertRuleV2](/powershell/module/az.monitor/add-azmetricalertrulev2) | Adds or updates an alert rule to automatically monitor metrics in the future. Applies only to non-classic metric-based alert rules.|
5656
| [Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup) | Deletes a resource group including all nested resources. |
5757

5858

0 commit comments

Comments
 (0)