Skip to content

Commit fa5d533

Browse files
committed
directive 2
1 parent 8adc7b0 commit fa5d533

10 files changed

+221
-76
lines changed

src/Workloads/Monitors.Autorest/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ namespace: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors
4848
inlining-threshold: 100
4949

5050
directive:
51-
- where:
52-
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
53-
remove: true
54-
5551
- where:
5652
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
5753
remove: true

src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsMonitor.md

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ New-AzWorkloadsMonitor -Name <String> -ResourceGroupName <String> -Location <Str
2222
[<CommonParameters>]
2323
```
2424

25+
### CreateViaIdentityExpanded
26+
```
27+
New-AzWorkloadsMonitor -InputObject <IMonitorsIdentity> -Location <String> [-AppLocation <String>]
28+
[-EnableSystemAssignedIdentity] [-LogAnalyticsWorkspaceArmId <String>] [-ManagedResourceGroupName <String>]
29+
[-MonitorSubnet <String>] [-RoutingPreference <String>] [-Tag <Hashtable>] [-UserAssignedIdentity <String[]>]
30+
[-ZoneRedundancyPreference <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
31+
[<CommonParameters>]
32+
```
33+
2534
### CreateViaJsonFilePath
2635
```
2736
New-AzWorkloadsMonitor -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
@@ -62,7 +71,7 @@ The subnet region should be same as the SAP monitoring region.
6271

6372
```yaml
6473
Type: System.String
65-
Parameter Sets: CreateExpanded
74+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
6675
Aliases:
6776

6877
Required: False
@@ -108,7 +117,7 @@ Determines whether to enable a system-assigned identity for the resource.
108117
109118
```yaml
110119
Type: System.Management.Automation.SwitchParameter
111-
Parameter Sets: CreateExpanded
120+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
112121
Aliases:
113122

114123
Required: False
@@ -118,6 +127,21 @@ Accept pipeline input: False
118127
Accept wildcard characters: False
119128
```
120129
130+
### -InputObject
131+
Identity Parameter
132+
133+
```yaml
134+
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitorsIdentity
135+
Parameter Sets: CreateViaIdentityExpanded
136+
Aliases:
137+
138+
Required: True
139+
Position: Named
140+
Default value: None
141+
Accept pipeline input: True (ByValue)
142+
Accept wildcard characters: False
143+
```
144+
121145
### -JsonFilePath
122146
Path of Json file supplied to the Create operation
123147
@@ -153,7 +177,7 @@ The geo-location where the resource lives
153177
154178
```yaml
155179
Type: System.String
156-
Parameter Sets: CreateExpanded
180+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
157181
Aliases:
158182

159183
Required: True
@@ -168,7 +192,7 @@ The ARM ID of the Log Analytics Workspace that is used for SAP monitoring.
168192
169193
```yaml
170194
Type: System.String
171-
Parameter Sets: CreateExpanded
195+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
172196
Aliases:
173197

174198
Required: False
@@ -183,7 +207,7 @@ Managed resource group name
183207
184208
```yaml
185209
Type: System.String
186-
Parameter Sets: CreateExpanded
210+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
187211
Aliases:
188212

189213
Required: False
@@ -198,7 +222,7 @@ The subnet which the SAP monitor will be deployed in
198222
199223
```yaml
200224
Type: System.String
201-
Parameter Sets: CreateExpanded
225+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
202226
Aliases:
203227

204228
Required: False
@@ -213,7 +237,7 @@ Name of the SAP monitor resource.
213237
214238
```yaml
215239
Type: System.String
216-
Parameter Sets: (All)
240+
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
217241
Aliases: MonitorName
218242

219243
Required: True
@@ -244,7 +268,7 @@ The name is case insensitive.
244268
245269
```yaml
246270
Type: System.String
247-
Parameter Sets: (All)
271+
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
248272
Aliases:
249273

250274
Required: True
@@ -260,7 +284,7 @@ By default only RFC1918 traffic is routed to the customer VNET.
260284
261285
```yaml
262286
Type: System.String
263-
Parameter Sets: CreateExpanded
287+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
264288
Aliases:
265289

266290
Required: False
@@ -275,7 +299,7 @@ The ID of the target subscription.
275299
276300
```yaml
277301
Type: System.String
278-
Parameter Sets: (All)
302+
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
279303
Aliases:
280304

281305
Required: False
@@ -290,7 +314,7 @@ Resource tags.
290314
291315
```yaml
292316
Type: System.Collections.Hashtable
293-
Parameter Sets: CreateExpanded
317+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
294318
Aliases:
295319

296320
Required: False
@@ -306,7 +330,7 @@ The elements in array will be ARM resource ids in the form: '/subscriptions/{sub
306330
307331
```yaml
308332
Type: System.String[]
309-
Parameter Sets: CreateExpanded
333+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
310334
Aliases:
311335

312336
Required: False
@@ -322,7 +346,7 @@ By default resources will be created which do not support zone redundancy.
322346
323347
```yaml
324348
Type: System.String
325-
Parameter Sets: CreateExpanded
349+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
326350
Aliases:
327351

328352
Required: False
@@ -368,6 +392,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
368392
369393
## INPUTS
370394
395+
### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitorsIdentity
396+
371397
## OUTPUTS
372398
373399
### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitor

src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderInstance.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ New-AzWorkloadsProviderInstance -MonitorName <String> -Name <String> -ResourceGr
2020
[<CommonParameters>]
2121
```
2222

23+
### CreateViaIdentityExpanded
24+
```
25+
New-AzWorkloadsProviderInstance -InputObject <IMonitorsIdentity> [-EnableSystemAssignedIdentity]
26+
[-ProviderSetting <IProviderSpecificProperties>] [-UserAssignedIdentity <String[]>]
27+
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
28+
```
29+
2330
### CreateViaIdentityMonitorExpanded
2431
```
2532
New-AzWorkloadsProviderInstance -MonitorInputObject <IMonitorsIdentity> -Name <String>
@@ -114,7 +121,7 @@ Determines whether to enable a system-assigned identity for the resource.
114121
115122
```yaml
116123
Type: System.Management.Automation.SwitchParameter
117-
Parameter Sets: CreateExpanded, CreateViaIdentityMonitorExpanded
124+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded, CreateViaIdentityMonitorExpanded
118125
Aliases:
119126

120127
Required: False
@@ -124,6 +131,21 @@ Accept pipeline input: False
124131
Accept wildcard characters: False
125132
```
126133
134+
### -InputObject
135+
Identity Parameter
136+
137+
```yaml
138+
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitorsIdentity
139+
Parameter Sets: CreateViaIdentityExpanded
140+
Aliases:
141+
142+
Required: True
143+
Position: Named
144+
Default value: None
145+
Accept pipeline input: True (ByValue)
146+
Accept wildcard characters: False
147+
```
148+
127149
### -JsonFilePath
128150
Path of Json file supplied to the Create operation
129151
@@ -189,7 +211,7 @@ Name of the provider instance.
189211
190212
```yaml
191213
Type: System.String
192-
Parameter Sets: (All)
214+
Parameter Sets: CreateExpanded, CreateViaIdentityMonitorExpanded, CreateViaJsonFilePath, CreateViaJsonString
193215
Aliases: ProviderInstanceName
194216

195217
Required: True
@@ -219,7 +241,7 @@ Defines the provider specific properties.
219241
220242
```yaml
221243
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IProviderSpecificProperties
222-
Parameter Sets: CreateExpanded, CreateViaIdentityMonitorExpanded
244+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded, CreateViaIdentityMonitorExpanded
223245
Aliases:
224246

225247
Required: False
@@ -266,7 +288,7 @@ The elements in array will be ARM resource ids in the form: '/subscriptions/{sub
266288
267289
```yaml
268290
Type: System.String[]
269-
Parameter Sets: CreateExpanded, CreateViaIdentityMonitorExpanded
291+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded, CreateViaIdentityMonitorExpanded
270292
Aliases:
271293

272294
Required: False

src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsSapLandscapeMonitor.md

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ New-AzWorkloadsSapLandscapeMonitor -MonitorName <String> -ResourceGroupName <Str
2121
[-WhatIf] [<CommonParameters>]
2222
```
2323

24+
### CreateViaIdentityExpanded
25+
```
26+
New-AzWorkloadsSapLandscapeMonitor -InputObject <IMonitorsIdentity>
27+
[-GroupingLandscape <ISapLandscapeMonitorSidMapping[]>]
28+
[-GroupingSapApplication <ISapLandscapeMonitorSidMapping[]>]
29+
[-TopMetricsThreshold <ISapLandscapeMonitorMetricThresholds[]>] [-DefaultProfile <PSObject>] [-Confirm]
30+
[-WhatIf] [<CommonParameters>]
31+
```
32+
2433
### CreateViaJsonFilePath
2534
```
2635
New-AzWorkloadsSapLandscapeMonitor -MonitorName <String> -ResourceGroupName <String> -JsonFilePath <String>
@@ -105,7 +114,7 @@ Gets or sets the list of landscape to SID mappings.
105114
106115
```yaml
107116
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.ISapLandscapeMonitorSidMapping[]
108-
Parameter Sets: CreateExpanded
117+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
109118
Aliases:
110119

111120
Required: False
@@ -120,7 +129,7 @@ Gets or sets the list of Sap Applications to SID mappings.
120129
121130
```yaml
122131
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.ISapLandscapeMonitorSidMapping[]
123-
Parameter Sets: CreateExpanded
132+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
124133
Aliases:
125134

126135
Required: False
@@ -130,6 +139,21 @@ Accept pipeline input: False
130139
Accept wildcard characters: False
131140
```
132141
142+
### -InputObject
143+
Identity Parameter
144+
145+
```yaml
146+
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitorsIdentity
147+
Parameter Sets: CreateViaIdentityExpanded
148+
Aliases:
149+
150+
Required: True
151+
Position: Named
152+
Default value: None
153+
Accept pipeline input: True (ByValue)
154+
Accept wildcard characters: False
155+
```
156+
133157
### -JsonFilePath
134158
Path of Json file supplied to the Create operation
135159
@@ -165,7 +189,7 @@ Name of the SAP monitor resource.
165189
166190
```yaml
167191
Type: System.String
168-
Parameter Sets: (All)
192+
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
169193
Aliases:
170194

171195
Required: True
@@ -181,7 +205,7 @@ The name is case insensitive.
181205
182206
```yaml
183207
Type: System.String
184-
Parameter Sets: (All)
208+
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
185209
Aliases:
186210

187211
Required: True
@@ -196,7 +220,7 @@ The ID of the target subscription.
196220
197221
```yaml
198222
Type: System.String
199-
Parameter Sets: (All)
223+
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
200224
Aliases:
201225

202226
Required: False
@@ -211,7 +235,7 @@ Gets or sets the list Top Metric Thresholds for SAP Landscape Monitor Dashboard
211235
212236
```yaml
213237
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.ISapLandscapeMonitorMetricThresholds[]
214-
Parameter Sets: CreateExpanded
238+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
215239
Aliases:
216240

217241
Required: False
@@ -257,6 +281,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
257281
258282
## INPUTS
259283
284+
### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitorsIdentity
285+
260286
## OUTPUTS
261287
262288
### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.ISapLandscapeMonitor
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "826556b9-26f0-4439-b907-9e1f5442345d"
2+
"generate_Id": "3149ff39-7170-49e6-b580-5f40a5008d67"
33
}

0 commit comments

Comments
 (0)