Skip to content

Commit 7713d1d

Browse files
committed
update readme
1 parent ba0d87d commit 7713d1d

File tree

7 files changed

+130
-44
lines changed

7 files changed

+130
-44
lines changed

src/Monitor/Autoscale.Autorest/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ directive:
4545
# 1. Remove the unexpanded parameter set
4646
# 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
4747
- where:
48-
variant: ^(Create|Update)(?!.*?Expanded)
48+
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
4949
remove: true
5050
- where:
5151
verb: Set

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.Autoscale
3-
Module Guid: 4143e1e8-0843-4db4-b364-011977121247
3+
Module Guid: a9b125f5-74a5-4fd4-a060-a0fdb28485e1
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.autoscale
55
Help Version: 1.0.0.0
66
Locale: en-US

src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleSetting.md

Lines changed: 55 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ New-AzAutoscaleSetting -Name <String> -ResourceGroupName <String> -Location <Str
3131
[-WhatIf] [<CommonParameters>]
3232
```
3333

34+
### CreateViaJsonFilePath
35+
```
36+
New-AzAutoscaleSetting -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
37+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
38+
```
39+
40+
### CreateViaJsonString
41+
```
42+
New-AzAutoscaleSetting -Name <String> -ResourceGroupName <String> -JsonString <String>
43+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
44+
```
45+
3446
## DESCRIPTION
3547
Create an autoscale setting.
3648

@@ -73,7 +85,7 @@ The default value is 'false'.
7385
7486
```yaml
7587
Type: System.Management.Automation.SwitchParameter
76-
Parameter Sets: (All)
88+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
7789
Aliases:
7890

7991
Required: False
@@ -98,12 +110,42 @@ Accept pipeline input: True (ByValue)
98110
Accept wildcard characters: False
99111
```
100112
113+
### -JsonFilePath
114+
Path of Json file supplied to the Create operation
115+
116+
```yaml
117+
Type: System.String
118+
Parameter Sets: CreateViaJsonFilePath
119+
Aliases:
120+
121+
Required: True
122+
Position: Named
123+
Default value: None
124+
Accept pipeline input: False
125+
Accept wildcard characters: False
126+
```
127+
128+
### -JsonString
129+
Json string supplied to the Create operation
130+
131+
```yaml
132+
Type: System.String
133+
Parameter Sets: CreateViaJsonString
134+
Aliases:
135+
136+
Required: True
137+
Position: Named
138+
Default value: None
139+
Accept pipeline input: False
140+
Accept wildcard characters: False
141+
```
142+
101143
### -Location
102144
Resource location
103145
104146
```yaml
105147
Type: System.String
106-
Parameter Sets: (All)
148+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
107149
Aliases:
108150

109151
Required: True
@@ -118,7 +160,7 @@ The autoscale setting name.
118160
119161
```yaml
120162
Type: System.String
121-
Parameter Sets: CreateExpanded
163+
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
122164
Aliases: AutoscaleSettingName
123165

124166
Required: True
@@ -133,7 +175,7 @@ the collection of notifications.
133175
134176
```yaml
135177
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification[]
136-
Parameter Sets: (All)
178+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
137179
Aliases:
138180

139181
Required: False
@@ -149,7 +191,7 @@ It must be between 1 minute and 60 minutes in ISO 8601 format.
149191
150192
```yaml
151193
Type: System.TimeSpan
152-
Parameter Sets: (All)
194+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
153195
Aliases:
154196

155197
Required: False
@@ -164,7 +206,7 @@ the predictive autoscale mode
164206
165207
```yaml
166208
Type: System.String
167-
Parameter Sets: (All)
209+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
168210
Aliases:
169211

170212
Required: False
@@ -180,7 +222,7 @@ A maximum of 20 profiles can be specified.
180222
181223
```yaml
182224
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile[]
183-
Parameter Sets: (All)
225+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
184226
Aliases:
185227

186228
Required: True
@@ -195,7 +237,7 @@ the name of the autoscale setting.
195237
196238
```yaml
197239
Type: System.String
198-
Parameter Sets: (All)
240+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
199241
Aliases:
200242

201243
Required: False
@@ -211,7 +253,7 @@ The name is case insensitive.
211253
212254
```yaml
213255
Type: System.String
214-
Parameter Sets: CreateExpanded
256+
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
215257
Aliases:
216258

217259
Required: True
@@ -226,7 +268,7 @@ The ID of the target subscription.
226268
227269
```yaml
228270
Type: System.String
229-
Parameter Sets: CreateExpanded
271+
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
230272
Aliases:
231273

232274
Required: False
@@ -244,7 +286,7 @@ Each tag must have a key no greater in length than 128 characters and a value no
244286
245287
```yaml
246288
Type: System.Collections.Hashtable
247-
Parameter Sets: (All)
289+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
248290
Aliases:
249291

250292
Required: False
@@ -259,7 +301,7 @@ the location of the resource that the autoscale setting should be added to.
259301
260302
```yaml
261303
Type: System.String
262-
Parameter Sets: (All)
304+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
263305
Aliases:
264306

265307
Required: False
@@ -274,7 +316,7 @@ the resource identifier of the resource that the autoscale setting should be add
274316
275317
```yaml
276318
Type: System.String
277-
Parameter Sets: (All)
319+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
278320
Aliases:
279321

280322
Required: False
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "8b259b14-606c-4b36-bfa4-0bdcdebc4fa7"
2+
"generate_Id": "c661f843-0646-4df0-bd18-d4257578472b"
33
}

src/Monitor/Monitor.sln

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataCollectionRule", "..
5757
EndProject
5858
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Autoscale.Autorest", "Autoscale.Autorest", "{0832AC06-44A1-FEDA-3879-082134F4AAB5}"
5959
EndProject
60-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Autoscale", "..\..\generated\Monitor\Autoscale.Autorest\Az.Autoscale.csproj", "{A33EF777-3D4A-4250-96C9-A4F04D002494}"
60+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Autoscale", "..\..\generated\Monitor\Autoscale.Autorest\Az.Autoscale.csproj", "{FACD983C-123B-438D-B3BF-B67EB3E36B25}"
6161
EndProject
6262
Global
6363
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -333,18 +333,18 @@ Global
333333
{138B61C0-9D0E-44A1-9EA1-E8142303ECA5}.Release|x64.Build.0 = Release|Any CPU
334334
{138B61C0-9D0E-44A1-9EA1-E8142303ECA5}.Release|x86.ActiveCfg = Release|Any CPU
335335
{138B61C0-9D0E-44A1-9EA1-E8142303ECA5}.Release|x86.Build.0 = Release|Any CPU
336-
{A33EF777-3D4A-4250-96C9-A4F04D002494}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
337-
{A33EF777-3D4A-4250-96C9-A4F04D002494}.Debug|Any CPU.Build.0 = Debug|Any CPU
338-
{A33EF777-3D4A-4250-96C9-A4F04D002494}.Debug|x64.ActiveCfg = Debug|Any CPU
339-
{A33EF777-3D4A-4250-96C9-A4F04D002494}.Debug|x64.Build.0 = Debug|Any CPU
340-
{A33EF777-3D4A-4250-96C9-A4F04D002494}.Debug|x86.ActiveCfg = Debug|Any CPU
341-
{A33EF777-3D4A-4250-96C9-A4F04D002494}.Debug|x86.Build.0 = Debug|Any CPU
342-
{A33EF777-3D4A-4250-96C9-A4F04D002494}.Release|Any CPU.ActiveCfg = Release|Any CPU
343-
{A33EF777-3D4A-4250-96C9-A4F04D002494}.Release|Any CPU.Build.0 = Release|Any CPU
344-
{A33EF777-3D4A-4250-96C9-A4F04D002494}.Release|x64.ActiveCfg = Release|Any CPU
345-
{A33EF777-3D4A-4250-96C9-A4F04D002494}.Release|x64.Build.0 = Release|Any CPU
346-
{A33EF777-3D4A-4250-96C9-A4F04D002494}.Release|x86.ActiveCfg = Release|Any CPU
347-
{A33EF777-3D4A-4250-96C9-A4F04D002494}.Release|x86.Build.0 = Release|Any CPU
336+
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
337+
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Debug|Any CPU.Build.0 = Debug|Any CPU
338+
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Debug|x64.ActiveCfg = Debug|Any CPU
339+
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Debug|x64.Build.0 = Debug|Any CPU
340+
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Debug|x86.ActiveCfg = Debug|Any CPU
341+
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Debug|x86.Build.0 = Debug|Any CPU
342+
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Release|Any CPU.ActiveCfg = Release|Any CPU
343+
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Release|Any CPU.Build.0 = Release|Any CPU
344+
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Release|x64.ActiveCfg = Release|Any CPU
345+
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Release|x64.Build.0 = Release|Any CPU
346+
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Release|x86.ActiveCfg = Release|Any CPU
347+
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Release|x86.Build.0 = Release|Any CPU
348348
EndGlobalSection
349349
GlobalSection(SolutionProperties) = preSolution
350350
HideSolutionNode = FALSE
@@ -364,6 +364,6 @@ Global
364364
{B54BD1A5-F4AB-485B-8478-520B6AA1E9E7} = {5E1B5E7C-8C9C-47AD-8F8F-19628E8D1B34}
365365
{0636EEB2-FE81-4424-8CFC-CCEB25360A40} = {3F76A15C-B128-4A31-A887-05E303CF8D7F}
366366
{138B61C0-9D0E-44A1-9EA1-E8142303ECA5} = {35E5CBAF-5596-AC3C-3DBD-816FC74B54D0}
367-
{A33EF777-3D4A-4250-96C9-A4F04D002494} = {0832AC06-44A1-FEDA-3879-082134F4AAB5}
367+
{FACD983C-123B-438D-B3BF-B67EB3E36B25} = {0832AC06-44A1-FEDA-3879-082134F4AAB5}
368368
EndGlobalSection
369369
EndGlobal

src/Monitor/Monitor/Az.Monitor.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 7/1/2025
6+
# Generated on: 7/15/2025
77
#
88

99
@{

0 commit comments

Comments
 (0)