Skip to content

Commit 403abe5

Browse files
Migrate Monitor from generation to main (#21743)
* Move Monitor to main * update changelog * generate UX folder --------- Co-authored-by: Jinpei Li <[email protected]>
1 parent 3b6b14b commit 403abe5

File tree

472 files changed

+50791
-269
lines changed

Some content is hidden

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

472 files changed

+50791
-269
lines changed

src/Monitor/ActivityLogAlert.Autorest/build-module.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ $null = New-Item -ItemType Directory -Force -Path $examplesFolder
123123

124124
Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
125125
$modelCmdlets = @('AlertRuleAnyOfOrLeafCondition', 'AlertRuleLeafCondition', 'ActionGroup')
126+
$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets'
127+
if (Test-Path $modelCmdletFolder) {
128+
$null = Remove-Item -Force -Recurse -Path $modelCmdletFolder
129+
}
126130
if ($modelCmdlets.Count -gt 0) {
127131
. (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1')
128132
CreateModelCmdlet($modelCmdlets)

src/Monitor/ActivityLogAlert.Autorest/docs/Get-AzActivityLogAlert.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ Get activity log alert by name
6464
## PARAMETERS
6565

6666
### -DefaultProfile
67-
The credentials, account, tenant, and subscription used for communication with Azure.
67+
The DefaultProfile parameter is not functional.
68+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
6869

6970
```yaml
7071
Type: System.Management.Automation.PSObject

src/Monitor/ActivityLogAlert.Autorest/docs/Remove-AzActivityLogAlert.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ Remove activity log alert by pipeline input object
4747
## PARAMETERS
4848

4949
### -DefaultProfile
50-
The credentials, account, tenant, and subscription used for communication with Azure.
50+
The DefaultProfile parameter is not functional.
51+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
5152

5253
```yaml
5354
Type: System.Management.Automation.PSObject

src/Monitor/ActivityLogAlert.Autorest/exports/Get-AzActivityLogAlert.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ param(
8383
[ValidateNotNull()]
8484
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Azure')]
8585
[System.Management.Automation.PSObject]
86-
# The credentials, account, tenant, and subscription used for communication with Azure.
86+
# The DefaultProfile parameter is not functional.
87+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
8788
${DefaultProfile},
8889

8990
[Parameter(DontShow)]
@@ -135,7 +136,7 @@ begin {
135136
$parameterSet = $PSCmdlet.ParameterSetName
136137

137138
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
138-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
139+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
139140
}
140141
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
141142
if ($preTelemetryId -eq '') {

src/Monitor/ActivityLogAlert.Autorest/exports/New-AzActivityLogAlert.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ begin {
188188
$parameterSet = $PSCmdlet.ParameterSetName
189189

190190
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
191-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
191+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
192192
}
193193
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
194194
if ($preTelemetryId -eq '') {

src/Monitor/ActivityLogAlert.Autorest/exports/New-AzActivityLogAlertActionGroupObject.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ begin {
6363
$parameterSet = $PSCmdlet.ParameterSetName
6464

6565
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
66-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
66+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
6767
}
6868
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
6969
if ($preTelemetryId -eq '') {

src/Monitor/ActivityLogAlert.Autorest/exports/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ begin {
7979
$parameterSet = $PSCmdlet.ParameterSetName
8080

8181
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
82-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
82+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
8383
}
8484
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
8585
if ($preTelemetryId -eq '') {

src/Monitor/ActivityLogAlert.Autorest/exports/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ begin {
6060
$parameterSet = $PSCmdlet.ParameterSetName
6161

6262
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
63-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
63+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
6464
}
6565
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
6666
if ($preTelemetryId -eq '') {

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

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ param(
8383
[ValidateNotNull()]
8484
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Azure')]
8585
[System.Management.Automation.PSObject]
86-
# The credentials, account, tenant, and subscription used for communication with Azure.
86+
# The DefaultProfile parameter is not functional.
87+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
8788
${DefaultProfile},
8889

8990
[Parameter(DontShow)]
@@ -135,7 +136,7 @@ begin {
135136
$parameterSet = $PSCmdlet.ParameterSetName
136137

137138
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
138-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
139+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
139140
}
140141
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
141142
if ($preTelemetryId -eq '') {
@@ -271,7 +272,8 @@ param(
271272
[ValidateNotNull()]
272273
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Azure')]
273274
[System.Management.Automation.PSObject]
274-
# The credentials, account, tenant, and subscription used for communication with Azure.
275+
# The DefaultProfile parameter is not functional.
276+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
275277
${DefaultProfile},
276278

277279
[Parameter(DontShow)]
@@ -329,7 +331,7 @@ begin {
329331
$parameterSet = $PSCmdlet.ParameterSetName
330332

331333
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
332-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
334+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
333335
}
334336
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
335337
if ($preTelemetryId -eq '') {
@@ -572,7 +574,7 @@ begin {
572574
$parameterSet = $PSCmdlet.ParameterSetName
573575

574576
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
575-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
577+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
576578
}
577579
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
578580
if ($preTelemetryId -eq '') {
@@ -689,7 +691,7 @@ begin {
689691
$parameterSet = $PSCmdlet.ParameterSetName
690692

691693
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
692-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
694+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
693695
}
694696
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
695697
if ($preTelemetryId -eq '') {
@@ -819,7 +821,7 @@ begin {
819821
$parameterSet = $PSCmdlet.ParameterSetName
820822

821823
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
822-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
824+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
823825
}
824826
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
825827
if ($preTelemetryId -eq '') {
@@ -930,7 +932,7 @@ begin {
930932
$parameterSet = $PSCmdlet.ParameterSetName
931933

932934
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
933-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
935+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
934936
}
935937
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
936938
if ($preTelemetryId -eq '') {
@@ -1127,7 +1129,7 @@ begin {
11271129
$parameterSet = $PSCmdlet.ParameterSetName
11281130

11291131
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
1130-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
1132+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
11311133
}
11321134
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
11331135
if ($preTelemetryId -eq '') {

src/Monitor/ActivityLogAlert.Autorest/exports/Remove-AzActivityLogAlert.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ param(
7979
[ValidateNotNull()]
8080
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Azure')]
8181
[System.Management.Automation.PSObject]
82-
# The credentials, account, tenant, and subscription used for communication with Azure.
82+
# The DefaultProfile parameter is not functional.
83+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
8384
${DefaultProfile},
8485

8586
[Parameter(DontShow)]
@@ -137,7 +138,7 @@ begin {
137138
$parameterSet = $PSCmdlet.ParameterSetName
138139

139140
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
140-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
141+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
141142
}
142143
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
143144
if ($preTelemetryId -eq '') {

0 commit comments

Comments
 (0)