Skip to content

Commit 517b7b0

Browse files
committed
Updating documentation about breaking changes.
1 parent 383805f commit 517b7b0

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

src/ResourceManager/Insights/documentation/current-breaking-changes.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,28 @@
117117
write-host "Unit: $s21.Unit"
118118
write-host "Data: $s21.Data"
119119
120+
```
121+
122+
**Add-AzureRmMetricAlert**
123+
**Add-AzureRmWebtestAlert**
124+
- The output of these cmdlets will change from List<PObject> to a single object, not a list, that includes the requestId, status code, and the updated or newly created resource.
125+
126+
```powershell
127+
# Old
128+
129+
$s1 = Add-AzureRmMetricAlertRule -Name chiricutin -Location "West US" -ResourceGroup $resourceGroup -TargetResourceId $resourceId -Operator GreaterThan -Threshold 2 -WindowSize 00:05:00 -MetricName Requests -Description "Pura Vida" -TimeAggre Total -Actions $eMailAction -disab
130+
if ($s1 -ne $null)
131+
{
132+
$r = $s1(0).RequestId
133+
$s = $s1(0).StatusCode
134+
}
135+
136+
# New
137+
$s1 = Add-AzureRmMetricAlertRule -Name chiricutin -Location "West US" -ResourceGroup $resourceGroup -TargetResourceId $resourceId -Operator GreaterThan -Threshold 2 -WindowSize 00:05:00 -MetricName Requests -Description "Pura Vida" -TimeAggre Total -Actions $eMailAction -disab
138+
$r = $s1.RequestId
139+
$s = $s1.StatusCode
140+
$a = $s1.AlertRule
141+
120142
```
121143
122144
## Release X.0.0

src/ResourceManager/Insights/documentation/upcoming-breaking-changes.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,6 @@
3838

3939
**Get-AzureRmUsage**
4040
- This cmdlet will be deprecated.
41-
42-
**Add-AzureRmMetricAlert**
43-
**Add-AzureRmWebtestAlert**
44-
- The output of these cmdlets will change from List<PObject> to a single object, not a list, that includes the requestId, status code, and the updated or newly created resource.
45-
46-
```powershell
47-
# Old
48-
49-
$s1 = Add-AzureRmMetricAlertRule -Name chiricutin -Location "West US" -ResourceGroup $resourceGroup -TargetResourceId $resourceId -Operator GreaterThan -Threshold 2 -WindowSize 00:05:00 -MetricName Requests -Description "Pura Vida" -TimeAggre Total -Actions $eMailAction -disab
50-
if ($s1 -ne $null)
51-
{
52-
$r = $s1(0).RequestId
53-
$s = $s1(0).StatusCode
54-
}
55-
56-
# New
57-
$s1 = Add-AzureRmMetricAlertRule -Name chiricutin -Location "West US" -ResourceGroup $resourceGroup -TargetResourceId $resourceId -Operator GreaterThan -Threshold 2 -WindowSize 00:05:00 -MetricName Requests -Description "Pura Vida" -TimeAggre Total -Actions $eMailAction -disab
58-
$r = $s1.RequestId
59-
$s = $s1.StatusCode
60-
$a = $s1.NewResource
61-
62-
```
6341

6442
**Remove-AzureRmAlertRule**
6543
- The output of these cmdlets will change from list with a single object to a single object, not a list, that includes the requestId, and status code.

0 commit comments

Comments
 (0)