Skip to content

Commit 81cda1a

Browse files
[Monitor] ScheduledQueryRule to autogen (#19240)
* Move Monitor to Az.Monitor-preview * remove handcrafted scheduledqueryrule * suppress breaking change/signature issues * update breakingchange issues * fix examples Co-authored-by: azure-powershell-bot <[email protected]>
1 parent f438f65 commit 81cda1a

File tree

344 files changed

+46464
-7633
lines changed

Some content is hidden

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

344 files changed

+46464
-7633
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2+
"node": "v14.15.5",
3+
"autorest": "`-- (empty)",
24
"autorest_powershell": "3.0.493",
35
"autorest_modelerfour": "4.15.414",
4-
"swagger_commit": "064075fdb4ff24983174f051294faaf1dfdbe3e9",
5-
"node": "v14.15.5",
6-
"autorest_core": "3.9.1",
7-
"autorest": "`-- (empty)"
6+
"swagger_commit": "f842bc69f4c215ad60ffae63ef517c201772f8b2",
7+
"autorest_core": "3.9.1"
88
}

src/Monitor/DiagnosticSetting.Autorest/docs/Az.DiagnosticSetting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.DiagnosticSetting
3-
Module Guid: c11ea721-aa40-4e84-be10-964116c5e719
3+
Module Guid: e248d606-0810-4372-aa6a-855ef20e96a4
44
Download Help Link: https://docs.microsoft.com/powershell/module/az.diagnosticsetting
55
Help Version: 1.0.0.0
66
Locale: en-US

src/Monitor/DiagnosticSetting.Autorest/docs/New-AzSubscriptionDiagnosticSetting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Creates or updates subscription diagnostic settings for the specified resource.
2828
```powershell
2929
$subscriptionId = (Get-AzContext).SubscriptionId
3030
$log = @()
31-
$log += New-AzSubscriptionLogSettingsObject -Category Recommendation $Enabled $true
32-
New-AzsubscriptionDiagnosticSetting -Name test-setting -WorkspaceId /subscriptions/$subscriptionId/resourcegroups/test-rg-name/providers/microsoft.operationalinsights/workspaces/test-workspace -Log $log
31+
$log += New-AzSubscriptionLogSettingsObject -Category Recommendation -Enabled $true
32+
New-AzSubscriptionDiagnosticSetting -Name test-setting -WorkspaceId /subscriptions/$subscriptionId/resourcegroups/test-rg-name/providers/microsoft.operationalinsights/workspaces/test-workspace -Log $log
3333
```
3434

3535
Create diagnostic setting for current subscription

src/Monitor/DiagnosticSetting.Autorest/docs/New-AzSubscriptionLogSettingsObject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Create an in-memory object for SubscriptionLogSettings.
2424

2525
### Example 1: Create subscription log setting object
2626
```powershell
27-
New-AzSubscriptionLogSettingsObject -Category Recommendation $Enabled $true
27+
New-AzSubscriptionLogSettingsObject -Category Recommendation -Enabled $true
2828
```
2929

3030
Create subscription log setting object, to get supported categories for resource, please see `Get-AzEventCategory`

src/Monitor/DiagnosticSetting.Autorest/examples/New-AzSubscriptionDiagnosticSetting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
```powershell
33
$subscriptionId = (Get-AzContext).SubscriptionId
44
$log = @()
5-
$log += New-AzSubscriptionLogSettingsObject -Category Recommendation $Enabled $true
6-
New-AzsubscriptionDiagnosticSetting -Name test-setting -WorkspaceId /subscriptions/$subscriptionId/resourcegroups/test-rg-name/providers/microsoft.operationalinsights/workspaces/test-workspace -Log $log
5+
$log += New-AzSubscriptionLogSettingsObject -Category Recommendation -Enabled $true
6+
New-AzSubscriptionDiagnosticSetting -Name test-setting -WorkspaceId /subscriptions/$subscriptionId/resourcegroups/test-rg-name/providers/microsoft.operationalinsights/workspaces/test-workspace -Log $log
77
```
88

99
Create diagnostic setting for current subscription

src/Monitor/DiagnosticSetting.Autorest/examples/New-AzSubscriptionLogSettingsObject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Example 1: Create subscription log setting object
22
```powershell
3-
New-AzSubscriptionLogSettingsObject -Category Recommendation $Enabled $true
3+
New-AzSubscriptionLogSettingsObject -Category Recommendation -Enabled $true
44
```
55

66
Create subscription log setting object, to get supported categories for resource, please see `Get-AzEventCategory`

src/Monitor/DiagnosticSetting.Autorest/exports/New-AzSubscriptionDiagnosticSetting.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Creates or updates subscription diagnostic settings for the specified resource.
2222
.Example
2323
$subscriptionId = (Get-AzContext).SubscriptionId
2424
$log = @()
25-
$log += New-AzSubscriptionLogSettingsObject -Category Recommendation $Enabled $true
26-
New-AzsubscriptionDiagnosticSetting -Name test-setting -WorkspaceId /subscriptions/$subscriptionId/resourcegroups/test-rg-name/providers/microsoft.operationalinsights/workspaces/test-workspace -Log $log
25+
$log += New-AzSubscriptionLogSettingsObject -Category Recommendation -Enabled $true
26+
New-AzSubscriptionDiagnosticSetting -Name test-setting -WorkspaceId /subscriptions/$subscriptionId/resourcegroups/test-rg-name/providers/microsoft.operationalinsights/workspaces/test-workspace -Log $log
2727
2828
.Outputs
2929
Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.ISubscriptionDiagnosticSettingsResource

src/Monitor/DiagnosticSetting.Autorest/exports/New-AzSubscriptionLogSettingsObject.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Create an in-memory object for SubscriptionLogSettings.
2020
.Description
2121
Create an in-memory object for SubscriptionLogSettings.
2222
.Example
23-
New-AzSubscriptionLogSettingsObject -Category Recommendation $Enabled $true
23+
New-AzSubscriptionLogSettingsObject -Category Recommendation -Enabled $true
2424
2525
.Outputs
2626
Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.SubscriptionLogSettings

src/Monitor/DiagnosticSetting.Autorest/exports/ProxyCmdletDefinitions.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -937,8 +937,8 @@ Creates or updates subscription diagnostic settings for the specified resource.
937937
.Example
938938
$subscriptionId = (Get-AzContext).SubscriptionId
939939
$log = @()
940-
$log += New-AzSubscriptionLogSettingsObject -Category Recommendation $Enabled $true
941-
New-AzsubscriptionDiagnosticSetting -Name test-setting -WorkspaceId /subscriptions/$subscriptionId/resourcegroups/test-rg-name/providers/microsoft.operationalinsights/workspaces/test-workspace -Log $log
940+
$log += New-AzSubscriptionLogSettingsObject -Category Recommendation -Enabled $true
941+
New-AzSubscriptionDiagnosticSetting -Name test-setting -WorkspaceId /subscriptions/$subscriptionId/resourcegroups/test-rg-name/providers/microsoft.operationalinsights/workspaces/test-workspace -Log $log
942942
943943
.Outputs
944944
Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.ISubscriptionDiagnosticSettingsResource
@@ -1757,7 +1757,7 @@ Create an in-memory object for SubscriptionLogSettings.
17571757
.Description
17581758
Create an in-memory object for SubscriptionLogSettings.
17591759
.Example
1760-
New-AzSubscriptionLogSettingsObject -Category Recommendation $Enabled $true
1760+
New-AzSubscriptionLogSettingsObject -Category Recommendation -Enabled $true
17611761
17621762
.Outputs
17631763
Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.SubscriptionLogSettings
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2+
"node": "v14.15.5",
3+
"autorest": "`-- (empty)",
24
"autorest_powershell": "3.0.493",
35
"autorest_modelerfour": "4.15.414",
4-
"swagger_commit": "3c3cd8ea0e268df727e4f577829ec9a33b4876e5",
5-
"node": "v14.15.5",
6-
"autorest_core": "3.9.1",
7-
"autorest": "`-- (empty)"
6+
"swagger_commit": "f842bc69f4c215ad60ffae63ef517c201772f8b2",
7+
"autorest_core": "3.9.1"
88
}

0 commit comments

Comments
 (0)