Skip to content

Commit 841e3ea

Browse files
authored
Revert "Migrate Policy to from SDK based to autorest.powershell" (#23324)
* Revert "Migrate Resources from shared/Resources to main (#23118)" This reverts commit 0d7b3d0. * Revert "Remove Azure Policy CRUD cmdlets from Resources module (#23031)" This reverts commit 78e4791.
1 parent de47631 commit 841e3ea

File tree

844 files changed

+64519
-142612
lines changed

Some content is hidden

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

844 files changed

+64519
-142612
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 = 'ce1102e2-beb9-4e43-86e5-fe57dff5fb06'
2+
GUID = 'ef9a8a67-ab5b-4d21-a3ff-15127e64527d'
33
RootModule = './Az.Authorization.psm1'
44
ModuleVersion = '0.1.0'
55
CompatiblePSEditions = 'Core', 'Desktop'

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ if($NoDocs) {
143143
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
144144
}
145145
$null = New-Item -ItemType Directory -Force -Path $docsFolder
146-
$addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true')
147-
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo
146+
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid
148147
}
149148

150149
Write-Host -ForegroundColor Green 'Creating format.ps1xml...'
@@ -163,10 +162,4 @@ Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFol
163162
Write-Host -ForegroundColor Green 'Creating example stubs...'
164163
Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder
165164

166-
if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
167-
{
168-
Write-Host -ForegroundColor Green 'Creating ux metadata...'
169-
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
170-
}
171-
172165
Write-Host -ForegroundColor Green '-------------Done-------------'

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: ce1102e2-beb9-4e43-86e5-fe57dff5fb06
3+
Module Guid: ef9a8a67-ab5b-4d21-a3ff-15127e64527d
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.authorization
55
Help Version: 1.0.0.0
66
Locale: en-US

src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentSchedule.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,5 +212,24 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
212212
213213
## NOTES
214214
215+
ALIASES
216+
217+
COMPLEX PARAMETER PROPERTIES
218+
219+
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
220+
221+
222+
`INPUTOBJECT <IAuthorizationIdentity>`: Identity Parameter
223+
- `[Id <String>]`: Resource identity path
224+
- `[RoleAssignmentScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role assignment schedule to get.
225+
- `[RoleAssignmentScheduleName <String>]`: The name (guid) of the role assignment schedule to get.
226+
- `[RoleAssignmentScheduleRequestName <String>]`: The name of the role assignment to create. It can be any valid GUID.
227+
- `[RoleEligibilityScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role eligibility schedule to get.
228+
- `[RoleEligibilityScheduleName <String>]`: The name (guid) of the role eligibility schedule to get.
229+
- `[RoleEligibilityScheduleRequestName <String>]`: The name of the role eligibility to create. It can be any valid GUID.
230+
- `[RoleManagementPolicyAssignmentName <String>]`: The name of format {guid_guid} the role management policy assignment to get.
231+
- `[RoleManagementPolicyName <String>]`: The name (guid) of the role management policy to get.
232+
- `[Scope <String>]`: The scope of the role management policy.
233+
215234
## RELATED LINKS
216235

src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleInstance.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,5 +213,24 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
213213
214214
## NOTES
215215
216+
ALIASES
217+
218+
COMPLEX PARAMETER PROPERTIES
219+
220+
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
221+
222+
223+
`INPUTOBJECT <IAuthorizationIdentity>`: Identity Parameter
224+
- `[Id <String>]`: Resource identity path
225+
- `[RoleAssignmentScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role assignment schedule to get.
226+
- `[RoleAssignmentScheduleName <String>]`: The name (guid) of the role assignment schedule to get.
227+
- `[RoleAssignmentScheduleRequestName <String>]`: The name of the role assignment to create. It can be any valid GUID.
228+
- `[RoleEligibilityScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role eligibility schedule to get.
229+
- `[RoleEligibilityScheduleName <String>]`: The name (guid) of the role eligibility schedule to get.
230+
- `[RoleEligibilityScheduleRequestName <String>]`: The name of the role eligibility to create. It can be any valid GUID.
231+
- `[RoleManagementPolicyAssignmentName <String>]`: The name of format {guid_guid} the role management policy assignment to get.
232+
- `[RoleManagementPolicyName <String>]`: The name (guid) of the role management policy to get.
233+
- `[Scope <String>]`: The scope of the role management policy.
234+
216235
## RELATED LINKS
217236

src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleRequest.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,5 +197,24 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
197197
198198
## NOTES
199199
200+
ALIASES
201+
202+
COMPLEX PARAMETER PROPERTIES
203+
204+
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
205+
206+
207+
`INPUTOBJECT <IAuthorizationIdentity>`: Identity Parameter
208+
- `[Id <String>]`: Resource identity path
209+
- `[RoleAssignmentScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role assignment schedule to get.
210+
- `[RoleAssignmentScheduleName <String>]`: The name (guid) of the role assignment schedule to get.
211+
- `[RoleAssignmentScheduleRequestName <String>]`: The name of the role assignment to create. It can be any valid GUID.
212+
- `[RoleEligibilityScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role eligibility schedule to get.
213+
- `[RoleEligibilityScheduleName <String>]`: The name (guid) of the role eligibility schedule to get.
214+
- `[RoleEligibilityScheduleRequestName <String>]`: The name of the role eligibility to create. It can be any valid GUID.
215+
- `[RoleManagementPolicyAssignmentName <String>]`: The name of format {guid_guid} the role management policy assignment to get.
216+
- `[RoleManagementPolicyName <String>]`: The name (guid) of the role management policy to get.
217+
- `[Scope <String>]`: The scope of the role management policy.
218+
200219
## RELATED LINKS
201220

src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilitySchedule.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,5 +212,24 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
212212
213213
## NOTES
214214
215+
ALIASES
216+
217+
COMPLEX PARAMETER PROPERTIES
218+
219+
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
220+
221+
222+
`INPUTOBJECT <IAuthorizationIdentity>`: Identity Parameter
223+
- `[Id <String>]`: Resource identity path
224+
- `[RoleAssignmentScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role assignment schedule to get.
225+
- `[RoleAssignmentScheduleName <String>]`: The name (guid) of the role assignment schedule to get.
226+
- `[RoleAssignmentScheduleRequestName <String>]`: The name of the role assignment to create. It can be any valid GUID.
227+
- `[RoleEligibilityScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role eligibility schedule to get.
228+
- `[RoleEligibilityScheduleName <String>]`: The name (guid) of the role eligibility schedule to get.
229+
- `[RoleEligibilityScheduleRequestName <String>]`: The name of the role eligibility to create. It can be any valid GUID.
230+
- `[RoleManagementPolicyAssignmentName <String>]`: The name of format {guid_guid} the role management policy assignment to get.
231+
- `[RoleManagementPolicyName <String>]`: The name (guid) of the role management policy to get.
232+
- `[Scope <String>]`: The scope of the role management policy.
233+
215234
## RELATED LINKS
216235

src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilityScheduleInstance.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,5 +213,24 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
213213
214214
## NOTES
215215
216+
ALIASES
217+
218+
COMPLEX PARAMETER PROPERTIES
219+
220+
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
221+
222+
223+
`INPUTOBJECT <IAuthorizationIdentity>`: Identity Parameter
224+
- `[Id <String>]`: Resource identity path
225+
- `[RoleAssignmentScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role assignment schedule to get.
226+
- `[RoleAssignmentScheduleName <String>]`: The name (guid) of the role assignment schedule to get.
227+
- `[RoleAssignmentScheduleRequestName <String>]`: The name of the role assignment to create. It can be any valid GUID.
228+
- `[RoleEligibilityScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role eligibility schedule to get.
229+
- `[RoleEligibilityScheduleName <String>]`: The name (guid) of the role eligibility schedule to get.
230+
- `[RoleEligibilityScheduleRequestName <String>]`: The name of the role eligibility to create. It can be any valid GUID.
231+
- `[RoleManagementPolicyAssignmentName <String>]`: The name of format {guid_guid} the role management policy assignment to get.
232+
- `[RoleManagementPolicyName <String>]`: The name (guid) of the role management policy to get.
233+
- `[Scope <String>]`: The scope of the role management policy.
234+
216235
## RELATED LINKS
217236

src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilityScheduleRequest.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,5 +197,24 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
197197
198198
## NOTES
199199
200+
ALIASES
201+
202+
COMPLEX PARAMETER PROPERTIES
203+
204+
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
205+
206+
207+
`INPUTOBJECT <IAuthorizationIdentity>`: Identity Parameter
208+
- `[Id <String>]`: Resource identity path
209+
- `[RoleAssignmentScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role assignment schedule to get.
210+
- `[RoleAssignmentScheduleName <String>]`: The name (guid) of the role assignment schedule to get.
211+
- `[RoleAssignmentScheduleRequestName <String>]`: The name of the role assignment to create. It can be any valid GUID.
212+
- `[RoleEligibilityScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role eligibility schedule to get.
213+
- `[RoleEligibilityScheduleName <String>]`: The name (guid) of the role eligibility schedule to get.
214+
- `[RoleEligibilityScheduleRequestName <String>]`: The name of the role eligibility to create. It can be any valid GUID.
215+
- `[RoleManagementPolicyAssignmentName <String>]`: The name of format {guid_guid} the role management policy assignment to get.
216+
- `[RoleManagementPolicyName <String>]`: The name (guid) of the role management policy to get.
217+
- `[Scope <String>]`: The scope of the role management policy.
218+
200219
## RELATED LINKS
201220

src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibleChildResource.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,5 +143,24 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
143143
144144
## NOTES
145145
146+
ALIASES
147+
148+
COMPLEX PARAMETER PROPERTIES
149+
150+
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
151+
152+
153+
`INPUTOBJECT <IAuthorizationIdentity>`: Identity Parameter
154+
- `[Id <String>]`: Resource identity path
155+
- `[RoleAssignmentScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role assignment schedule to get.
156+
- `[RoleAssignmentScheduleName <String>]`: The name (guid) of the role assignment schedule to get.
157+
- `[RoleAssignmentScheduleRequestName <String>]`: The name of the role assignment to create. It can be any valid GUID.
158+
- `[RoleEligibilityScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role eligibility schedule to get.
159+
- `[RoleEligibilityScheduleName <String>]`: The name (guid) of the role eligibility schedule to get.
160+
- `[RoleEligibilityScheduleRequestName <String>]`: The name of the role eligibility to create. It can be any valid GUID.
161+
- `[RoleManagementPolicyAssignmentName <String>]`: The name of format {guid_guid} the role management policy assignment to get.
162+
- `[RoleManagementPolicyName <String>]`: The name (guid) of the role management policy to get.
163+
- `[Scope <String>]`: The scope of the role management policy.
164+
146165
## RELATED LINKS
147166

0 commit comments

Comments
 (0)