Skip to content

Commit ed15cb9

Browse files
Migrate Resources from generation to main (#19656)
* Move Resources to main * Update ChangeLog.md Co-authored-by: Yabo Hu <[email protected]>
1 parent 1c98bd0 commit ed15cb9

17 files changed

+196
-9
lines changed

src/Resources/Authorization.Autorest/docs/Az.Authorization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.Authorization
3-
Module Guid: d3d396b9-c02d-407b-b0ce-c83a1289ce6c
3+
Module Guid: faf9dbcb-8de4-4d0e-861b-ad848ca5d95b
44
Download Help Link: https://docs.microsoft.com/powershell/module/az.authorization
55
Help Version: 1.0.0.0
66
Locale: en-US
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"autorest": "`-- (empty)",
3-
"node": "v14.15.5",
4-
"autorest_powershell": "3.0.494",
2+
"swagger_commit": "71ceebe95c8b5b129930c014d062bcf2cf80961a",
53
"autorest_modelerfour": "4.15.414",
64
"autorest_core": "3.9.2",
7-
"swagger_commit": "99977890f7a2e8cf9b4e229f452c1af7b30184e4"
5+
"autorest": "`-- (empty)",
6+
"node": "v14.15.5",
7+
"autorest_powershell": "3.0.494"
88
}

src/Resources/MSGraph.Autorest/custom/Get-AzADApplication.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ param(
7171
# Select properties to be returned
7272
${Select},
7373

74+
[Parameter(ParameterSetName='List')]
75+
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Query')]
76+
[System.Management.Automation.SwitchParameter]
77+
# Include count of items
78+
${Count},
79+
7480
[Parameter(ParameterSetName='EmptyParameterSet')]
7581
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Query')]
7682
[System.String]

src/Resources/MSGraph.Autorest/custom/Get-AzADGroup.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ function Get-AzADGroup {
5353
# Select properties to be returned
5454
${Select},
5555

56+
[Parameter(ParameterSetName='List')]
57+
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Query')]
58+
[System.Management.Automation.SwitchParameter]
59+
# Include count of items
60+
${Count},
61+
5662
[Parameter(ParameterSetName='EmptyParameterSet')]
5763
[System.String]
5864
# Filter items by property values, for more detail about filter query please see: https://learn.microsoft.com/en-us/graph/filter-query-parameter

src/Resources/MSGraph.Autorest/custom/Get-AzADServicePrincipal.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ param(
7272
# Select properties to be returned
7373
${Select},
7474

75+
[Parameter(ParameterSetName='List')]
76+
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Query')]
77+
[System.Management.Automation.SwitchParameter]
78+
# Include count of items
79+
${Count},
80+
7581
[Parameter(ParameterSetName='EmptyParameterSet')]
7682
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Query')]
7783
[System.String]

src/Resources/MSGraph.Autorest/docs/Get-AzADApplication.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ Get-AzADApplication -DisplayName <String> [-Select <String[]>] [-AppendSelected]
4343
[-Skip <UInt64>] [-DefaultProfile <PSObject>] [<CommonParameters>]
4444
```
4545

46+
### List
47+
```
48+
Get-AzADApplication [-Count] [-Select <String[]>] [-AppendSelected] [-First <UInt64>] [-Skip <UInt64>]
49+
[-DefaultProfile <PSObject>] [<CommonParameters>]
50+
```
51+
4652
### OwnedApplicationParameterSet
4753
```
4854
Get-AzADApplication -OwnedApplication [-Orderby <String[]>] [-Select <String[]>] [-AppendSelected]
@@ -150,6 +156,21 @@ Accept pipeline input: False
150156
Accept wildcard characters: False
151157
```
152158
159+
### -Count
160+
Include count of items
161+
162+
```yaml
163+
Type: System.Management.Automation.SwitchParameter
164+
Parameter Sets: List
165+
Aliases:
166+
167+
Required: False
168+
Position: Named
169+
Default value: None
170+
Accept pipeline input: False
171+
Accept wildcard characters: False
172+
```
173+
153174
### -DefaultProfile
154175
The credentials, account, tenant, and subscription used for communication with Azure.
155176

src/Resources/MSGraph.Autorest/docs/Get-AzADGroup.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ Get-AzADGroup -DisplayName <String> [-AppendSelected] [-ConsistencyLevel <String
2525
[-First <UInt64>] [-Select <String[]>] [-Skip <UInt64>] [-DefaultProfile <PSObject>] [<CommonParameters>]
2626
```
2727

28+
### List
29+
```
30+
Get-AzADGroup [-Count] [-AppendSelected] [-ConsistencyLevel <String>] [-Expand <String[]>]
31+
[-Select <String[]>] [-DefaultProfile <PSObject>] [<CommonParameters>]
32+
```
33+
2834
### ObjectIdParameterSet
2935
```
3036
Get-AzADGroup -ObjectId <Guid> [-AppendSelected] [-ConsistencyLevel <String>] [-Expand <String[]>]
@@ -104,6 +110,21 @@ Accept pipeline input: False
104110
Accept wildcard characters: False
105111
```
106112
113+
### -Count
114+
Include count of items
115+
116+
```yaml
117+
Type: System.Management.Automation.SwitchParameter
118+
Parameter Sets: List
119+
Aliases:
120+
121+
Required: False
122+
Position: Named
123+
Default value: None
124+
Accept pipeline input: False
125+
Accept wildcard characters: False
126+
```
127+
107128
### -DefaultProfile
108129
The credentials, account, tenant, and subscription used for communication with Azure.
109130

src/Resources/MSGraph.Autorest/docs/Get-AzADServicePrincipal.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ Get-AzADServicePrincipal -DisplayName <String> [-Select <String[]>] [-AppendSele
3737
[-Skip <UInt64>] [-DefaultProfile <PSObject>] [<CommonParameters>]
3838
```
3939

40+
### List
41+
```
42+
Get-AzADServicePrincipal [-Count] [-Select <String[]>] [-AppendSelected] [-First <UInt64>] [-Skip <UInt64>]
43+
[-DefaultProfile <PSObject>] [<CommonParameters>]
44+
```
45+
4046
### ObjectIdParameterSet
4147
```
4248
Get-AzADServicePrincipal -ObjectId <String> [-Select <String[]>] [-AppendSelected] [-First <UInt64>]
@@ -166,6 +172,21 @@ Accept pipeline input: False
166172
Accept wildcard characters: False
167173
```
168174
175+
### -Count
176+
Include count of items
177+
178+
```yaml
179+
Type: System.Management.Automation.SwitchParameter
180+
Parameter Sets: List
181+
Aliases:
182+
183+
Required: False
184+
Position: Named
185+
Default value: None
186+
Accept pipeline input: False
187+
Accept wildcard characters: False
188+
```
189+
169190
### -DefaultProfile
170191
The credentials, account, tenant, and subscription used for communication with Azure.
171192

src/Resources/MSGraph.Autorest/exports/Get-AzADApplication.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ param(
107107
# application identifier uri
108108
${IdentifierUri},
109109

110+
[Parameter(ParameterSetName='List')]
111+
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Query')]
112+
[System.Management.Automation.SwitchParameter]
113+
# Include count of items
114+
${Count},
115+
110116
[Parameter(ParameterSetName='EmptyParameterSet')]
111117
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')]
112118
[System.String]
@@ -213,6 +219,7 @@ begin {
213219
ApplicationIdParameterSet = 'Az.MSGraph.custom\Get-AzADApplication';
214220
ApplicationIdentifierUriParameterSet = 'Az.MSGraph.custom\Get-AzADApplication';
215221
OwnedApplicationParameterSet = 'Az.MSGraph.custom\Get-AzADApplication';
222+
List = 'Az.MSGraph.custom\Get-AzADApplication';
216223
}
217224
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
218225
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)

src/Resources/MSGraph.Autorest/exports/Get-AzADGroup.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ function Get-AzADGroup {
3737
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup])]
3838
[CmdletBinding(DefaultParameterSetName='EmptyParameterSet', PositionalBinding=$false)]
3939
param(
40+
[Parameter(ParameterSetName='List')]
41+
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Query')]
42+
[System.Management.Automation.SwitchParameter]
43+
# Include count of items
44+
${Count},
45+
4046
[Parameter()]
4147
[AllowEmptyCollection()]
4248
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
@@ -196,6 +202,7 @@ begin {
196202
ObjectIdParameterSet = 'Az.MSGraph.custom\Get-AzADGroup';
197203
SearchStringParameterSet = 'Az.MSGraph.custom\Get-AzADGroup';
198204
DisplayNameParameterSet = 'Az.MSGraph.custom\Get-AzADGroup';
205+
List = 'Az.MSGraph.custom\Get-AzADGroup';
199206
}
200207
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
201208
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)

src/Resources/MSGraph.Autorest/exports/Get-AzADServicePrincipal.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,12 @@ param(
248248
# serviceprincipal name
249249
${ServicePrincipalName},
250250

251+
[Parameter(ParameterSetName='List')]
252+
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Query')]
253+
[System.Management.Automation.SwitchParameter]
254+
# Include count of items
255+
${Count},
256+
251257
[Parameter(ParameterSetName='EmptyParameterSet')]
252258
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')]
253259
[System.String]
@@ -354,6 +360,7 @@ begin {
354360
ApplicationIdParameterSet = 'Az.MSGraph.custom\Get-AzADServicePrincipal';
355361
ApplicationObjectParameterSet = 'Az.MSGraph.custom\Get-AzADServicePrincipal';
356362
SPNParameterSet = 'Az.MSGraph.custom\Get-AzADServicePrincipal';
363+
List = 'Az.MSGraph.custom\Get-AzADServicePrincipal';
357364
}
358365
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
359366
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)

src/Resources/MSGraph.Autorest/exports/ProxyCmdletDefinitions.ps1

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1932,6 +1932,12 @@ param(
19321932
# application identifier uri
19331933
${IdentifierUri},
19341934

1935+
[Parameter(ParameterSetName='List')]
1936+
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Query')]
1937+
[System.Management.Automation.SwitchParameter]
1938+
# Include count of items
1939+
${Count},
1940+
19351941
[Parameter(ParameterSetName='EmptyParameterSet')]
19361942
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')]
19371943
[System.String]
@@ -2038,6 +2044,7 @@ begin {
20382044
ApplicationIdParameterSet = 'Az.MSGraph.custom\Get-AzADApplication';
20392045
ApplicationIdentifierUriParameterSet = 'Az.MSGraph.custom\Get-AzADApplication';
20402046
OwnedApplicationParameterSet = 'Az.MSGraph.custom\Get-AzADApplication';
2047+
List = 'Az.MSGraph.custom\Get-AzADApplication';
20412048
}
20422049
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
20432050
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -2260,6 +2267,12 @@ function Get-AzADGroup {
22602267
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup])]
22612268
[CmdletBinding(DefaultParameterSetName='EmptyParameterSet', PositionalBinding=$false)]
22622269
param(
2270+
[Parameter(ParameterSetName='List')]
2271+
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Query')]
2272+
[System.Management.Automation.SwitchParameter]
2273+
# Include count of items
2274+
${Count},
2275+
22632276
[Parameter()]
22642277
[AllowEmptyCollection()]
22652278
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
@@ -2419,6 +2432,7 @@ begin {
24192432
ObjectIdParameterSet = 'Az.MSGraph.custom\Get-AzADGroup';
24202433
SearchStringParameterSet = 'Az.MSGraph.custom\Get-AzADGroup';
24212434
DisplayNameParameterSet = 'Az.MSGraph.custom\Get-AzADGroup';
2435+
List = 'Az.MSGraph.custom\Get-AzADGroup';
24222436
}
24232437
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
24242438
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -2956,6 +2970,12 @@ param(
29562970
# serviceprincipal name
29572971
${ServicePrincipalName},
29582972

2973+
[Parameter(ParameterSetName='List')]
2974+
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Query')]
2975+
[System.Management.Automation.SwitchParameter]
2976+
# Include count of items
2977+
${Count},
2978+
29592979
[Parameter(ParameterSetName='EmptyParameterSet')]
29602980
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')]
29612981
[System.String]
@@ -3062,6 +3082,7 @@ begin {
30623082
ApplicationIdParameterSet = 'Az.MSGraph.custom\Get-AzADServicePrincipal';
30633083
ApplicationObjectParameterSet = 'Az.MSGraph.custom\Get-AzADServicePrincipal';
30643084
SPNParameterSet = 'Az.MSGraph.custom\Get-AzADServicePrincipal';
3085+
List = 'Az.MSGraph.custom\Get-AzADServicePrincipal';
30653086
}
30663087
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
30673088
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"autorest": "`-- (empty)",
3-
"node": "v14.15.5",
4-
"autorest_powershell": "3.0.494",
2+
"swagger_commit": "71ceebe95c8b5b129930c014d062bcf2cf80961a",
53
"autorest_modelerfour": "4.15.414",
64
"autorest_core": "3.9.2",
7-
"swagger_commit": "99977890f7a2e8cf9b4e229f452c1af7b30184e4"
5+
"autorest": "`-- (empty)",
6+
"node": "v14.15.5",
7+
"autorest_powershell": "3.0.494"
88
}

src/Resources/Resources/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
## Upcoming Release
2222
* Removed unused reference to resource identifier in role assignment create cmdlet
23+
* Exposed parameter `-Count` for `Get-AzADApplication`, `Get-AzADServicePrincipal`, `Get-AzADGroup` [#19476]
2324

2425
## Version 6.2.0
2526
* Fixed bug `-Password` overwrite `-PasswordProfile` in `New-AzADUser` [#19265]

src/Resources/Resources/help/Get-AzADApplication.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ Get-AzADApplication [-Select <String[]>] -IdentifierUri <String> [-First <UInt64
5555
[-AppendSelected] [-DefaultProfile <PSObject>] [<CommonParameters>]
5656
```
5757

58+
### List
59+
```
60+
Get-AzADApplication [-Select <String[]>] [-Count] [-First <UInt64>] [-Skip <UInt64>] [-AppendSelected]
61+
[-DefaultProfile <PSObject>] [<CommonParameters>]
62+
```
63+
5864
## DESCRIPTION
5965
Lists entities from applications or get entity from applications by key
6066

@@ -150,6 +156,21 @@ Accept pipeline input: False
150156
Accept wildcard characters: False
151157
```
152158
159+
### -Count
160+
Include count of items
161+
162+
```yaml
163+
Type: System.Management.Automation.SwitchParameter
164+
Parameter Sets: List
165+
Aliases:
166+
167+
Required: False
168+
Position: Named
169+
Default value: None
170+
Accept pipeline input: False
171+
Accept wildcard characters: False
172+
```
173+
153174
### -DefaultProfile
154175
The credentials, account, tenant, and subscription used for communication with Azure.
155176

src/Resources/Resources/help/Get-AzADGroup.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ Get-AzADGroup [-Expand <String[]>] [-Select <String[]>] [-Filter <String>] [-Ord
1919
[-DefaultProfile <PSObject>] [<CommonParameters>]
2020
```
2121

22+
### List
23+
```
24+
Get-AzADGroup [-Count] [-Expand <String[]>] [-Select <String[]>] [-ConsistencyLevel <String>] [-AppendSelected]
25+
[-DefaultProfile <PSObject>] [<CommonParameters>]
26+
```
27+
2228
### DisplayNameParameterSet
2329
```
2430
Get-AzADGroup [-Expand <String[]>] [-Select <String[]>] [-ConsistencyLevel <String>] [-First <UInt64>]
@@ -104,6 +110,21 @@ Accept pipeline input: False
104110
Accept wildcard characters: False
105111
```
106112
113+
### -Count
114+
Include count of items
115+
116+
```yaml
117+
Type: System.Management.Automation.SwitchParameter
118+
Parameter Sets: List
119+
Aliases:
120+
121+
Required: False
122+
Position: Named
123+
Default value: None
124+
Accept pipeline input: False
125+
Accept wildcard characters: False
126+
```
127+
107128
### -DefaultProfile
108129
The credentials, account, tenant, and subscription used for communication with Azure.
109130

0 commit comments

Comments
 (0)