diff --git a/src/Resources/Authorization.Autorest/Az.Authorization.nuspec b/src/Resources/Authorization.Autorest/Az.Authorization.nuspec new file mode 100644 index 000000000000..a3e2c82bfc85 --- /dev/null +++ b/src/Resources/Authorization.Autorest/Az.Authorization.nuspec @@ -0,0 +1,32 @@ + + + + Az.Authorization + 0.1.0 + Microsoft Corporation + Microsoft Corporation + true + https://aka.ms/azps-license + https://github.com/Azure/azure-powershell + Microsoft Azure PowerShell: $(service-name) cmdlets + + Microsoft Corporation. All rights reserved. + Azure ResourceManager ARM PSModule $(service-name) + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Resources/Authorization.Autorest/Properties/AssemblyInfo.cs b/src/Resources/Authorization.Autorest/Properties/AssemblyInfo.cs index f15d49147166..81c0c1fe4e12 100644 --- a/src/Resources/Authorization.Autorest/Properties/AssemblyInfo.cs +++ b/src/Resources/Authorization.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Authorization")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("8.0.1")] -[assembly: System.Reflection.AssemblyVersionAttribute("8.0.1")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("8.1.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("8.1.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] diff --git a/src/Resources/Authorization.Autorest/README.md b/src/Resources/Authorization.Autorest/README.md index a8c292ddd31b..32474383c6f4 100644 --- a/src/Resources/Authorization.Autorest/README.md +++ b/src/Resources/Authorization.Autorest/README.md @@ -49,14 +49,8 @@ title: Authorization namespace: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization # remove subject-prefix for all generated cmdlets. subject-prefix: '' -identity-correction-for-post: true -resourcegroup-append: true default-exclude-tableview-properties: false -# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option -use-extension: - "@autorest/powershell": "3.x" - directive: - where: verb: Get|Update @@ -102,19 +96,11 @@ directive: } # Remove "Create", "CreateViaIdentity", "CreateViaIdentityExpanded" syntax variant of the cmdlets. Because of new cmdlet does unsupport. - - where: - verb: New - variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$ - # subject: RoleEligibilityScheduleRequest$|RoleManagementPolicyAssignment$ - remove: true - # Remove "Update", "UpdateViaIdentity", syntax variant of the cmdlets. Because of update cmdlet does unsupport. - where: - verb: Update - variant: ^Update$|^UpdateViaIdentity$ - subject: RoleManagementPolicy$ + variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))|^CreateViaIdentityExpanded$ remove: true - + # The parameter is not friendly and needs to be renamed. - where: parameter-name: ^TicketInfoTicketNumber$ @@ -128,8 +114,9 @@ directive: # Generate cmdlet for RoleManagementPolicyRule memory object and copy to the custom folder for rename cmdlet(New-AzAuthorizationRoleManagementPolicyRuleObject --> New-AzRoleManagementPolicyRuleObject). # Then cancel configuration of it. # - model-cmdlet: - # - RoleManagementPolicyRule - + # - model-name: RoleManagementPolicyRule + # cmdlet-name: New-AzRoleManagementPolicyRuleObject + - where: model-name: EligibleChildResource set: diff --git a/src/Resources/Authorization.Autorest/docs/Az.Authorization.md b/src/Resources/Authorization.Autorest/docs/Az.Authorization.md index 5f70763a1bce..27b23d141797 100644 --- a/src/Resources/Authorization.Autorest/docs/Az.Authorization.md +++ b/src/Resources/Authorization.Autorest/docs/Az.Authorization.md @@ -39,10 +39,10 @@ Get the specified role management policy for a resource scope Get the specified role management policy assignment for a resource scope ### [New-AzRoleAssignmentScheduleRequest](New-AzRoleAssignmentScheduleRequest.md) -Creates a role assignment schedule request. +Create a role assignment schedule request. ### [New-AzRoleEligibilityScheduleRequest](New-AzRoleEligibilityScheduleRequest.md) -Creates a role eligibility schedule request. +Create a role eligibility schedule request. ### [New-AzRoleManagementPolicyAssignment](New-AzRoleManagementPolicyAssignment.md) Create a role management policy assignment @@ -59,6 +59,15 @@ Cancels a pending role assignment schedule request. ### [Stop-AzRoleEligibilityScheduleRequest](Stop-AzRoleEligibilityScheduleRequest.md) Cancels a pending role eligibility schedule request. +### [Update-AzRoleAssignmentScheduleRequest](Update-AzRoleAssignmentScheduleRequest.md) +Update a role assignment schedule request. + +### [Update-AzRoleEligibilityScheduleRequest](Update-AzRoleEligibilityScheduleRequest.md) +Update a role eligibility schedule request. + ### [Update-AzRoleManagementPolicy](Update-AzRoleManagementPolicy.md) Update a role management policy +### [Update-AzRoleManagementPolicyAssignment](Update-AzRoleManagementPolicyAssignment.md) +Update a role management policy assignment + diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentSchedule.md b/src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentSchedule.md index c6e53e115601..cc3612e91096 100644 --- a/src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentSchedule.md +++ b/src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentSchedule.md @@ -155,7 +155,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -208,7 +207,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedule +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleAssignmentSchedule ## NOTES diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleInstance.md b/src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleInstance.md index a37ee5416d57..528d38a3a94f 100644 --- a/src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleInstance.md +++ b/src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleInstance.md @@ -156,7 +156,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -209,7 +208,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleInstance +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleAssignmentScheduleInstance ## NOTES diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleRequest.md b/src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleRequest.md index 1656f893ecef..a5f59efc256c 100644 --- a/src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleRequest.md +++ b/src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleRequest.md @@ -140,7 +140,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -193,7 +192,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleRequest +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleAssignmentScheduleRequest ## NOTES diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilitySchedule.md b/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilitySchedule.md index 4f3e498cb095..259e9f92c636 100644 --- a/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilitySchedule.md +++ b/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilitySchedule.md @@ -155,7 +155,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -208,7 +207,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilitySchedule +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleEligibilitySchedule ## NOTES diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilityScheduleInstance.md b/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilityScheduleInstance.md index 84739d048fd7..ad5f0e1ba0f9 100644 --- a/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilityScheduleInstance.md +++ b/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilityScheduleInstance.md @@ -156,7 +156,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -209,7 +208,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilityScheduleInstance +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleEligibilityScheduleInstance ## NOTES diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilityScheduleRequest.md b/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilityScheduleRequest.md index 52a34c7e8b1d..332548919a43 100644 --- a/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilityScheduleRequest.md +++ b/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilityScheduleRequest.md @@ -140,7 +140,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -193,7 +192,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilityScheduleRequest +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleEligibilityScheduleRequest ## NOTES diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibleChildResource.md b/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibleChildResource.md index 87f1b4350ed5..8c6d230dfdfa 100644 --- a/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibleChildResource.md +++ b/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibleChildResource.md @@ -12,18 +12,11 @@ Get the child resources of a resource on which user has eligible access ## SYNTAX -### Get (Default) ``` Get-AzRoleEligibleChildResource -Scope [-Filter ] [-DefaultProfile ] [] ``` -### GetViaIdentity -``` -Get-AzRoleEligibleChildResource -InputObject [-Filter ] - [-DefaultProfile ] [] -``` - ## DESCRIPTION Get the child resources of a resource on which user has eligible access @@ -99,28 +92,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -Scope The scope of the role management policy. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: (All) Aliases: Required: True @@ -135,11 +112,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity - ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IEligibleChildResource +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IEligibleChildResource ## NOTES diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleManagementPolicy.md b/src/Resources/Authorization.Autorest/docs/Get-AzRoleManagementPolicy.md index 44763471f8f2..ed82ea896dc9 100644 --- a/src/Resources/Authorization.Autorest/docs/Get-AzRoleManagementPolicy.md +++ b/src/Resources/Authorization.Autorest/docs/Get-AzRoleManagementPolicy.md @@ -84,7 +84,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -137,7 +136,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicy +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicy ## NOTES diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleManagementPolicyAssignment.md b/src/Resources/Authorization.Autorest/docs/Get-AzRoleManagementPolicyAssignment.md index 7f6be71f8394..159857e18cd7 100644 --- a/src/Resources/Authorization.Autorest/docs/Get-AzRoleManagementPolicyAssignment.md +++ b/src/Resources/Authorization.Autorest/docs/Get-AzRoleManagementPolicyAssignment.md @@ -86,7 +86,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -139,7 +138,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyAssignment +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyAssignment ## NOTES diff --git a/src/Resources/Authorization.Autorest/docs/New-AzRoleAssignmentScheduleRequest.md b/src/Resources/Authorization.Autorest/docs/New-AzRoleAssignmentScheduleRequest.md index 0720f007382d..0aacbf5fe006 100644 --- a/src/Resources/Authorization.Autorest/docs/New-AzRoleAssignmentScheduleRequest.md +++ b/src/Resources/Authorization.Autorest/docs/New-AzRoleAssignmentScheduleRequest.md @@ -8,22 +8,35 @@ schema: 2.0.0 # New-AzRoleAssignmentScheduleRequest ## SYNOPSIS -Creates a role assignment schedule request. +Create a role assignment schedule request. ## SYNTAX +### CreateExpanded (Default) ``` New-AzRoleAssignmentScheduleRequest -Name -Scope [-Condition ] [-ConditionVersion ] [-ExpirationDuration ] [-ExpirationEndDateTime ] - [-ExpirationType ] [-Justification ] [-LinkedRoleEligibilityScheduleId ] - [-PrincipalId ] [-RequestType ] [-RoleDefinitionId ] + [-ExpirationType ] [-Justification ] [-LinkedRoleEligibilityScheduleId ] + [-PrincipalId ] [-RequestType ] [-RoleDefinitionId ] [-ScheduleInfoStartDateTime ] [-TargetRoleAssignmentScheduleId ] [-TargetRoleAssignmentScheduleInstanceId ] [-TicketNumber ] [-TicketSystem ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` +### CreateViaJsonFilePath +``` +New-AzRoleAssignmentScheduleRequest -Name -Scope -JsonFilePath + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzRoleAssignmentScheduleRequest -Name -Scope -JsonString + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION -Creates a role assignment schedule request. +Create a role assignment schedule request. ## EXAMPLES @@ -100,7 +113,7 @@ e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:Contai ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -116,7 +129,7 @@ Currently accepted value is '2.0' ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -147,7 +160,7 @@ Duration of the role assignment schedule in TimeSpan. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -162,7 +175,7 @@ End DateTime of the role assignment schedule. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -176,8 +189,8 @@ Accept wildcard characters: False Type of the role assignment schedule expiration ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Type -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -187,12 +200,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Justification Justification for the role assignment ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -207,7 +250,7 @@ The linked role eligibility schedule id - to activate an eligibility. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -238,7 +281,7 @@ The principal ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -253,8 +296,8 @@ The type of the role assignment schedule request. Eg: SelfActivate, AdminAssign etc ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RequestType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -269,7 +312,7 @@ The role definition ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -284,7 +327,7 @@ Start DateTime of the role assignment schedule. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -316,7 +359,7 @@ The resultant role assignment schedule id or the role assignment schedule id bei ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -331,7 +374,7 @@ The role assignment schedule instance id being updated ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -346,7 +389,7 @@ Ticket number for the role assignment ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -361,7 +404,7 @@ Ticket system name for the role assignment ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -409,7 +452,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleRequest +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleAssignmentScheduleRequest ## NOTES diff --git a/src/Resources/Authorization.Autorest/docs/New-AzRoleEligibilityScheduleRequest.md b/src/Resources/Authorization.Autorest/docs/New-AzRoleEligibilityScheduleRequest.md index 5889821fbb78..1d44e10f91c7 100644 --- a/src/Resources/Authorization.Autorest/docs/New-AzRoleEligibilityScheduleRequest.md +++ b/src/Resources/Authorization.Autorest/docs/New-AzRoleEligibilityScheduleRequest.md @@ -8,22 +8,35 @@ schema: 2.0.0 # New-AzRoleEligibilityScheduleRequest ## SYNOPSIS -Creates a role eligibility schedule request. +Create a role eligibility schedule request. ## SYNTAX +### CreateExpanded (Default) ``` New-AzRoleEligibilityScheduleRequest -Name -Scope [-Condition ] [-ConditionVersion ] [-ExpirationDuration ] [-ExpirationEndDateTime ] - [-ExpirationType ] [-Justification ] [-PrincipalId ] [-RequestType ] + [-ExpirationType ] [-Justification ] [-PrincipalId ] [-RequestType ] [-RoleDefinitionId ] [-ScheduleInfoStartDateTime ] [-TargetRoleEligibilityScheduleId ] [-TargetRoleEligibilityScheduleInstanceId ] [-TicketNumber ] [-TicketSystem ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` +### CreateViaJsonFilePath +``` +New-AzRoleEligibilityScheduleRequest -Name -Scope -JsonFilePath + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzRoleEligibilityScheduleRequest -Name -Scope -JsonString + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION -Creates a role eligibility schedule request. +Create a role eligibility schedule request. ## EXAMPLES @@ -68,7 +81,7 @@ e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:Contai ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -84,7 +97,7 @@ Currently accepted value is '2.0' ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -115,7 +128,7 @@ Duration of the role eligibility schedule in TimeSpan. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -130,7 +143,7 @@ End DateTime of the role eligibility schedule. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -144,8 +157,8 @@ Accept wildcard characters: False Type of the role eligibility schedule expiration ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Type -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -155,12 +168,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Justification Justification for the role eligibility ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -191,7 +234,7 @@ The principal ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -206,8 +249,8 @@ The type of the role assignment schedule request. Eg: SelfActivate, AdminAssign etc ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RequestType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -222,7 +265,7 @@ The role definition ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -237,7 +280,7 @@ Start DateTime of the role eligibility schedule. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -269,7 +312,7 @@ The resultant role eligibility schedule id or the role eligibility schedule id b ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -284,7 +327,7 @@ The role eligibility schedule instance id being updated ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -299,7 +342,7 @@ Ticket number for the role eligibility ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -314,7 +357,7 @@ Ticket system name for the role eligibility ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -362,7 +405,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilityScheduleRequest +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleEligibilityScheduleRequest ## NOTES diff --git a/src/Resources/Authorization.Autorest/docs/New-AzRoleManagementPolicyAssignment.md b/src/Resources/Authorization.Autorest/docs/New-AzRoleManagementPolicyAssignment.md index 22f4167e0ef5..b66be1074c9a 100644 --- a/src/Resources/Authorization.Autorest/docs/New-AzRoleManagementPolicyAssignment.md +++ b/src/Resources/Authorization.Autorest/docs/New-AzRoleManagementPolicyAssignment.md @@ -12,11 +12,24 @@ Create a role management policy assignment ## SYNTAX +### CreateExpanded (Default) ``` New-AzRoleManagementPolicyAssignment -Name -Scope [-PolicyId ] [-RoleDefinitionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` +### CreateViaJsonFilePath +``` +New-AzRoleManagementPolicyAssignment -Name -Scope -JsonFilePath + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzRoleManagementPolicyAssignment -Name -Scope -JsonString + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Create a role management policy assignment @@ -52,6 +65,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The name of format {guid_guid} the role management policy assignment to upsert. @@ -72,7 +115,7 @@ The policy id role management policy assignment. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -87,7 +130,7 @@ The role definition of management policy assignment. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -150,7 +193,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyAssignment +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyAssignment ## NOTES diff --git a/src/Resources/Authorization.Autorest/docs/Remove-AzRoleManagementPolicy.md b/src/Resources/Authorization.Autorest/docs/Remove-AzRoleManagementPolicy.md index e4c884313ade..40cd26be3bca 100644 --- a/src/Resources/Authorization.Autorest/docs/Remove-AzRoleManagementPolicy.md +++ b/src/Resources/Authorization.Autorest/docs/Remove-AzRoleManagementPolicy.md @@ -61,7 +61,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity diff --git a/src/Resources/Authorization.Autorest/docs/Remove-AzRoleManagementPolicyAssignment.md b/src/Resources/Authorization.Autorest/docs/Remove-AzRoleManagementPolicyAssignment.md index 1a7de8b21f2a..483257dd7d68 100644 --- a/src/Resources/Authorization.Autorest/docs/Remove-AzRoleManagementPolicyAssignment.md +++ b/src/Resources/Authorization.Autorest/docs/Remove-AzRoleManagementPolicyAssignment.md @@ -61,7 +61,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity diff --git a/src/Resources/Authorization.Autorest/docs/Stop-AzRoleAssignmentScheduleRequest.md b/src/Resources/Authorization.Autorest/docs/Stop-AzRoleAssignmentScheduleRequest.md index 02701c5df17f..3900b02e4731 100644 --- a/src/Resources/Authorization.Autorest/docs/Stop-AzRoleAssignmentScheduleRequest.md +++ b/src/Resources/Authorization.Autorest/docs/Stop-AzRoleAssignmentScheduleRequest.md @@ -58,7 +58,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity diff --git a/src/Resources/Authorization.Autorest/docs/Stop-AzRoleEligibilityScheduleRequest.md b/src/Resources/Authorization.Autorest/docs/Stop-AzRoleEligibilityScheduleRequest.md index 4c52fd912dd4..4c6b5802ad4f 100644 --- a/src/Resources/Authorization.Autorest/docs/Stop-AzRoleEligibilityScheduleRequest.md +++ b/src/Resources/Authorization.Autorest/docs/Stop-AzRoleEligibilityScheduleRequest.md @@ -58,7 +58,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity diff --git a/src/Resources/Authorization.Autorest/docs/Update-AzRoleAssignmentScheduleRequest.md b/src/Resources/Authorization.Autorest/docs/Update-AzRoleAssignmentScheduleRequest.md new file mode 100644 index 000000000000..1562b40ab9bb --- /dev/null +++ b/src/Resources/Authorization.Autorest/docs/Update-AzRoleAssignmentScheduleRequest.md @@ -0,0 +1,398 @@ +--- +external help file: +Module Name: Az.Resources +online version: https://learn.microsoft.com/powershell/module/az.resources/update-azroleassignmentschedulerequest +schema: 2.0.0 +--- + +# Update-AzRoleAssignmentScheduleRequest + +## SYNOPSIS +Update a role assignment schedule request. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzRoleAssignmentScheduleRequest -Name -Scope [-Condition ] + [-ConditionVersion ] [-ExpirationDuration ] [-ExpirationEndDateTime ] + [-ExpirationType ] [-Justification ] [-LinkedRoleEligibilityScheduleId ] + [-PrincipalId ] [-RequestType ] [-RoleDefinitionId ] + [-ScheduleInfoStartDateTime ] [-TargetRoleAssignmentScheduleId ] + [-TargetRoleAssignmentScheduleInstanceId ] [-TicketNumber ] [-TicketSystem ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzRoleAssignmentScheduleRequest -InputObject [-Condition ] + [-ConditionVersion ] [-ExpirationDuration ] [-ExpirationEndDateTime ] + [-ExpirationType ] [-Justification ] [-LinkedRoleEligibilityScheduleId ] + [-PrincipalId ] [-RequestType ] [-RoleDefinitionId ] + [-ScheduleInfoStartDateTime ] [-TargetRoleAssignmentScheduleId ] + [-TargetRoleAssignmentScheduleInstanceId ] [-TicketNumber ] [-TicketSystem ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Update a role assignment schedule request. + +## EXAMPLES + +### Example 1: Update a new role assignment schedule request as Admin +```powershell +$guid = "12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca" +$startTime = Get-Date -Format o +$scope = "/subscriptions/11111111-2222-3333-4444-123456789101/" +Update-AzRoleAssignmentScheduleRequest -Name $guid -Scope $scope -ExpirationDuration PT1H -ExpirationType AfterDuration -PrincipalId 5a4bdd72-ab3e-4d8e-ab0f-8dd8917481a2 -RequestType AdminAssign -RoleDefinitionId subscriptions/11111111-2222-3333-4444-123456789101/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7 -ScheduleInfoStartDateTime $startTime +``` + +```output +Name Type Scope RoleDefinitionId +---- ---- ----- ---------------- +12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/11111111-2222-3333-4444-123456789101 /subscriptions/11111111-2222-3333-4444-123456789101/providers/Microsoft.Authori… +``` + +Updates a request to provision an active assignment of `roleDefinition` on the `scope` for the specified `principal` + +## PARAMETERS + +### -Condition +The conditions on the role assignment. +This limits the resources it can be assigned to. +e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container' + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ConditionVersion +Version of the condition. +Currently accepted value is '2.0' + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpirationDuration +Duration of the role assignment schedule in TimeSpan. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpirationEndDateTime +End DateTime of the role assignment schedule. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpirationType +Type of the role assignment schedule expiration + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Justification +Justification for the role assignment + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LinkedRoleEligibilityScheduleId +The linked role eligibility schedule id - to activate an eligibility. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the role assignment to create. +It can be any valid GUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: RoleAssignmentScheduleRequestName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PrincipalId +The principal ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestType +The type of the role assignment schedule request. +Eg: SelfActivate, AdminAssign etc + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleDefinitionId +The role definition ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ScheduleInfoStartDateTime +Start DateTime of the role assignment schedule. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Scope +The scope of the role assignment schedule request to create. +The scope can be any REST resource instance. +For example, use '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a subscription, '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TargetRoleAssignmentScheduleId +The resultant role assignment schedule id or the role assignment schedule id being updated + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TargetRoleAssignmentScheduleInstanceId +The role assignment schedule instance id being updated + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TicketNumber +Ticket number for the role assignment + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TicketSystem +Ticket system name for the role assignment + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleAssignmentScheduleRequest + +## NOTES + +## RELATED LINKS + diff --git a/src/Resources/Authorization.Autorest/docs/Update-AzRoleEligibilityScheduleRequest.md b/src/Resources/Authorization.Autorest/docs/Update-AzRoleEligibilityScheduleRequest.md new file mode 100644 index 000000000000..b8859afb97b9 --- /dev/null +++ b/src/Resources/Authorization.Autorest/docs/Update-AzRoleEligibilityScheduleRequest.md @@ -0,0 +1,383 @@ +--- +external help file: +Module Name: Az.Resources +online version: https://learn.microsoft.com/powershell/module/az.resources/update-azroleeligibilityschedulerequest +schema: 2.0.0 +--- + +# Update-AzRoleEligibilityScheduleRequest + +## SYNOPSIS +Update a role eligibility schedule request. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzRoleEligibilityScheduleRequest -Name -Scope [-Condition ] + [-ConditionVersion ] [-ExpirationDuration ] [-ExpirationEndDateTime ] + [-ExpirationType ] [-Justification ] [-PrincipalId ] [-RequestType ] + [-RoleDefinitionId ] [-ScheduleInfoStartDateTime ] + [-TargetRoleEligibilityScheduleId ] [-TargetRoleEligibilityScheduleInstanceId ] + [-TicketNumber ] [-TicketSystem ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzRoleEligibilityScheduleRequest -InputObject [-Condition ] + [-ConditionVersion ] [-ExpirationDuration ] [-ExpirationEndDateTime ] + [-ExpirationType ] [-Justification ] [-PrincipalId ] [-RequestType ] + [-RoleDefinitionId ] [-ScheduleInfoStartDateTime ] + [-TargetRoleEligibilityScheduleId ] [-TargetRoleEligibilityScheduleInstanceId ] + [-TicketNumber ] [-TicketSystem ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Update a role eligibility schedule request. + +## EXAMPLES + +### Example 1: Update a new role eligibile schedule request as Admin +```powershell +$guid = "12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca" +$startTime = Get-Date -Format o +$scope = "/subscriptions/11111111-2222-3333-4444-123456789101/" +Update-AzRoleEligibilityScheduleRequest -Name $guid -Scope $scope -ExpirationDuration PT1H -ExpirationType AfterDuration -PrincipalId 5a4bdd72-ab3e-4d8e-ab0f-8dd8917481a2 -RequestType AdminAssign -RoleDefinitionId subscriptions/11111111-2222-3333-4444-123456789101/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7 -ScheduleInfoStartDateTime $startTime +``` + +```output +Name Type Scope RoleDefinitionId +---- ---- ----- ---------------- +12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleEligibilityScheduleRequests /subscriptions/11111111-2222-3333-4444-123456789101 /subscriptions/11111111-2222-3333-4444-123456789101/providers/Microsoft.Authori… +``` + +Updates a request to provision an eligible assignment of `roleDefinition` on the `scope` for the specified `principal` + +## PARAMETERS + +### -Condition +The conditions on the role assignment. +This limits the resources it can be assigned to. +e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container' + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ConditionVersion +Version of the condition. +Currently accepted value is '2.0' + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpirationDuration +Duration of the role eligibility schedule in TimeSpan. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpirationEndDateTime +End DateTime of the role eligibility schedule. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpirationType +Type of the role eligibility schedule expiration + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Justification +Justification for the role eligibility + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the role eligibility to create. +It can be any valid GUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: RoleEligibilityScheduleRequestName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PrincipalId +The principal ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestType +The type of the role assignment schedule request. +Eg: SelfActivate, AdminAssign etc + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleDefinitionId +The role definition ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ScheduleInfoStartDateTime +Start DateTime of the role eligibility schedule. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Scope +The scope of the role eligibility schedule request to create. +The scope can be any REST resource instance. +For example, use '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a subscription, '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TargetRoleEligibilityScheduleId +The resultant role eligibility schedule id or the role eligibility schedule id being updated + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TargetRoleEligibilityScheduleInstanceId +The role eligibility schedule instance id being updated + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TicketNumber +Ticket number for the role eligibility + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TicketSystem +Ticket system name for the role eligibility + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleEligibilityScheduleRequest + +## NOTES + +## RELATED LINKS + diff --git a/src/Resources/Authorization.Autorest/docs/Update-AzRoleManagementPolicy.md b/src/Resources/Authorization.Autorest/docs/Update-AzRoleManagementPolicy.md index 677e21ca58d1..e2b06826895d 100644 --- a/src/Resources/Authorization.Autorest/docs/Update-AzRoleManagementPolicy.md +++ b/src/Resources/Authorization.Autorest/docs/Update-AzRoleManagementPolicy.md @@ -26,6 +26,18 @@ Update-AzRoleManagementPolicy -InputObject [-Descriptio [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` +### UpdateViaJsonFilePath +``` +Update-AzRoleManagementPolicy -Name -Scope -JsonFilePath + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaJsonString +``` +Update-AzRoleManagementPolicy -Name -Scope -JsonString [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Update a role management policy @@ -125,7 +137,7 @@ The role management policy description. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -140,7 +152,7 @@ The role management policy display name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -152,7 +164,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -171,7 +182,7 @@ The role management policy is default policy. ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -181,12 +192,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The name (guid) of the role management policy to upsert. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: RoleManagementPolicyName Required: True @@ -198,11 +239,10 @@ Accept wildcard characters: False ### -Rule The rule applied to the policy. -To construct, see NOTES section for RULE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRule[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyRule[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -217,7 +257,7 @@ The scope of the role management policy to upsert. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -267,7 +307,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicy +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicy ## NOTES diff --git a/src/Resources/Authorization.Autorest/docs/Update-AzRoleManagementPolicyAssignment.md b/src/Resources/Authorization.Autorest/docs/Update-AzRoleManagementPolicyAssignment.md new file mode 100644 index 000000000000..e6b23951e8c6 --- /dev/null +++ b/src/Resources/Authorization.Autorest/docs/Update-AzRoleManagementPolicyAssignment.md @@ -0,0 +1,182 @@ +--- +external help file: +Module Name: Az.Resources +online version: https://learn.microsoft.com/powershell/module/az.resources/update-azrolemanagementpolicyassignment +schema: 2.0.0 +--- + +# Update-AzRoleManagementPolicyAssignment + +## SYNOPSIS +Update a role management policy assignment + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzRoleManagementPolicyAssignment -Name -Scope [-PolicyId ] + [-RoleDefinitionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzRoleManagementPolicyAssignment -InputObject [-PolicyId ] + [-RoleDefinitionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Update a role management policy assignment + +## EXAMPLES + +### Example 1: update role management policy assignment +```powershell +$scope = "/subscriptions/11111111-2222-3333-4444-123456789101/" +Update-AzRoleManagementPolicyAssignment -Scope $scope -Name "11111111-2222-3333-4444-123456789102" +``` + +```output +"Not implemented exception" +``` + +This operation is currently not supported. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of format {guid_guid} the role management policy assignment to upsert. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: RoleManagementPolicyAssignmentName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PolicyId +The policy id role management policy assignment. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleDefinitionId +The role definition of management policy assignment. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Scope +The scope of the role management policy assignment to upsert. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyAssignment + +## NOTES + +## RELATED LINKS + diff --git a/src/Resources/Authorization.Autorest/examples/Update-AzRoleAssignmentScheduleRequest.md b/src/Resources/Authorization.Autorest/examples/Update-AzRoleAssignmentScheduleRequest.md new file mode 100644 index 000000000000..78773bc6bef3 --- /dev/null +++ b/src/Resources/Authorization.Autorest/examples/Update-AzRoleAssignmentScheduleRequest.md @@ -0,0 +1,15 @@ +### Example 1: Update a new role assignment schedule request as Admin +```powershell +$guid = "12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca" +$startTime = Get-Date -Format o +$scope = "/subscriptions/11111111-2222-3333-4444-123456789101/" +Update-AzRoleAssignmentScheduleRequest -Name $guid -Scope $scope -ExpirationDuration PT1H -ExpirationType AfterDuration -PrincipalId 5a4bdd72-ab3e-4d8e-ab0f-8dd8917481a2 -RequestType AdminAssign -RoleDefinitionId subscriptions/11111111-2222-3333-4444-123456789101/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7 -ScheduleInfoStartDateTime $startTime +``` + +```output +Name Type Scope RoleDefinitionId +---- ---- ----- ---------------- +12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/11111111-2222-3333-4444-123456789101 /subscriptions/11111111-2222-3333-4444-123456789101/providers/Microsoft.Authori… +``` + +Updates a request to provision an active assignment of `roleDefinition` on the `scope` for the specified `principal` \ No newline at end of file diff --git a/src/Resources/Authorization.Autorest/examples/Update-AzRoleEligibilityScheduleRequest.md b/src/Resources/Authorization.Autorest/examples/Update-AzRoleEligibilityScheduleRequest.md new file mode 100644 index 000000000000..03a2f40d5193 --- /dev/null +++ b/src/Resources/Authorization.Autorest/examples/Update-AzRoleEligibilityScheduleRequest.md @@ -0,0 +1,15 @@ +### Example 1: Update a new role eligibile schedule request as Admin +```powershell +$guid = "12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca" +$startTime = Get-Date -Format o +$scope = "/subscriptions/11111111-2222-3333-4444-123456789101/" +Update-AzRoleEligibilityScheduleRequest -Name $guid -Scope $scope -ExpirationDuration PT1H -ExpirationType AfterDuration -PrincipalId 5a4bdd72-ab3e-4d8e-ab0f-8dd8917481a2 -RequestType AdminAssign -RoleDefinitionId subscriptions/11111111-2222-3333-4444-123456789101/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7 -ScheduleInfoStartDateTime $startTime +``` + +```output +Name Type Scope RoleDefinitionId +---- ---- ----- ---------------- +12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleEligibilityScheduleRequests /subscriptions/11111111-2222-3333-4444-123456789101 /subscriptions/11111111-2222-3333-4444-123456789101/providers/Microsoft.Authori… +``` + +Updates a request to provision an eligible assignment of `roleDefinition` on the `scope` for the specified `principal` diff --git a/src/Resources/Authorization.Autorest/examples/Update-AzRoleManagementPolicyAssignment.md b/src/Resources/Authorization.Autorest/examples/Update-AzRoleManagementPolicyAssignment.md new file mode 100644 index 000000000000..1dd2c63217c6 --- /dev/null +++ b/src/Resources/Authorization.Autorest/examples/Update-AzRoleManagementPolicyAssignment.md @@ -0,0 +1,12 @@ +### Example 1: update role management policy assignment +```powershell +$scope = "/subscriptions/11111111-2222-3333-4444-123456789101/" +Update-AzRoleManagementPolicyAssignment -Scope $scope -Name "11111111-2222-3333-4444-123456789102" +``` + +```output +"Not implemented exception" +``` + +This operation is currently not supported. + diff --git a/src/Resources/Authorization.Autorest/generate-info.json b/src/Resources/Authorization.Autorest/generate-info.json index 22aa1aaeab27..7c323249ce95 100644 --- a/src/Resources/Authorization.Autorest/generate-info.json +++ b/src/Resources/Authorization.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "8fe8fe69-a25b-4e80-bc00-40fc0d30dab6" + "generate_Id": "8857adb4-91da-4a2d-95e8-717ed4177318" } diff --git a/src/Resources/Authorization.Autorest/test/Update-AzRoleAssignmentScheduleRequest.Tests.ps1 b/src/Resources/Authorization.Autorest/test/Update-AzRoleAssignmentScheduleRequest.Tests.ps1 new file mode 100644 index 000000000000..f94afe35e297 --- /dev/null +++ b/src/Resources/Authorization.Autorest/test/Update-AzRoleAssignmentScheduleRequest.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzRoleAssignmentScheduleRequest')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzRoleAssignmentScheduleRequest.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzRoleAssignmentScheduleRequest' { + It 'UpdateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Update' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/Resources/Authorization.Autorest/test/Update-AzRoleEligibilityScheduleRequest.Tests.ps1 b/src/Resources/Authorization.Autorest/test/Update-AzRoleEligibilityScheduleRequest.Tests.ps1 new file mode 100644 index 000000000000..d413887372ca --- /dev/null +++ b/src/Resources/Authorization.Autorest/test/Update-AzRoleEligibilityScheduleRequest.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzRoleEligibilityScheduleRequest')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzRoleEligibilityScheduleRequest.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzRoleEligibilityScheduleRequest' { + It 'UpdateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Update' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/Resources/Authorization.Autorest/test/Update-AzRoleManagementPolicy.Tests.ps1 b/src/Resources/Authorization.Autorest/test/Update-AzRoleManagementPolicy.Tests.ps1 index 0297e4d68edf..d087ed7b9019 100644 --- a/src/Resources/Authorization.Autorest/test/Update-AzRoleManagementPolicy.Tests.ps1 +++ b/src/Resources/Authorization.Autorest/test/Update-AzRoleManagementPolicy.Tests.ps1 @@ -18,11 +18,11 @@ Describe 'Update-AzRoleManagementPolicy' { It 'UpdateExpanded' { { $scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/" - $expirationRule = [Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.RoleManagementPolicyExpirationRule]@{ + $expirationRule = [Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.RoleManagementPolicyExpirationRule]@{ isExpirationRequired = "false"; maximumDuration = "P180D"; id = "Expiration_Admin_Eligibility"; - ruleType = [Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RoleManagementPolicyRuleType]("RoleManagementPolicyExpirationRule"); + ruleType = "RoleManagementPolicyExpirationRule"; targetCaller = "Admin"; targetOperation = @('All'); targetLevel = "Eligibility"; @@ -30,14 +30,14 @@ Describe 'Update-AzRoleManagementPolicy' { targetInheritableSetting = $null; targetEnforcedSetting = $null; } - $notificationRule = [Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.RoleManagementPolicyNotificationRule]@{ + $notificationRule = [Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.RoleManagementPolicyNotificationRule]@{ notificationType = "Email"; recipientType = "Approver"; isDefaultRecipientsEnabled = "false"; notificationLevel = "Critical"; notificationRecipient = $null; id = "Notification_Approver_Admin_Eligibility"; - ruleType = [Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RoleManagementPolicyRuleType]("RoleManagementPolicyNotificationRule"); + ruleType = "RoleManagementPolicyNotificationRule"; targetCaller = "Admin"; targetOperation = @('All'); targetLevel = "Eligibility"; @@ -45,7 +45,7 @@ Describe 'Update-AzRoleManagementPolicy' { targetInheritableSetting = $null; targetEnforcedSetting = $null; } - $rules = [Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRule[]]@($expirationRule, $notificationRule) + $rules = [Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyRule[]]@($expirationRule, $notificationRule) $policy = Update-AzRoleManagementPolicy -Scope $scope -Name "33b520ea-3544-4abc-8565-3588deb8e68e" -Rule $rules } | Should -Not -Throw } diff --git a/src/Resources/Authorization.Autorest/test/Update-AzRoleManagementPolicyAssignment.Tests.ps1 b/src/Resources/Authorization.Autorest/test/Update-AzRoleManagementPolicyAssignment.Tests.ps1 new file mode 100644 index 000000000000..cec031e1590c --- /dev/null +++ b/src/Resources/Authorization.Autorest/test/Update-AzRoleManagementPolicyAssignment.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzRoleManagementPolicyAssignment')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzRoleManagementPolicyAssignment.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzRoleManagementPolicyAssignment' { + It 'UpdateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Update' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/Resources/Resources.sln b/src/Resources/Resources.sln index 27a6a60e752d..3660fd311eac 100644 --- a/src/Resources/Resources.sln +++ b/src/Resources/Resources.sln @@ -67,7 +67,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ScheduledQueryRule", ".. EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Authorization.Autorest", "Authorization.Autorest", "{1AAF54A8-4F26-B6C5-BE8F-209DDC4AEF28}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Authorization", "..\..\generated\Resources\Authorization.Autorest\Az.Authorization.csproj", "{49EB3536-83BD-48BC-819C-73A2C5216968}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Authorization", "..\..\generated\Resources\Authorization.Autorest\Az.Authorization.csproj", "{84B27E35-1E52-4A10-8CD2-F8494DD82AD8}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -415,18 +415,18 @@ Global {2847B383-C099-4D3D-9B76-47D4B8D81681}.Release|x64.Build.0 = Release|Any CPU {2847B383-C099-4D3D-9B76-47D4B8D81681}.Release|x86.ActiveCfg = Release|Any CPU {2847B383-C099-4D3D-9B76-47D4B8D81681}.Release|x86.Build.0 = Release|Any CPU - {49EB3536-83BD-48BC-819C-73A2C5216968}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {49EB3536-83BD-48BC-819C-73A2C5216968}.Debug|Any CPU.Build.0 = Debug|Any CPU - {49EB3536-83BD-48BC-819C-73A2C5216968}.Debug|x64.ActiveCfg = Debug|Any CPU - {49EB3536-83BD-48BC-819C-73A2C5216968}.Debug|x64.Build.0 = Debug|Any CPU - {49EB3536-83BD-48BC-819C-73A2C5216968}.Debug|x86.ActiveCfg = Debug|Any CPU - {49EB3536-83BD-48BC-819C-73A2C5216968}.Debug|x86.Build.0 = Debug|Any CPU - {49EB3536-83BD-48BC-819C-73A2C5216968}.Release|Any CPU.ActiveCfg = Release|Any CPU - {49EB3536-83BD-48BC-819C-73A2C5216968}.Release|Any CPU.Build.0 = Release|Any CPU - {49EB3536-83BD-48BC-819C-73A2C5216968}.Release|x64.ActiveCfg = Release|Any CPU - {49EB3536-83BD-48BC-819C-73A2C5216968}.Release|x64.Build.0 = Release|Any CPU - {49EB3536-83BD-48BC-819C-73A2C5216968}.Release|x86.ActiveCfg = Release|Any CPU - {49EB3536-83BD-48BC-819C-73A2C5216968}.Release|x86.Build.0 = Release|Any CPU + {84B27E35-1E52-4A10-8CD2-F8494DD82AD8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {84B27E35-1E52-4A10-8CD2-F8494DD82AD8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {84B27E35-1E52-4A10-8CD2-F8494DD82AD8}.Debug|x64.ActiveCfg = Debug|Any CPU + {84B27E35-1E52-4A10-8CD2-F8494DD82AD8}.Debug|x64.Build.0 = Debug|Any CPU + {84B27E35-1E52-4A10-8CD2-F8494DD82AD8}.Debug|x86.ActiveCfg = Debug|Any CPU + {84B27E35-1E52-4A10-8CD2-F8494DD82AD8}.Debug|x86.Build.0 = Debug|Any CPU + {84B27E35-1E52-4A10-8CD2-F8494DD82AD8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {84B27E35-1E52-4A10-8CD2-F8494DD82AD8}.Release|Any CPU.Build.0 = Release|Any CPU + {84B27E35-1E52-4A10-8CD2-F8494DD82AD8}.Release|x64.ActiveCfg = Release|Any CPU + {84B27E35-1E52-4A10-8CD2-F8494DD82AD8}.Release|x64.Build.0 = Release|Any CPU + {84B27E35-1E52-4A10-8CD2-F8494DD82AD8}.Release|x86.ActiveCfg = Release|Any CPU + {84B27E35-1E52-4A10-8CD2-F8494DD82AD8}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -443,6 +443,6 @@ Global {5DF85EFD-6223-449E-8E59-C41DC4D59E42} = {04F74FE3-C8B4-4E4D-8057-61533EDA2257} {79B1C27E-AB8F-458C-B872-A5DC5041BE08} = {C7A81A90-F687-410D-90AB-49F378773E7E} {B205E3EB-C341-465E-BA2E-C38C753A2528} = {C7A81A90-F687-410D-90AB-49F378773E7E} - {49EB3536-83BD-48BC-819C-73A2C5216968} = {1AAF54A8-4F26-B6C5-BE8F-209DDC4AEF28} + {84B27E35-1E52-4A10-8CD2-F8494DD82AD8} = {1AAF54A8-4F26-B6C5-BE8F-209DDC4AEF28} EndGlobalSection EndGlobal diff --git a/src/Resources/Resources/Az.Resources.psd1 b/src/Resources/Resources/Az.Resources.psd1 index f3b1b3dbdd1e..3cadcdf4d8b2 100644 --- a/src/Resources/Resources/Az.Resources.psd1 +++ b/src/Resources/Resources/Az.Resources.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 7/30/2025 +# Generated on: 9/26/2025 # @{ @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.2.0'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.3.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Authorization.Autorest/bin/Az.Authorization.private.dll', @@ -72,10 +72,10 @@ RequiredAssemblies = 'Authorization.Autorest/bin/Az.Authorization.private.dll', 'System.Runtime.CompilerServices.Unsafe.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'Authorization.Autorest/Az.Authorization.format.ps1xml', @@ -138,7 +138,10 @@ FunctionsToExport = 'Add-AzADAppPermission', 'Add-AzADGroupMember', 'Update-AzADServicePrincipalAppRoleAssignment', 'Update-AzADUser', 'Update-AzPolicyAssignment', 'Update-AzPolicyDefinition', 'Update-AzPolicyExemption', 'Update-AzPolicySetDefinition', - 'Update-AzRoleManagementPolicy' + 'Update-AzRoleAssignmentScheduleRequest', + 'Update-AzRoleEligibilityScheduleRequest', + 'Update-AzRoleManagementPolicy', + 'Update-AzRoleManagementPolicyAssignment' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = 'Export-AzResourceGroup', 'Export-AzTemplateSpec', @@ -253,7 +256,9 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','Provider','ResourceGroup','Deployment','ActiveDirectory','Authorization','Management','ManagementGroups','Tags' + Tags = 'Azure', 'ResourceManager', 'ARM', 'Provider', 'ResourceGroup', + 'Deployment', 'ActiveDirectory', 'Authorization', 'Management', + 'ManagementGroups', 'Tags' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -284,7 +289,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/Resources/Resources/ChangeLog.md b/src/Resources/Resources/ChangeLog.md index a599e47c7187..a5d673bf90ac 100644 --- a/src/Resources/Resources/ChangeLog.md +++ b/src/Resources/Resources/ChangeLog.md @@ -19,6 +19,8 @@ --> ## Upcoming Release +* Removed unavailable variant Get-AzRoleEligibleChildResource cmdlet for InputObject parameter. +* Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). * Fixed issue where RoleAssignment cmdlets did not properly handle insufficient MSGraph permissions [#28583] ## Version 8.1.0 diff --git a/src/Resources/Resources/help/Az.Resources.md b/src/Resources/Resources/help/Az.Resources.md index e604dda631bc..9d597ee464fd 100644 --- a/src/Resources/Resources/help/Az.Resources.md +++ b/src/Resources/Resources/help/Az.Resources.md @@ -357,7 +357,7 @@ The cmdlet may call below Microsoft Graph API according to input parameters: Please notice that this cmdlet will mark `ObjectType` as `Unknown` in output if the object of role assignment is not found or current account has insufficient privileges to get object type. ### [New-AzRoleAssignmentScheduleRequest](New-AzRoleAssignmentScheduleRequest.md) -Creates a role assignment schedule request. +Create a role assignment schedule request. ### [New-AzRoleDefinition](New-AzRoleDefinition.md) Creates a custom role in Azure RBAC. @@ -367,7 +367,7 @@ Then, modify its properties as required. Finally, use this command to create a custom role using role definition. ### [New-AzRoleEligibilityScheduleRequest](New-AzRoleEligibilityScheduleRequest.md) -Creates a role eligibility schedule request. +Create a role eligibility schedule request. ### [New-AzRoleManagementPolicyAssignment](New-AzRoleManagementPolicyAssignment.md) Create a role management policy assignment @@ -694,9 +694,18 @@ This operation updates a policy exemption with the given scope and name. ### [Update-AzPolicySetDefinition](Update-AzPolicySetDefinition.md) This operation updates an existing policy set definition in the given subscription or management group with the given name. +### [Update-AzRoleAssignmentScheduleRequest](Update-AzRoleAssignmentScheduleRequest.md) +Update a role assignment schedule request. + +### [Update-AzRoleEligibilityScheduleRequest](Update-AzRoleEligibilityScheduleRequest.md) +Update a role eligibility schedule request. + ### [Update-AzRoleManagementPolicy](Update-AzRoleManagementPolicy.md) Update a role management policy +### [Update-AzRoleManagementPolicyAssignment](Update-AzRoleManagementPolicyAssignment.md) +Update a role management policy assignment + ### [Update-AzTag](Update-AzTag.md) Selectively updates the set of tags on a resource or subscription. diff --git a/src/Resources/Resources/help/Export-AzResourceGroup.md b/src/Resources/Resources/help/Export-AzResourceGroup.md index 22b7b4995e70..12ad23838b31 100644 --- a/src/Resources/Resources/help/Export-AzResourceGroup.md +++ b/src/Resources/Resources/help/Export-AzResourceGroup.md @@ -16,7 +16,7 @@ Captures a resource group as a template and saves it to a file. ``` Export-AzResourceGroup -ResourceGroupName [-Path ] [-IncludeParameterDefaultValue] [-IncludeComments] [-SkipResourceNameParameterization] [-SkipAllParameterization] [-Resource ] - [-OutputFormat ] [-Force] [-ApiVersion ] [-Pre] [-DefaultProfile ] + [-Force] [-ApiVersion ] [-OutputFormat ] [-Pre] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` @@ -145,23 +145,24 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Path -Specifies the output path of the template file. +### -OutputFormat +Specifies the format of the exported template. Supported values are "Json" and "Bicep". ```yaml Type: System.String Parameter Sets: (All) Aliases: +Accepted values: Json, Bicep Required: False Position: Named -Default value: None -Accept pipeline input: True (ByPropertyName) +Default value: Json +Accept pipeline input: False Accept wildcard characters: False ``` -### -OutputFormat -Specifies the format of the exported template. Supported values are "Json" and "Bicep". +### -Path +Specifies the output path of the template file. ```yaml Type: System.String @@ -170,8 +171,8 @@ Aliases: Required: False Position: Named -Default value: Json -Accept pipeline input: False +Default value: None +Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` diff --git a/src/Resources/Resources/help/Get-AzResourceGroup.md b/src/Resources/Resources/help/Get-AzResourceGroup.md index 4dbe6c15ddda..c591540932eb 100644 --- a/src/Resources/Resources/help/Get-AzResourceGroup.md +++ b/src/Resources/Resources/help/Get-AzResourceGroup.md @@ -84,7 +84,7 @@ Specifies the API version that is supported by the resource Provider. You can specify a different version than the default version. ```yaml -Type: String +Type: System.String Parameter Sets: (All) Aliases: @@ -99,7 +99,7 @@ Accept wildcard characters: False The credentials, account, tenant, and subscription used for communication with azure ```yaml -Type: IAzureContextContainer +Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -114,7 +114,7 @@ Accept wildcard characters: False When specified, output includes CreatedTime and ChangedTime of a resource. ```yaml -Type: SwitchParameter +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: @@ -130,7 +130,7 @@ Specifies the ID of the resource group to get. Wildcard characters are not permitted. ```yaml -Type: String +Type: System.String Parameter Sets: GetByResourceGroupId Aliases: ResourceGroupId, ResourceId @@ -145,7 +145,7 @@ Accept wildcard characters: False Specifies the location of the resource group to get. ```yaml -Type: String +Type: System.String Parameter Sets: (All) Aliases: @@ -160,7 +160,7 @@ Accept wildcard characters: False Specifies the name of the resource group to get. This parameter supports wildcards at the beginning and/or the end of the string. ```yaml -Type: String +Type: System.String Parameter Sets: GetByResourceGroupName Aliases: ResourceGroupName @@ -175,7 +175,7 @@ Accept wildcard characters: True Indicates that this cmdlet considers pre-release API versions when it automatically determines which version to use. ```yaml -Type: SwitchParameter +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: @@ -190,7 +190,7 @@ Accept wildcard characters: False The tag hashtable to filter resource groups by. ```yaml -Type: Hashtable +Type: System.Collections.Hashtable Parameter Sets: GetByResourceGroupName Aliases: diff --git a/src/Resources/Resources/help/Get-AzRoleAssignmentSchedule.md b/src/Resources/Resources/help/Get-AzRoleAssignmentSchedule.md index dd0347d78aaa..b797cc8ab071 100644 --- a/src/Resources/Resources/help/Get-AzRoleAssignmentSchedule.md +++ b/src/Resources/Resources/help/Get-AzRoleAssignmentSchedule.md @@ -156,7 +156,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -209,7 +208,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedule +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleAssignmentSchedule ## NOTES diff --git a/src/Resources/Resources/help/Get-AzRoleAssignmentScheduleInstance.md b/src/Resources/Resources/help/Get-AzRoleAssignmentScheduleInstance.md index 4ebb119dde1f..da5ad3dd6a0d 100644 --- a/src/Resources/Resources/help/Get-AzRoleAssignmentScheduleInstance.md +++ b/src/Resources/Resources/help/Get-AzRoleAssignmentScheduleInstance.md @@ -156,7 +156,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -209,7 +208,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleInstance +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleAssignmentScheduleInstance ## NOTES diff --git a/src/Resources/Resources/help/Get-AzRoleAssignmentScheduleRequest.md b/src/Resources/Resources/help/Get-AzRoleAssignmentScheduleRequest.md index a846e4ca785f..dcd455571c62 100644 --- a/src/Resources/Resources/help/Get-AzRoleAssignmentScheduleRequest.md +++ b/src/Resources/Resources/help/Get-AzRoleAssignmentScheduleRequest.md @@ -138,7 +138,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -191,7 +190,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleRequest +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleAssignmentScheduleRequest ## NOTES diff --git a/src/Resources/Resources/help/Get-AzRoleEligibilitySchedule.md b/src/Resources/Resources/help/Get-AzRoleEligibilitySchedule.md index 1b89644b0906..6d00324fa7e1 100644 --- a/src/Resources/Resources/help/Get-AzRoleEligibilitySchedule.md +++ b/src/Resources/Resources/help/Get-AzRoleEligibilitySchedule.md @@ -154,7 +154,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -207,7 +206,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilitySchedule +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleEligibilitySchedule ## NOTES diff --git a/src/Resources/Resources/help/Get-AzRoleEligibilityScheduleInstance.md b/src/Resources/Resources/help/Get-AzRoleEligibilityScheduleInstance.md index ed51f1ffd9b6..4bfaf7971a5e 100644 --- a/src/Resources/Resources/help/Get-AzRoleEligibilityScheduleInstance.md +++ b/src/Resources/Resources/help/Get-AzRoleEligibilityScheduleInstance.md @@ -156,7 +156,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -209,7 +208,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilityScheduleInstance +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleEligibilityScheduleInstance ## NOTES diff --git a/src/Resources/Resources/help/Get-AzRoleEligibilityScheduleRequest.md b/src/Resources/Resources/help/Get-AzRoleEligibilityScheduleRequest.md index 24a9e064967a..68be2ace2e6e 100644 --- a/src/Resources/Resources/help/Get-AzRoleEligibilityScheduleRequest.md +++ b/src/Resources/Resources/help/Get-AzRoleEligibilityScheduleRequest.md @@ -138,7 +138,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -191,7 +190,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilityScheduleRequest +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleEligibilityScheduleRequest ## NOTES diff --git a/src/Resources/Resources/help/Get-AzRoleEligibleChildResource.md b/src/Resources/Resources/help/Get-AzRoleEligibleChildResource.md index 157f22555d7f..27142cd36679 100644 --- a/src/Resources/Resources/help/Get-AzRoleEligibleChildResource.md +++ b/src/Resources/Resources/help/Get-AzRoleEligibleChildResource.md @@ -12,18 +12,11 @@ Get the child resources of a resource on which user has eligible access ## SYNTAX -### Get (Default) ``` Get-AzRoleEligibleChildResource -Scope [-Filter ] [-DefaultProfile ] [] ``` -### GetViaIdentity -``` -Get-AzRoleEligibleChildResource -InputObject [-Filter ] - [-DefaultProfile ] [] -``` - ## DESCRIPTION Get the child resources of a resource on which user has eligible access @@ -99,28 +92,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -Scope The scope of the role management policy. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: (All) Aliases: Required: True @@ -135,11 +112,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity - ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IEligibleChildResource +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IEligibleChildResource ## NOTES diff --git a/src/Resources/Resources/help/Get-AzRoleManagementPolicy.md b/src/Resources/Resources/help/Get-AzRoleManagementPolicy.md index d71314eaae92..7624e01aad17 100644 --- a/src/Resources/Resources/help/Get-AzRoleManagementPolicy.md +++ b/src/Resources/Resources/help/Get-AzRoleManagementPolicy.md @@ -86,7 +86,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -139,7 +138,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicy +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicy ## NOTES diff --git a/src/Resources/Resources/help/Get-AzRoleManagementPolicyAssignment.md b/src/Resources/Resources/help/Get-AzRoleManagementPolicyAssignment.md index 108e609da88a..36a2a5d11c70 100644 --- a/src/Resources/Resources/help/Get-AzRoleManagementPolicyAssignment.md +++ b/src/Resources/Resources/help/Get-AzRoleManagementPolicyAssignment.md @@ -87,7 +87,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -140,7 +139,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyAssignment +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyAssignment ## NOTES diff --git a/src/Resources/Resources/help/New-AzRoleAssignmentScheduleRequest.md b/src/Resources/Resources/help/New-AzRoleAssignmentScheduleRequest.md index bf54cdf7f868..9d366d380b86 100644 --- a/src/Resources/Resources/help/New-AzRoleAssignmentScheduleRequest.md +++ b/src/Resources/Resources/help/New-AzRoleAssignmentScheduleRequest.md @@ -8,22 +8,35 @@ schema: 2.0.0 # New-AzRoleAssignmentScheduleRequest ## SYNOPSIS -Creates a role assignment schedule request. +Create a role assignment schedule request. ## SYNTAX +### CreateExpanded (Default) ``` New-AzRoleAssignmentScheduleRequest -Name -Scope [-Condition ] [-ConditionVersion ] [-ExpirationDuration ] [-ExpirationEndDateTime ] - [-ExpirationType ] [-Justification ] [-LinkedRoleEligibilityScheduleId ] - [-PrincipalId ] [-RequestType ] [-RoleDefinitionId ] + [-ExpirationType ] [-Justification ] [-LinkedRoleEligibilityScheduleId ] + [-PrincipalId ] [-RequestType ] [-RoleDefinitionId ] [-ScheduleInfoStartDateTime ] [-TargetRoleAssignmentScheduleId ] [-TargetRoleAssignmentScheduleInstanceId ] [-TicketNumber ] [-TicketSystem ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` +### CreateViaJsonFilePath +``` +New-AzRoleAssignmentScheduleRequest -Name -Scope -JsonFilePath + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonString +``` +New-AzRoleAssignmentScheduleRequest -Name -Scope -JsonString + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION -Creates a role assignment schedule request. +Create a role assignment schedule request. ## EXAMPLES @@ -100,7 +113,7 @@ e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:Contai ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -116,7 +129,7 @@ Currently accepted value is '2.0' ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -147,7 +160,7 @@ Duration of the role assignment schedule in TimeSpan. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -162,7 +175,7 @@ End DateTime of the role assignment schedule. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -176,8 +189,8 @@ Accept wildcard characters: False Type of the role assignment schedule expiration ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Type -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -187,12 +200,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Justification Justification for the role assignment ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -207,7 +250,7 @@ The linked role eligibility schedule id - to activate an eligibility. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -238,7 +281,7 @@ The principal ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -253,8 +296,8 @@ The type of the role assignment schedule request. Eg: SelfActivate, AdminAssign etc ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RequestType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -269,7 +312,7 @@ The role definition ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -284,7 +327,7 @@ Start DateTime of the role assignment schedule. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -316,7 +359,7 @@ The resultant role assignment schedule id or the role assignment schedule id bei ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -331,7 +374,7 @@ The role assignment schedule instance id being updated ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -346,7 +389,7 @@ Ticket number for the role assignment ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -361,7 +404,7 @@ Ticket system name for the role assignment ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -409,7 +452,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleRequest +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleAssignmentScheduleRequest ## NOTES diff --git a/src/Resources/Resources/help/New-AzRoleEligibilityScheduleRequest.md b/src/Resources/Resources/help/New-AzRoleEligibilityScheduleRequest.md index 02ecb6d9b890..84ebb49040d3 100644 --- a/src/Resources/Resources/help/New-AzRoleEligibilityScheduleRequest.md +++ b/src/Resources/Resources/help/New-AzRoleEligibilityScheduleRequest.md @@ -8,22 +8,35 @@ schema: 2.0.0 # New-AzRoleEligibilityScheduleRequest ## SYNOPSIS -Creates a role eligibility schedule request. +Create a role eligibility schedule request. ## SYNTAX +### CreateExpanded (Default) ``` New-AzRoleEligibilityScheduleRequest -Name -Scope [-Condition ] [-ConditionVersion ] [-ExpirationDuration ] [-ExpirationEndDateTime ] - [-ExpirationType ] [-Justification ] [-PrincipalId ] [-RequestType ] + [-ExpirationType ] [-Justification ] [-PrincipalId ] [-RequestType ] [-RoleDefinitionId ] [-ScheduleInfoStartDateTime ] [-TargetRoleEligibilityScheduleId ] [-TargetRoleEligibilityScheduleInstanceId ] [-TicketNumber ] [-TicketSystem ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` +### CreateViaJsonFilePath +``` +New-AzRoleEligibilityScheduleRequest -Name -Scope -JsonFilePath + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonString +``` +New-AzRoleEligibilityScheduleRequest -Name -Scope -JsonString + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION -Creates a role eligibility schedule request. +Create a role eligibility schedule request. ## EXAMPLES @@ -68,7 +81,7 @@ e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:Contai ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -84,7 +97,7 @@ Currently accepted value is '2.0' ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -115,7 +128,7 @@ Duration of the role eligibility schedule in TimeSpan. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -130,7 +143,7 @@ End DateTime of the role eligibility schedule. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -144,8 +157,8 @@ Accept wildcard characters: False Type of the role eligibility schedule expiration ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Type -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -155,12 +168,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Justification Justification for the role eligibility ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -191,7 +234,7 @@ The principal ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -206,8 +249,8 @@ The type of the role assignment schedule request. Eg: SelfActivate, AdminAssign etc ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RequestType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -222,7 +265,7 @@ The role definition ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -237,7 +280,7 @@ Start DateTime of the role eligibility schedule. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -269,7 +312,7 @@ The resultant role eligibility schedule id or the role eligibility schedule id b ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -284,7 +327,7 @@ The role eligibility schedule instance id being updated ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -299,7 +342,7 @@ Ticket number for the role eligibility ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -314,7 +357,7 @@ Ticket system name for the role eligibility ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -362,7 +405,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilityScheduleRequest +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleEligibilityScheduleRequest ## NOTES diff --git a/src/Resources/Resources/help/New-AzRoleManagementPolicyAssignment.md b/src/Resources/Resources/help/New-AzRoleManagementPolicyAssignment.md index 52cddecb2bda..833fec38bc6f 100644 --- a/src/Resources/Resources/help/New-AzRoleManagementPolicyAssignment.md +++ b/src/Resources/Resources/help/New-AzRoleManagementPolicyAssignment.md @@ -12,12 +12,25 @@ Create a role management policy assignment ## SYNTAX +### CreateExpanded (Default) ``` New-AzRoleManagementPolicyAssignment -Name -Scope [-PolicyId ] [-RoleDefinitionId ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` +### CreateViaJsonFilePath +``` +New-AzRoleManagementPolicyAssignment -Name -Scope -JsonFilePath + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonString +``` +New-AzRoleManagementPolicyAssignment -Name -Scope -JsonString + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Create a role management policy assignment @@ -53,6 +66,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The name of format {guid_guid} the role management policy assignment to upsert. @@ -73,7 +116,7 @@ The policy id role management policy assignment. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -88,7 +131,7 @@ The role definition of management policy assignment. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -151,7 +194,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyAssignment +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyAssignment ## NOTES diff --git a/src/Resources/Resources/help/Remove-AzRoleManagementPolicy.md b/src/Resources/Resources/help/Remove-AzRoleManagementPolicy.md index c4e359ad3454..3217944dda69 100644 --- a/src/Resources/Resources/help/Remove-AzRoleManagementPolicy.md +++ b/src/Resources/Resources/help/Remove-AzRoleManagementPolicy.md @@ -61,7 +61,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity diff --git a/src/Resources/Resources/help/Remove-AzRoleManagementPolicyAssignment.md b/src/Resources/Resources/help/Remove-AzRoleManagementPolicyAssignment.md index 959d4a42e532..d8a4474280ca 100644 --- a/src/Resources/Resources/help/Remove-AzRoleManagementPolicyAssignment.md +++ b/src/Resources/Resources/help/Remove-AzRoleManagementPolicyAssignment.md @@ -61,7 +61,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity diff --git a/src/Resources/Resources/help/Stop-AzRoleAssignmentScheduleRequest.md b/src/Resources/Resources/help/Stop-AzRoleAssignmentScheduleRequest.md index 92be5b063b92..7c1be537aba7 100644 --- a/src/Resources/Resources/help/Stop-AzRoleAssignmentScheduleRequest.md +++ b/src/Resources/Resources/help/Stop-AzRoleAssignmentScheduleRequest.md @@ -58,7 +58,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity diff --git a/src/Resources/Resources/help/Stop-AzRoleEligibilityScheduleRequest.md b/src/Resources/Resources/help/Stop-AzRoleEligibilityScheduleRequest.md index a7df14d1efed..5e125405a335 100644 --- a/src/Resources/Resources/help/Stop-AzRoleEligibilityScheduleRequest.md +++ b/src/Resources/Resources/help/Stop-AzRoleEligibilityScheduleRequest.md @@ -58,7 +58,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity diff --git a/src/Resources/Resources/help/Update-AzRoleAssignmentScheduleRequest.md b/src/Resources/Resources/help/Update-AzRoleAssignmentScheduleRequest.md new file mode 100644 index 000000000000..035af0e0ee08 --- /dev/null +++ b/src/Resources/Resources/help/Update-AzRoleAssignmentScheduleRequest.md @@ -0,0 +1,397 @@ +--- +external help file: Az.Resources-help.xml +Module Name: Az.Resources +online version: https://learn.microsoft.com/powershell/module/az.resources/update-azroleassignmentschedulerequest +schema: 2.0.0 +--- + +# Update-AzRoleAssignmentScheduleRequest + +## SYNOPSIS +Update a role assignment schedule request. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzRoleAssignmentScheduleRequest -Name -Scope [-Condition ] + [-ConditionVersion ] [-ExpirationDuration ] [-ExpirationEndDateTime ] + [-ExpirationType ] [-Justification ] [-LinkedRoleEligibilityScheduleId ] + [-PrincipalId ] [-RequestType ] [-RoleDefinitionId ] + [-ScheduleInfoStartDateTime ] [-TargetRoleAssignmentScheduleId ] + [-TargetRoleAssignmentScheduleInstanceId ] [-TicketNumber ] [-TicketSystem ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzRoleAssignmentScheduleRequest -InputObject [-Condition ] + [-ConditionVersion ] [-ExpirationDuration ] [-ExpirationEndDateTime ] + [-ExpirationType ] [-Justification ] [-LinkedRoleEligibilityScheduleId ] + [-PrincipalId ] [-RequestType ] [-RoleDefinitionId ] + [-ScheduleInfoStartDateTime ] [-TargetRoleAssignmentScheduleId ] + [-TargetRoleAssignmentScheduleInstanceId ] [-TicketNumber ] [-TicketSystem ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Update a role assignment schedule request. + +## EXAMPLES + +### Example 1: Update a new role assignment schedule request as Admin +```powershell +$guid = "12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca" +$startTime = Get-Date -Format o +$scope = "/subscriptions/11111111-2222-3333-4444-123456789101/" +Update-AzRoleAssignmentScheduleRequest -Name $guid -Scope $scope -ExpirationDuration PT1H -ExpirationType AfterDuration -PrincipalId 5a4bdd72-ab3e-4d8e-ab0f-8dd8917481a2 -RequestType AdminAssign -RoleDefinitionId subscriptions/11111111-2222-3333-4444-123456789101/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7 -ScheduleInfoStartDateTime $startTime +``` + +```output +Name Type Scope RoleDefinitionId +---- ---- ----- ---------------- +12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/11111111-2222-3333-4444-123456789101 /subscriptions/11111111-2222-3333-4444-123456789101/providers/Microsoft.Authori… +``` + +Updates a request to provision an active assignment of `roleDefinition` on the `scope` for the specified `principal` + +## PARAMETERS + +### -Condition +The conditions on the role assignment. +This limits the resources it can be assigned to. +e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container' + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ConditionVersion +Version of the condition. +Currently accepted value is '2.0' + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpirationDuration +Duration of the role assignment schedule in TimeSpan. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpirationEndDateTime +End DateTime of the role assignment schedule. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpirationType +Type of the role assignment schedule expiration + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Justification +Justification for the role assignment + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LinkedRoleEligibilityScheduleId +The linked role eligibility schedule id - to activate an eligibility. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the role assignment to create. +It can be any valid GUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: RoleAssignmentScheduleRequestName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PrincipalId +The principal ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestType +The type of the role assignment schedule request. +Eg: SelfActivate, AdminAssign etc + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleDefinitionId +The role definition ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ScheduleInfoStartDateTime +Start DateTime of the role assignment schedule. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Scope +The scope of the role assignment schedule request to create. +The scope can be any REST resource instance. +For example, use '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a subscription, '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TargetRoleAssignmentScheduleId +The resultant role assignment schedule id or the role assignment schedule id being updated + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TargetRoleAssignmentScheduleInstanceId +The role assignment schedule instance id being updated + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TicketNumber +Ticket number for the role assignment + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TicketSystem +Ticket system name for the role assignment + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleAssignmentScheduleRequest + +## NOTES + +## RELATED LINKS diff --git a/src/Resources/Resources/help/Update-AzRoleEligibilityScheduleRequest.md b/src/Resources/Resources/help/Update-AzRoleEligibilityScheduleRequest.md new file mode 100644 index 000000000000..5897b5153653 --- /dev/null +++ b/src/Resources/Resources/help/Update-AzRoleEligibilityScheduleRequest.md @@ -0,0 +1,382 @@ +--- +external help file: Az.Resources-help.xml +Module Name: Az.Resources +online version: https://learn.microsoft.com/powershell/module/az.resources/update-azroleeligibilityschedulerequest +schema: 2.0.0 +--- + +# Update-AzRoleEligibilityScheduleRequest + +## SYNOPSIS +Update a role eligibility schedule request. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzRoleEligibilityScheduleRequest -Name -Scope [-Condition ] + [-ConditionVersion ] [-ExpirationDuration ] [-ExpirationEndDateTime ] + [-ExpirationType ] [-Justification ] [-PrincipalId ] [-RequestType ] + [-RoleDefinitionId ] [-ScheduleInfoStartDateTime ] + [-TargetRoleEligibilityScheduleId ] [-TargetRoleEligibilityScheduleInstanceId ] + [-TicketNumber ] [-TicketSystem ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzRoleEligibilityScheduleRequest -InputObject [-Condition ] + [-ConditionVersion ] [-ExpirationDuration ] [-ExpirationEndDateTime ] + [-ExpirationType ] [-Justification ] [-PrincipalId ] [-RequestType ] + [-RoleDefinitionId ] [-ScheduleInfoStartDateTime ] + [-TargetRoleEligibilityScheduleId ] [-TargetRoleEligibilityScheduleInstanceId ] + [-TicketNumber ] [-TicketSystem ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Update a role eligibility schedule request. + +## EXAMPLES + +### Example 1: Update a new role eligibile schedule request as Admin +```powershell +$guid = "12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca" +$startTime = Get-Date -Format o +$scope = "/subscriptions/11111111-2222-3333-4444-123456789101/" +Update-AzRoleEligibilityScheduleRequest -Name $guid -Scope $scope -ExpirationDuration PT1H -ExpirationType AfterDuration -PrincipalId 5a4bdd72-ab3e-4d8e-ab0f-8dd8917481a2 -RequestType AdminAssign -RoleDefinitionId subscriptions/11111111-2222-3333-4444-123456789101/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7 -ScheduleInfoStartDateTime $startTime +``` + +```output +Name Type Scope RoleDefinitionId +---- ---- ----- ---------------- +12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleEligibilityScheduleRequests /subscriptions/11111111-2222-3333-4444-123456789101 /subscriptions/11111111-2222-3333-4444-123456789101/providers/Microsoft.Authori… +``` + +Updates a request to provision an eligible assignment of `roleDefinition` on the `scope` for the specified `principal` + +## PARAMETERS + +### -Condition +The conditions on the role assignment. +This limits the resources it can be assigned to. +e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container' + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ConditionVersion +Version of the condition. +Currently accepted value is '2.0' + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpirationDuration +Duration of the role eligibility schedule in TimeSpan. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpirationEndDateTime +End DateTime of the role eligibility schedule. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpirationType +Type of the role eligibility schedule expiration + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Justification +Justification for the role eligibility + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the role eligibility to create. +It can be any valid GUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: RoleEligibilityScheduleRequestName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PrincipalId +The principal ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestType +The type of the role assignment schedule request. +Eg: SelfActivate, AdminAssign etc + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleDefinitionId +The role definition ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ScheduleInfoStartDateTime +Start DateTime of the role eligibility schedule. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Scope +The scope of the role eligibility schedule request to create. +The scope can be any REST resource instance. +For example, use '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a subscription, '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TargetRoleEligibilityScheduleId +The resultant role eligibility schedule id or the role eligibility schedule id being updated + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TargetRoleEligibilityScheduleInstanceId +The role eligibility schedule instance id being updated + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TicketNumber +Ticket number for the role eligibility + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TicketSystem +Ticket system name for the role eligibility + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleEligibilityScheduleRequest + +## NOTES + +## RELATED LINKS diff --git a/src/Resources/Resources/help/Update-AzRoleManagementPolicy.md b/src/Resources/Resources/help/Update-AzRoleManagementPolicy.md index 516ee1891cb8..c5de0b72c35c 100644 --- a/src/Resources/Resources/help/Update-AzRoleManagementPolicy.md +++ b/src/Resources/Resources/help/Update-AzRoleManagementPolicy.md @@ -19,6 +19,18 @@ Update-AzRoleManagementPolicy -Name -Scope [-Description ] ``` +### UpdateViaJsonString +``` +Update-AzRoleManagementPolicy -Name -Scope -JsonString [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzRoleManagementPolicy -Name -Scope -JsonFilePath + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + ### UpdateViaIdentityExpanded ``` Update-AzRoleManagementPolicy -InputObject [-Description ] @@ -123,7 +135,7 @@ The role management policy description. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -138,7 +150,7 @@ The role management policy display name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -150,7 +162,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity @@ -169,7 +180,7 @@ The role management policy is default policy. ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -179,12 +190,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The name (guid) of the role management policy to upsert. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: RoleManagementPolicyName Required: True @@ -196,11 +237,10 @@ Accept wildcard characters: False ### -Rule The rule applied to the policy. -To construct, see NOTES section for RULE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRule[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyRule[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -215,7 +255,7 @@ The scope of the role management policy to upsert. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: Required: True @@ -265,7 +305,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicy +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicy ## NOTES diff --git a/src/Resources/Resources/help/Update-AzRoleManagementPolicyAssignment.md b/src/Resources/Resources/help/Update-AzRoleManagementPolicyAssignment.md new file mode 100644 index 000000000000..699c7dbdde04 --- /dev/null +++ b/src/Resources/Resources/help/Update-AzRoleManagementPolicyAssignment.md @@ -0,0 +1,183 @@ +--- +external help file: Az.Resources-help.xml +Module Name: Az.Resources +online version: https://learn.microsoft.com/powershell/module/az.resources/update-azrolemanagementpolicyassignment +schema: 2.0.0 +--- + +# Update-AzRoleManagementPolicyAssignment + +## SYNOPSIS +Update a role management policy assignment + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzRoleManagementPolicyAssignment -Name -Scope [-PolicyId ] + [-RoleDefinitionId ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzRoleManagementPolicyAssignment -InputObject [-PolicyId ] + [-RoleDefinitionId ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] +``` + +## DESCRIPTION +Update a role management policy assignment + +## EXAMPLES + +### Example 1: update role management policy assignment +```powershell +$scope = "/subscriptions/11111111-2222-3333-4444-123456789101/" +Update-AzRoleManagementPolicyAssignment -Scope $scope -Name "11111111-2222-3333-4444-123456789102" +``` + +```output +"Not implemented exception" +``` + +This operation is currently not supported. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of format {guid_guid} the role management policy assignment to upsert. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: RoleManagementPolicyAssignmentName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PolicyId +The policy id role management policy assignment. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleDefinitionId +The role definition of management policy assignment. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Scope +The scope of the role management policy assignment to upsert. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IAuthorizationIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyAssignment + +## NOTES + +## RELATED LINKS diff --git a/tools/StaticAnalysis/Exceptions/Az.Resources/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Resources/BreakingChangeIssues.csv new file mode 100644 index 000000000000..ca80e178ed6a --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.Resources/BreakingChangeIssues.csv @@ -0,0 +1,48 @@ +"Module","ClassName","Target","Severity","ProblemId","Description","Remediation" +"Az.Resources","Get-AzRoleAssignmentSchedule","Get-AzRoleAssignmentSchedule","0","3000","The type of property 'AssignmentType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedule' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.AssignmentType]' to 'System.String'.","Change the type of property 'AssignmentType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.AssignmentType]'." +"Az.Resources","Get-AzRoleAssignmentSchedule","Get-AzRoleAssignmentSchedule","0","3000","The type of property 'MemberType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedule' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.MemberType]' to 'System.String'.","Change the type of property 'MemberType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.MemberType]'." +"Az.Resources","Get-AzRoleAssignmentSchedule","Get-AzRoleAssignmentSchedule","0","3000","The type of property 'PrincipalType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedule' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType]' to 'System.String'.","Change the type of property 'PrincipalType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType]'." +"Az.Resources","Get-AzRoleAssignmentSchedule","Get-AzRoleAssignmentSchedule","0","3000","The type of property 'Status' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedule' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status]' to 'System.String'.","Change the type of property 'Status' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status]'." +"Az.Resources","Get-AzRoleAssignmentScheduleInstance","Get-AzRoleAssignmentScheduleInstance","0","3000","The type of property 'AssignmentType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleInstance' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.AssignmentType]' to 'System.String'.","Change the type of property 'AssignmentType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.AssignmentType]'." +"Az.Resources","Get-AzRoleAssignmentScheduleInstance","Get-AzRoleAssignmentScheduleInstance","0","3000","The type of property 'MemberType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleInstance' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.MemberType]' to 'System.String'.","Change the type of property 'MemberType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.MemberType]'." +"Az.Resources","Get-AzRoleAssignmentScheduleInstance","Get-AzRoleAssignmentScheduleInstance","0","3000","The type of property 'PrincipalType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleInstance' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType]' to 'System.String'.","Change the type of property 'PrincipalType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType]'." +"Az.Resources","Get-AzRoleAssignmentScheduleInstance","Get-AzRoleAssignmentScheduleInstance","0","3000","The type of property 'Status' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleInstance' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status]' to 'System.String'.","Change the type of property 'Status' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status]'." +"Az.Resources","Get-AzRoleAssignmentScheduleRequest","Get-AzRoleAssignmentScheduleRequest","0","3000","The type of property 'PrincipalType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleRequest' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType]' to 'System.String'.","Change the type of property 'PrincipalType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType]'." +"Az.Resources","Get-AzRoleAssignmentScheduleRequest","Get-AzRoleAssignmentScheduleRequest","0","3000","The type of property 'RequestType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleRequest' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RequestType]' to 'System.String'.","Change the type of property 'RequestType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RequestType]'." +"Az.Resources","Get-AzRoleAssignmentScheduleRequest","Get-AzRoleAssignmentScheduleRequest","0","3000","The type of property 'Status' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleRequest' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status]' to 'System.String'.","Change the type of property 'Status' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status]'." +"Az.Resources","Get-AzRoleAssignmentScheduleRequest","Get-AzRoleAssignmentScheduleRequest","0","3000","The type of property 'ExpirationType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleRequest' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Type]' to 'System.String'.","Change the type of property 'ExpirationType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Type]'." +"Az.Resources","Get-AzRoleEligibilitySchedule","Get-AzRoleEligibilitySchedule","0","3000","The type of property 'MemberType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilitySchedule' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.MemberType]' to 'System.String'.","Change the type of property 'MemberType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.MemberType]'." +"Az.Resources","Get-AzRoleEligibilitySchedule","Get-AzRoleEligibilitySchedule","0","3000","The type of property 'PrincipalType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilitySchedule' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType]' to 'System.String'.","Change the type of property 'PrincipalType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType]'." +"Az.Resources","Get-AzRoleEligibilitySchedule","Get-AzRoleEligibilitySchedule","0","3000","The type of property 'Status' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilitySchedule' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status]' to 'System.String'.","Change the type of property 'Status' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status]'." +"Az.Resources","Get-AzRoleEligibilityScheduleInstance","Get-AzRoleEligibilityScheduleInstance","0","3000","The type of property 'MemberType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilityScheduleInstance' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.MemberType]' to 'System.String'.","Change the type of property 'MemberType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.MemberType]'." +"Az.Resources","Get-AzRoleEligibilityScheduleInstance","Get-AzRoleEligibilityScheduleInstance","0","3000","The type of property 'PrincipalType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilityScheduleInstance' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType]' to 'System.String'.","Change the type of property 'PrincipalType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType]'." +"Az.Resources","Get-AzRoleEligibilityScheduleInstance","Get-AzRoleEligibilityScheduleInstance","0","3000","The type of property 'Status' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilityScheduleInstance' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status]' to 'System.String'.","Change the type of property 'Status' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status]'." +"Az.Resources","Get-AzRoleEligibilityScheduleRequest","Get-AzRoleEligibilityScheduleRequest","0","3000","The type of property 'PrincipalType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilityScheduleRequest' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType]' to 'System.String'.","Change the type of property 'PrincipalType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType]'." +"Az.Resources","Get-AzRoleEligibilityScheduleRequest","Get-AzRoleEligibilityScheduleRequest","0","3000","The type of property 'RequestType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilityScheduleRequest' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RequestType]' to 'System.String'.","Change the type of property 'RequestType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RequestType]'." +"Az.Resources","Get-AzRoleEligibilityScheduleRequest","Get-AzRoleEligibilityScheduleRequest","0","3000","The type of property 'Status' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilityScheduleRequest' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status]' to 'System.String'.","Change the type of property 'Status' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status]'." +"Az.Resources","Get-AzRoleEligibilityScheduleRequest","Get-AzRoleEligibilityScheduleRequest","0","3000","The type of property 'ExpirationType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilityScheduleRequest' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Type]' to 'System.String'.","Change the type of property 'ExpirationType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Type]'." +"Az.Resources","Get-AzRoleEligibleChildResource","Get-AzRoleEligibleChildResource","0","2000","The cmdlet 'Get-AzRoleEligibleChildResource' no longer supports the parameter 'InputObject' and no alias was found for the original parameter name.","Add the parameter 'InputObject' back to the cmdlet 'Get-AzRoleEligibleChildResource', or add an alias to the original parameter name." +"Az.Resources","Get-AzRoleEligibleChildResource","Get-AzRoleEligibleChildResource","0","1050","The parameter set 'GetViaIdentity' for cmdlet 'Get-AzRoleEligibleChildResource' has been removed.","Add parameter set 'GetViaIdentity' back to cmdlet 'Get-AzRoleEligibleChildResource'." +"Az.Resources","Get-AzRoleEligibleChildResource","Get-AzRoleEligibleChildResource","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzRoleEligibleChildResource' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzRoleEligibleChildResource'." +"Az.Resources","Get-AzRoleManagementPolicy","Get-AzRoleManagementPolicy","0","3000","The type of property 'EffectiveRule' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicy' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyRule' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyRule]'.","Change the type of property 'EffectiveRule' back to 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyRule'." +"Az.Resources","Get-AzRoleManagementPolicy","Get-AzRoleManagementPolicy","0","3000","The type of property 'Rule' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicy' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyRule' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyRule]'.","Change the type of property 'Rule' back to 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyRule'." +"Az.Resources","New-AzRoleAssignmentScheduleRequest","New-AzRoleAssignmentScheduleRequest","0","3000","The type of property 'PrincipalType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleRequest' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType]' to 'System.String'.","Change the type of property 'PrincipalType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType]'." +"Az.Resources","New-AzRoleAssignmentScheduleRequest","New-AzRoleAssignmentScheduleRequest","0","3000","The type of property 'RequestType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleRequest' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RequestType]' to 'System.String'.","Change the type of property 'RequestType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RequestType]'." +"Az.Resources","New-AzRoleAssignmentScheduleRequest","New-AzRoleAssignmentScheduleRequest","0","3000","The type of property 'Status' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleRequest' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status]' to 'System.String'.","Change the type of property 'Status' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status]'." +"Az.Resources","New-AzRoleAssignmentScheduleRequest","New-AzRoleAssignmentScheduleRequest","0","3000","The type of property 'ExpirationType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentScheduleRequest' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Type]' to 'System.String'.","Change the type of property 'ExpirationType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Type]'." +"Az.Resources","New-AzRoleAssignmentScheduleRequest","New-AzRoleAssignmentScheduleRequest","0","2020","The cmdlet 'New-AzRoleAssignmentScheduleRequest' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Type' for parameter 'ExpirationType'.","Change the type for parameter 'ExpirationType' back to 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Type'." +"Az.Resources","New-AzRoleAssignmentScheduleRequest","New-AzRoleAssignmentScheduleRequest","0","2020","The cmdlet 'New-AzRoleAssignmentScheduleRequest' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RequestType' for parameter 'RequestType'.","Change the type for parameter 'RequestType' back to 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RequestType'." +"Az.Resources","New-AzRoleEligibilityScheduleRequest","New-AzRoleEligibilityScheduleRequest","0","3000","The type of property 'PrincipalType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilityScheduleRequest' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType]' to 'System.String'.","Change the type of property 'PrincipalType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType]'." +"Az.Resources","New-AzRoleEligibilityScheduleRequest","New-AzRoleEligibilityScheduleRequest","0","3000","The type of property 'RequestType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilityScheduleRequest' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RequestType]' to 'System.String'.","Change the type of property 'RequestType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RequestType]'." +"Az.Resources","New-AzRoleEligibilityScheduleRequest","New-AzRoleEligibilityScheduleRequest","0","3000","The type of property 'Status' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilityScheduleRequest' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status]' to 'System.String'.","Change the type of property 'Status' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status]'." +"Az.Resources","New-AzRoleEligibilityScheduleRequest","New-AzRoleEligibilityScheduleRequest","0","3000","The type of property 'ExpirationType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleEligibilityScheduleRequest' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Type]' to 'System.String'.","Change the type of property 'ExpirationType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Type]'." +"Az.Resources","New-AzRoleEligibilityScheduleRequest","New-AzRoleEligibilityScheduleRequest","0","2020","The cmdlet 'New-AzRoleEligibilityScheduleRequest' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Type' for parameter 'ExpirationType'.","Change the type for parameter 'ExpirationType' back to 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Type'." +"Az.Resources","New-AzRoleEligibilityScheduleRequest","New-AzRoleEligibilityScheduleRequest","0","2020","The cmdlet 'New-AzRoleEligibilityScheduleRequest' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RequestType' for parameter 'RequestType'.","Change the type for parameter 'RequestType' back to 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RequestType'." +"Az.Resources","Update-AzRoleManagementPolicy","Update-AzRoleManagementPolicy","0","3000","The type of property 'EffectiveRule' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicy' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyRule' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyRule]'.","Change the type of property 'EffectiveRule' back to 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyRule'." +"Az.Resources","Update-AzRoleManagementPolicy","Update-AzRoleManagementPolicy","0","3000","The type of property 'Rule' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicy' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyRule' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyRule]'.","Change the type of property 'Rule' back to 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.IRoleManagementPolicyRule'." +"Az.Resources","Update-AzRoleManagementPolicy","Update-AzRoleManagementPolicy","0","3000","The type of property 'RuleType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRule' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RoleManagementPolicyRuleType' to 'System.String'.","Change the type of property 'RuleType' back to 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.RoleManagementPolicyRuleType'." +"Az.Resources","Update-AzRoleManagementPolicy","Update-AzRoleManagementPolicy","0","3000","The type of property 'TargetEnforcedSetting' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRule' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'TargetEnforcedSetting' back to 'System.String[]'." +"Az.Resources","Update-AzRoleManagementPolicy","Update-AzRoleManagementPolicy","0","3000","The type of property 'TargetInheritableSetting' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRule' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'TargetInheritableSetting' back to 'System.String[]'." +"Az.Resources","Update-AzRoleManagementPolicy","Update-AzRoleManagementPolicy","0","3000","The type of property 'TargetObject' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRule' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'TargetObject' back to 'System.String[]'." +"Az.Resources","Update-AzRoleManagementPolicy","Update-AzRoleManagementPolicy","0","3000","The type of property 'TargetOperation' of type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicyRule' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'TargetOperation' back to 'System.String[]'." +"Az.Resources","Update-AzRoleManagementPolicy","Update-AzRoleManagementPolicy","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Update-AzRoleManagementPolicy' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Update-AzRoleManagementPolicy'."