Skip to content

[PS] Migrate MonitorWorkspace in Monitor module to autorest v4 #28186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 17 additions & 14 deletions src/Monitor/Monitor.sln
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Autoscale", "..\..\gener
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DiagnosticSetting", "..\..\generated\Monitor\DiagnosticSetting.Autorest\Az.DiagnosticSetting.csproj", "{32336385-5322-43AC-B6D4-B99CDB5EDA5A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MonitorWorkspace", "..\..\generated\Monitor\MonitorWorkspace.Autorest\Az.MonitorWorkspace.csproj", "{803B981D-ED22-4DFF-90FA-C278DE8D228B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.PipelineGroup", "..\..\generated\Monitor\PipelineGroup.Autorest\Az.PipelineGroup.csproj", "{BBB1BE4E-4595-4589-AB2B-14BCFF7EB65C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ScheduledQueryRule", "..\..\generated\Monitor\ScheduledQueryRule.Autorest\Az.ScheduledQueryRule.csproj", "{7CDB5277-30F0-4C26-97D9-DD08A11AA3B2}"
Expand All @@ -59,6 +57,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Metricdata.Autorest", "Metr
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Metricdata", "..\..\generated\Monitor\Metricdata.Autorest\Az.Metricdata.csproj", "{0A51A656-9092-4C82-83B5-524516C8FED7}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MonitorWorkspace.Autorest", "MonitorWorkspace.Autorest", "{635E4282-7AFB-1B5B-749B-823438FF2057}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MonitorWorkspace", "..\..\generated\Monitor\MonitorWorkspace.Autorest\Az.MonitorWorkspace.csproj", "{5A91A04F-34B3-4BBB-8B4A-0CDC03965415}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -273,18 +275,6 @@ Global
{32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Release|x64.Build.0 = Release|Any CPU
{32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Release|x86.ActiveCfg = Release|Any CPU
{32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Release|x86.Build.0 = Release|Any CPU
{803B981D-ED22-4DFF-90FA-C278DE8D228B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{803B981D-ED22-4DFF-90FA-C278DE8D228B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{803B981D-ED22-4DFF-90FA-C278DE8D228B}.Debug|x64.ActiveCfg = Debug|Any CPU
{803B981D-ED22-4DFF-90FA-C278DE8D228B}.Debug|x64.Build.0 = Debug|Any CPU
{803B981D-ED22-4DFF-90FA-C278DE8D228B}.Debug|x86.ActiveCfg = Debug|Any CPU
{803B981D-ED22-4DFF-90FA-C278DE8D228B}.Debug|x86.Build.0 = Debug|Any CPU
{803B981D-ED22-4DFF-90FA-C278DE8D228B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{803B981D-ED22-4DFF-90FA-C278DE8D228B}.Release|Any CPU.Build.0 = Release|Any CPU
{803B981D-ED22-4DFF-90FA-C278DE8D228B}.Release|x64.ActiveCfg = Release|Any CPU
{803B981D-ED22-4DFF-90FA-C278DE8D228B}.Release|x64.Build.0 = Release|Any CPU
{803B981D-ED22-4DFF-90FA-C278DE8D228B}.Release|x86.ActiveCfg = Release|Any CPU
{803B981D-ED22-4DFF-90FA-C278DE8D228B}.Release|x86.Build.0 = Release|Any CPU
{BBB1BE4E-4595-4589-AB2B-14BCFF7EB65C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BBB1BE4E-4595-4589-AB2B-14BCFF7EB65C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BBB1BE4E-4595-4589-AB2B-14BCFF7EB65C}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -345,6 +335,18 @@ Global
{0A51A656-9092-4C82-83B5-524516C8FED7}.Release|x64.Build.0 = Release|Any CPU
{0A51A656-9092-4C82-83B5-524516C8FED7}.Release|x86.ActiveCfg = Release|Any CPU
{0A51A656-9092-4C82-83B5-524516C8FED7}.Release|x86.Build.0 = Release|Any CPU
{5A91A04F-34B3-4BBB-8B4A-0CDC03965415}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5A91A04F-34B3-4BBB-8B4A-0CDC03965415}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5A91A04F-34B3-4BBB-8B4A-0CDC03965415}.Debug|x64.ActiveCfg = Debug|Any CPU
{5A91A04F-34B3-4BBB-8B4A-0CDC03965415}.Debug|x64.Build.0 = Debug|Any CPU
{5A91A04F-34B3-4BBB-8B4A-0CDC03965415}.Debug|x86.ActiveCfg = Debug|Any CPU
{5A91A04F-34B3-4BBB-8B4A-0CDC03965415}.Debug|x86.Build.0 = Debug|Any CPU
{5A91A04F-34B3-4BBB-8B4A-0CDC03965415}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5A91A04F-34B3-4BBB-8B4A-0CDC03965415}.Release|Any CPU.Build.0 = Release|Any CPU
{5A91A04F-34B3-4BBB-8B4A-0CDC03965415}.Release|x64.ActiveCfg = Release|Any CPU
{5A91A04F-34B3-4BBB-8B4A-0CDC03965415}.Release|x64.Build.0 = Release|Any CPU
{5A91A04F-34B3-4BBB-8B4A-0CDC03965415}.Release|x86.ActiveCfg = Release|Any CPU
{5A91A04F-34B3-4BBB-8B4A-0CDC03965415}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -365,5 +367,6 @@ Global
{0636EEB2-FE81-4424-8CFC-CCEB25360A40} = {3F76A15C-B128-4A31-A887-05E303CF8D7F}
{138B61C0-9D0E-44A1-9EA1-E8142303ECA5} = {35E5CBAF-5596-AC3C-3DBD-816FC74B54D0}
{0A51A656-9092-4C82-83B5-524516C8FED7} = {97973F8C-3EE1-368A-3B71-C62280C2DC8C}
{5A91A04F-34B3-4BBB-8B4A-0CDC03965415} = {635E4282-7AFB-1B5B-749B-823438FF2057}
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion src/Monitor/Monitor/Az.Monitor.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 7/2/2025
# Generated on: 7/15/2025
#

@{
Expand Down
4 changes: 2 additions & 2 deletions src/Monitor/Monitor/help/Az.Monitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ Creates a metric dimension filter that can be used to query metrics.
Create an in-memory object for MonitoringAccountDestination.

### [New-AzMonitorWorkspace](New-AzMonitorWorkspace.md)
Create or update a workspace
Create a workspace

### [New-AzPerfCounterDataSourceObject](New-AzPerfCounterDataSourceObject.md)
Create an in-memory object for PerfCounterDataSource.
Expand Down Expand Up @@ -355,7 +355,7 @@ update an association.
Update for private link scope

### [Update-AzMonitorWorkspace](Update-AzMonitorWorkspace.md)
Updates part of a workspace
Update part of a workspace

### [Update-AzPipelineGroup](Update-AzPipelineGroup.md)
update a pipeline group instance
Expand Down
3 changes: 1 addition & 2 deletions src/Monitor/Monitor/help/Get-AzMonitorWorkspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity
Expand Down Expand Up @@ -170,7 +169,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource
### Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource

## NOTES

Expand Down
61 changes: 52 additions & 9 deletions src/Monitor/Monitor/help/New-AzMonitorWorkspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ schema: 2.0.0
# New-AzMonitorWorkspace

## SYNOPSIS
Create or update a workspace
Create a workspace

## SYNTAX

Expand All @@ -19,14 +19,28 @@ New-AzMonitorWorkspace -Name <String> -ResourceGroupName <String> [-Subscription
[<CommonParameters>]
```

### CreateViaJsonString
```
New-AzMonitorWorkspace -Name <String> -ResourceGroupName <String> [-SubscriptionId <String>]
-JsonString <String> [-DefaultProfile <PSObject>] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

### CreateViaJsonFilePath
```
New-AzMonitorWorkspace -Name <String> -ResourceGroupName <String> [-SubscriptionId <String>]
-JsonFilePath <String> [-DefaultProfile <PSObject>] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

### CreateViaIdentityExpanded
```
New-AzMonitorWorkspace -InputObject <IMonitorWorkspaceIdentity> -Location <String> [-Tag <Hashtable>]
[-DefaultProfile <PSObject>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION
Create or update a workspace
Create a workspace

## EXAMPLES

Expand Down Expand Up @@ -63,7 +77,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity
Expand All @@ -77,12 +90,42 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```

### -JsonFilePath
Path of Json file supplied to the Create operation

```yaml
Type: System.String
Parameter Sets: CreateViaJsonFilePath
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -JsonString
Json string supplied to the Create operation

```yaml
Type: System.String
Parameter Sets: CreateViaJsonString
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Location
The geo-location where the resource lives

```yaml
Type: System.String
Parameter Sets: (All)
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
Aliases:

Required: True
Expand All @@ -98,7 +141,7 @@ The name is case insensitive

```yaml
Type: System.String
Parameter Sets: CreateExpanded
Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath
Aliases: AzureMonitorWorkspaceName

Required: True
Expand All @@ -114,7 +157,7 @@ The name is case insensitive.

```yaml
Type: System.String
Parameter Sets: CreateExpanded
Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath
Aliases:

Required: True
Expand All @@ -129,7 +172,7 @@ The ID of the target subscription.

```yaml
Type: System.String
Parameter Sets: CreateExpanded
Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath
Aliases:

Required: False
Expand All @@ -144,7 +187,7 @@ Resource tags.

```yaml
Type: System.Collections.Hashtable
Parameter Sets: (All)
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
Aliases:

Required: False
Expand Down Expand Up @@ -194,7 +237,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource
### Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource

## NOTES

Expand Down
1 change: 0 additions & 1 deletion src/Monitor/Monitor/help/Remove-AzMonitorWorkspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity
Expand Down
59 changes: 51 additions & 8 deletions src/Monitor/Monitor/help/Update-AzMonitorWorkspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ schema: 2.0.0
# Update-AzMonitorWorkspace

## SYNOPSIS
Updates part of a workspace
Update part of a workspace

## SYNTAX

Expand All @@ -19,14 +19,28 @@ Update-AzMonitorWorkspace -Name <String> -ResourceGroupName <String> [-Subscript
[<CommonParameters>]
```

### UpdateViaJsonString
```
Update-AzMonitorWorkspace -Name <String> -ResourceGroupName <String> [-SubscriptionId <String>]
-JsonString <String> [-DefaultProfile <PSObject>] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

### UpdateViaJsonFilePath
```
Update-AzMonitorWorkspace -Name <String> -ResourceGroupName <String> [-SubscriptionId <String>]
-JsonFilePath <String> [-DefaultProfile <PSObject>] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

### UpdateViaIdentityExpanded
```
Update-AzMonitorWorkspace -InputObject <IMonitorWorkspaceIdentity> [-Tag <Hashtable>]
[-DefaultProfile <PSObject>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION
Updates part of a workspace
Update part of a workspace

## EXAMPLES

Expand Down Expand Up @@ -76,7 +90,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity
Expand All @@ -90,13 +103,43 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```

### -JsonFilePath
Path of Json file supplied to the Update operation

```yaml
Type: System.String
Parameter Sets: UpdateViaJsonFilePath
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -JsonString
Json string supplied to the Update operation

```yaml
Type: System.String
Parameter Sets: UpdateViaJsonString
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Name
The name of the Azure Monitor workspace.
The name is case insensitive

```yaml
Type: System.String
Parameter Sets: UpdateExpanded
Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath
Aliases: AzureMonitorWorkspaceName

Required: True
Expand All @@ -112,7 +155,7 @@ The name is case insensitive.

```yaml
Type: System.String
Parameter Sets: UpdateExpanded
Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath
Aliases:

Required: True
Expand All @@ -127,7 +170,7 @@ The ID of the target subscription.

```yaml
Type: System.String
Parameter Sets: UpdateExpanded
Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath
Aliases:

Required: False
Expand All @@ -142,7 +185,7 @@ Resource tags

```yaml
Type: System.Collections.Hashtable
Parameter Sets: (All)
Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded
Aliases:

Required: False
Expand Down Expand Up @@ -192,7 +235,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource
### Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource

## NOTES

Expand Down
Loading