Skip to content

Commit fbf36a6

Browse files
Migrate Resources from generation to main (#25116)
* Move Resources to main * Update ChangeLog.md * Create BreakingChangeIssues.csv --------- Co-authored-by: Yabo Hu <[email protected]>
1 parent 6b4b163 commit fbf36a6

File tree

343 files changed

+23421
-53119
lines changed

Some content is hidden

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

343 files changed

+23421
-53119
lines changed

src/Resources/Authorization.Autorest/Az.Authorization.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@{
2-
GUID = 'b5a590cc-e037-4d90-9cd3-758cf65e1bfc'
2+
GUID = 'f593d967-091f-49c1-be93-4f318a893e6c'
33
RootModule = './Az.Authorization.psm1'
44
ModuleVersion = '0.1.0'
55
CompatiblePSEditions = 'Core', 'Desktop'

src/Resources/Authorization.Autorest/build-module.ps1

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
1313
# is regenerated.
1414
# ----------------------------------------------------------------------------------
15-
param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs)
15+
param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [Switch]$DisableAfterBuildTasks)
1616
$ErrorActionPreference = 'Stop'
1717

1818
if($PSEdition -ne 'Core') {
@@ -169,4 +169,14 @@ if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
169169
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
170170
}
171171

172+
if (-not $DisableAfterBuildTasks){
173+
$afterBuildTasksPath = Join-Path $PSScriptRoot ''
174+
$afterBuildTasksArgs = ConvertFrom-Json 'true' -AsHashtable
175+
if(Test-Path -Path $afterBuildTasksPath -PathType leaf){
176+
Write-Host -ForegroundColor Green 'Running after build tasks...'
177+
. $afterBuildTasksPath @afterBuildTasksArgs
178+
}
179+
}
180+
181+
172182
Write-Host -ForegroundColor Green '-------------Done-------------'

src/Resources/Authorization.Autorest/help/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: b5a590cc-e037-4d90-9cd3-758cf65e1bfc
3+
Module Guid: f593d967-091f-49c1-be93-4f318a893e6c
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.authorization
55
Help Version: 1.0.0.0
66
Locale: en-US
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
### Example 1: Assign a user as onwer of a group
1+
### Example 1: Assign a user as owner of a group
22
```powershell
33
$userId = (Get-AzADUser -DisplayName "John Doe").Id
44
$groupId = (Get-AzADGroup -DisplayName "someGroup").Id
55
New-AzADGroupOwner -GroupId $groupId -OwnerId $userId
66
```
77

8-
Assign a user as onwer of a group
8+
Assign a user as owner of a group

src/Resources/MSGraph.Autorest/help/New-AzADGroupOwner.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ Create new navigation property ref to owners for groups
2222

2323
## EXAMPLES
2424

25-
### Example 1: Assign a user as onwer of a group
25+
### Example 1: Assign a user as owner of a group
2626
```powershell
2727
$userId = (Get-AzADUser -DisplayName "John Doe").Id
2828
$groupId = (Get-AzADGroup -DisplayName "someGroup").Id
2929
New-AzADGroupOwner -GroupId $groupId -OwnerId $userId
3030
```
3131

32-
Assign a user as onwer of a group
32+
Assign a user as owner of a group
3333

3434
## PARAMETERS
3535

src/Resources/Policy.Autorest/Az.Policy.format.ps1xml

Lines changed: 52 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,20 +287,32 @@
287287
<TableControl>
288288
<TableHeaders>
289289
<TableColumnHeader>
290-
<Label>Location</Label>
290+
<Label>Name</Label>
291291
</TableColumnHeader>
292292
<TableColumnHeader>
293-
<Label>Name</Label>
293+
<Label>Scope</Label>
294+
</TableColumnHeader>
295+
<TableColumnHeader>
296+
<Label>EnforcementMode</Label>
297+
</TableColumnHeader>
298+
<TableColumnHeader>
299+
<Label>DisplayName</Label>
294300
</TableColumnHeader>
295301
</TableHeaders>
296302
<TableRowEntries>
297303
<TableRowEntry>
298304
<TableColumnItems>
299305
<TableColumnItem>
300-
<PropertyName>Location</PropertyName>
306+
<PropertyName>Name</PropertyName>
301307
</TableColumnItem>
302308
<TableColumnItem>
303-
<PropertyName>Name</PropertyName>
309+
<PropertyName>Scope</PropertyName>
310+
</TableColumnItem>
311+
<TableColumnItem>
312+
<PropertyName>EnforcementMode</PropertyName>
313+
</TableColumnItem>
314+
<TableColumnItem>
315+
<PropertyName>DisplayName</PropertyName>
304316
</TableColumnItem>
305317
</TableColumnItems>
306318
</TableRowEntry>
@@ -407,13 +419,25 @@
407419
<TableColumnHeader>
408420
<Label>Name</Label>
409421
</TableColumnHeader>
422+
<TableColumnHeader>
423+
<Label>PolicyType</Label>
424+
</TableColumnHeader>
425+
<TableColumnHeader>
426+
<Label>DisplayName</Label>
427+
</TableColumnHeader>
410428
</TableHeaders>
411429
<TableRowEntries>
412430
<TableRowEntry>
413431
<TableColumnItems>
414432
<TableColumnItem>
415433
<PropertyName>Name</PropertyName>
416434
</TableColumnItem>
435+
<TableColumnItem>
436+
<PropertyName>PolicyType</PropertyName>
437+
</TableColumnItem>
438+
<TableColumnItem>
439+
<PropertyName>DisplayName</PropertyName>
440+
</TableColumnItem>
417441
</TableColumnItems>
418442
</TableRowEntry>
419443
</TableRowEntries>
@@ -587,13 +611,25 @@
587611
<TableColumnHeader>
588612
<Label>Name</Label>
589613
</TableColumnHeader>
614+
<TableColumnHeader>
615+
<Label>PolicyAssignmentId</Label>
616+
</TableColumnHeader>
617+
<TableColumnHeader>
618+
<Label>DisplayName</Label>
619+
</TableColumnHeader>
590620
</TableHeaders>
591621
<TableRowEntries>
592622
<TableRowEntry>
593623
<TableColumnItems>
594624
<TableColumnItem>
595625
<PropertyName>Name</PropertyName>
596626
</TableColumnItem>
627+
<TableColumnItem>
628+
<PropertyName>PolicyAssignmentId</PropertyName>
629+
</TableColumnItem>
630+
<TableColumnItem>
631+
<PropertyName>DisplayName</PropertyName>
632+
</TableColumnItem>
597633
</TableColumnItems>
598634
</TableRowEntry>
599635
</TableRowEntries>
@@ -759,13 +795,25 @@
759795
<TableColumnHeader>
760796
<Label>Name</Label>
761797
</TableColumnHeader>
798+
<TableColumnHeader>
799+
<Label>PolicyType</Label>
800+
</TableColumnHeader>
801+
<TableColumnHeader>
802+
<Label>DisplayName</Label>
803+
</TableColumnHeader>
762804
</TableHeaders>
763805
<TableRowEntries>
764806
<TableRowEntry>
765807
<TableColumnItems>
766808
<TableColumnItem>
767809
<PropertyName>Name</PropertyName>
768810
</TableColumnItem>
811+
<TableColumnItem>
812+
<PropertyName>PolicyType</PropertyName>
813+
</TableColumnItem>
814+
<TableColumnItem>
815+
<PropertyName>DisplayName</PropertyName>
816+
</TableColumnItem>
769817
</TableColumnItems>
770818
</TableRowEntry>
771819
</TableRowEntries>

src/Resources/Policy.Autorest/README.md

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ directive:
140140
default:
141141
name: DefaultExpiresOn
142142
description: Need a placeholder to keep autorest happy
143-
script: '"PlaceholderExpiresOn"'
143+
script: '{ "" }'
144144
hide: true
145145
clear-alias: true
146146

@@ -223,6 +223,41 @@ directive:
223223
parameter-name: NonComplianceMessageTable
224224
hide: true
225225

226+
# Formatting directives
227+
- where:
228+
model-name: PolicyAssignment
229+
set:
230+
format-table:
231+
properties:
232+
- Name
233+
- Scope
234+
- EnforcementMode
235+
- DisplayName
236+
- where:
237+
model-name: PolicyDefinition
238+
set:
239+
format-table:
240+
properties:
241+
- Name
242+
- PolicyType
243+
- DisplayName
244+
- where:
245+
model-name: PolicyExemption
246+
set:
247+
format-table:
248+
properties:
249+
- Name
250+
- PolicyAssignmentId
251+
- DisplayName
252+
- where:
253+
model-name: PolicySetDefinition
254+
set:
255+
format-table:
256+
properties:
257+
- Name
258+
- PolicyType
259+
- DisplayName
260+
226261
# Hide parameters that aren't supported.
227262
# For some reason these can't be hidden by hiding them in
228263
# the custom folder so we have to do it here.
@@ -251,9 +286,9 @@ directive:
251286
verb: New|Get|Remove|Update
252287
hide: true
253288
- where:
254-
verb: New|Remove|Update
289+
verb: Get|New|Remove|Update
255290
subject: PolicyDefinitionVersion|PolicySetDefinitionVersion
256-
remove: true
291+
hide: true
257292

258293
metadata:
259294
scriptsToProcess:

src/Resources/Policy.Autorest/build-module.ps1

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
1313
# is regenerated.
1414
# ----------------------------------------------------------------------------------
15-
param([switch]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX)
15+
param([switch]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX, [Switch]$DisableAfterBuildTasks)
1616
$ErrorActionPreference = 'Stop'
1717

1818
if($PSEdition -ne 'Core') {
@@ -177,4 +177,14 @@ if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
177177
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
178178
}
179179

180+
if (-not $DisableAfterBuildTasks){
181+
$afterBuildTasksPath = Join-Path $PSScriptRoot ''
182+
$afterBuildTasksArgs = ConvertFrom-Json 'true' -AsHashtable
183+
if(Test-Path -Path $afterBuildTasksPath -PathType leaf){
184+
Write-Host -ForegroundColor Green 'Running after build tasks...'
185+
. $afterBuildTasksPath @afterBuildTasksArgs
186+
}
187+
}
188+
189+
180190
Write-Host -ForegroundColor Green '-------------Done-------------'

src/Resources/Policy.Autorest/custom/Get-AzPolicyAssignment.ps1

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,6 @@ param(
9292
# If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value}.
9393
${Filter},
9494

95-
[Parameter(DontShow)]
96-
[Microsoft.Azure.PowerShell.Cmdlets.Policy.Category('Path')]
97-
[Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IPolicyIdentity]
98-
# Identity Parameter
99-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
100-
${InputObject},
101-
10295
[Parameter()]
10396
[Alias('AzureRMContext', 'AzureCredential')]
10497
[ValidateNotNull()]

0 commit comments

Comments
 (0)