From ce2e1b74e3eaf15f0c2443ed5124dbad8b9d43fe Mon Sep 17 00:00:00 2001 From: JoyerJin <116236375+JoyerJin@users.noreply.github.com> Date: Wed, 11 Jun 2025 16:46:21 +0800 Subject: [PATCH 1/2] Migrate ManagedServices module to autorest v4 --- .../Properties/AssemblyInfo.cs | 27 ++ .../ManagedServices.Autorest/README.md | 23 +- ...AzManagedServicesMarketplaceDefinition.ps1 | 4 +- ...gedServicesEligibleAuthorizationObject.ps1 | 58 ++-- ...w-AzManagedServicesAuthorizationObject.ps1 | 9 +- ...zManagedServicesEligibleApproverObject.ps1 | 9 +- .../docs/Az.ManagedServices.md | 11 +- .../docs/Get-AzManagedServicesAssignment.md | 3 +- .../docs/Get-AzManagedServicesDefinition.md | 3 +- ...-AzManagedServicesMarketplaceDefinition.md | 2 +- .../docs/New-AzManagedServicesAssignment.md | 51 ++- ...ew-AzManagedServicesAuthorizationObject.md | 4 +- .../docs/New-AzManagedServicesDefinition.md | 73 +++- ...AzManagedServicesEligibleApproverObject.md | 4 +- ...agedServicesEligibleAuthorizationObject.md | 13 +- .../Remove-AzManagedServicesAssignment.md | 1 - .../Remove-AzManagedServicesDefinition.md | 1 - .../Update-AzManagedServicesDefinition.md | 326 ++++++++++++++++++ .../Update-AzManagedServicesDefinition.md | 14 + .../generate-info.json | 2 +- .../resources/README.md | 11 + ...date-AzManagedServicesDefinition.Tests.ps1 | 33 ++ src/ManagedServices/ManagedServices.sln | 89 ++++- .../ManagedServices/Az.ManagedServices.psd1 | 17 +- .../ManagedServices/ChangeLog.md | 1 + .../help/Az.ManagedServices.md | 9 +- .../help/Get-AzManagedServicesAssignment.md | 3 +- .../help/Get-AzManagedServicesDefinition.md | 3 +- ...-AzManagedServicesMarketplaceDefinition.md | 2 +- .../help/New-AzManagedServicesAssignment.md | 53 ++- ...ew-AzManagedServicesAuthorizationObject.md | 4 +- .../help/New-AzManagedServicesDefinition.md | 75 +++- ...AzManagedServicesEligibleApproverObject.md | 4 +- ...agedServicesEligibleAuthorizationObject.md | 13 +- .../Remove-AzManagedServicesAssignment.md | 1 - .../Remove-AzManagedServicesDefinition.md | 1 - .../Update-AzManagedServicesDefinition.md | 325 +++++++++++++++++ 37 files changed, 1124 insertions(+), 158 deletions(-) create mode 100644 src/ManagedServices/ManagedServices.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/ManagedServices/ManagedServices.Autorest/docs/Update-AzManagedServicesDefinition.md create mode 100644 src/ManagedServices/ManagedServices.Autorest/examples/Update-AzManagedServicesDefinition.md create mode 100644 src/ManagedServices/ManagedServices.Autorest/resources/README.md create mode 100644 src/ManagedServices/ManagedServices.Autorest/test/Update-AzManagedServicesDefinition.Tests.ps1 create mode 100644 src/ManagedServices/ManagedServices/help/Update-AzManagedServicesDefinition.md diff --git a/src/ManagedServices/ManagedServices.Autorest/Properties/AssemblyInfo.cs b/src/ManagedServices/ManagedServices.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..d373340d1023 --- /dev/null +++ b/src/ManagedServices/ManagedServices.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an ""AS IS"" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ManagedServices")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("3.1.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("3.1.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] + diff --git a/src/ManagedServices/ManagedServices.Autorest/README.md b/src/ManagedServices/ManagedServices.Autorest/README.md index c70bd8f8edd8..5673af0abde0 100644 --- a/src/ManagedServices/ManagedServices.Autorest/README.md +++ b/src/ManagedServices/ManagedServices.Autorest/README.md @@ -38,14 +38,6 @@ title: ManagedServices module-version: 2.0.0 subject-prefix: $(service-name) -identity-correction-for-post: true -resourcegroup-append: true -nested-object-to-string: true - -# 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: # Remove unnecessary cmdlet. @@ -61,8 +53,7 @@ directive: # Remove variant of the cmdlet - where: - verb: New - variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$ + variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))|^CreateViaIdentityExpanded$ remove: true # Hide cmdlet @@ -84,18 +75,12 @@ directive: default: script: '"subscriptions/" + (Get-AzContext).Subscription.Id' - # The regex(^/(?[^/]+)/) mathch failed because the scope inlcude '/' character. - # Replace regex to fixed it. - - from: source-file-csharp - where: $ - transform: $ = $.replace(/global::System.Text.RegularExpressions.Regex\(\"\^\/\(\?\\[\^\/\]\+\)/g, 'global::System.Text.RegularExpressions.Regex("^/(?.+)'); - # Generate memory object as parameter of the cmelet. - model-cmdlet: - - Authorization - - EligibleApprover + - model-name: Authorization + - model-name: EligibleApprover # Need custom that add ArgumentCompleterAttribute for JustInTimeAccessPolicyMultiFactorAuthProvider parameter. - # - EligibleAuthorization + # - model-name: EligibleAuthorization # The function invalid for memory cmdlet. # Custom cmdlet. diff --git a/src/ManagedServices/ManagedServices.Autorest/custom/Get-AzManagedServicesMarketplaceDefinition.ps1 b/src/ManagedServices/ManagedServices.Autorest/custom/Get-AzManagedServicesMarketplaceDefinition.ps1 index 699464b9a0fa..0925d3a3185d 100644 --- a/src/ManagedServices/ManagedServices.Autorest/custom/Get-AzManagedServicesMarketplaceDefinition.ps1 +++ b/src/ManagedServices/ManagedServices.Autorest/custom/Get-AzManagedServicesMarketplaceDefinition.ps1 @@ -30,7 +30,7 @@ PS C:\> {{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IManagedServicesIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IMarketplaceRegistrationDefinition +Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IMarketplaceRegistrationDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -46,7 +46,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.managedservices/get-azmanagedservicesmarketplacedefinition #> function Get-AzManagedServicesMarketplaceDefinition { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IMarketplaceRegistrationDefinition])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IMarketplaceRegistrationDefinition])] [CmdletBinding(DefaultParameterSetName='ListWithScope', PositionalBinding=$false)] param( [Parameter(ParameterSetName='GetWithScope', Mandatory)] diff --git a/src/ManagedServices/ManagedServices.Autorest/custom/New-AzManagedServicesEligibleAuthorizationObject.ps1 b/src/ManagedServices/ManagedServices.Autorest/custom/New-AzManagedServicesEligibleAuthorizationObject.ps1 index 898a5691fa64..2884d8f43db4 100644 --- a/src/ManagedServices/ManagedServices.Autorest/custom/New-AzManagedServicesEligibleAuthorizationObject.ps1 +++ b/src/ManagedServices/ManagedServices.Autorest/custom/New-AzManagedServicesEligibleAuthorizationObject.ps1 @@ -1,43 +1,45 @@ - # ---------------------------------------------------------------------------------- - # - # Copyright Microsoft Corporation - # Licensed under the Apache License, Version 2.0 (the \"License\"); - # you may not use this file except in compliance with the License. - # You may obtain a copy of the License at - # http://www.apache.org/licenses/LICENSE-2.0 - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an \"AS IS\" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # ---------------------------------------------------------------------------------- +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- - <# - .Synopsis - Create a in-memory object for EligibleAuthorization - .Description - Create a in-memory object for EligibleAuthorization +<# +.Synopsis +Create an in-memory object for EligibleAuthorization. +.Description +Create an in-memory object for EligibleAuthorization. - .Outputs - Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.EligibleAuthorization - .Link - https://learn.microsoft.com/powershell/module/az.ManagedServices/new-AzManagedServicesEligibleAuthorizationObject - #> +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.EligibleAuthorization +.Link +https://learn.microsoft.com/powershell/module/az.ManagedServices/new-AzManagedServicesEligibleAuthorizationObject +#> function New-AzManagedServicesEligibleAuthorizationObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.EligibleAuthorization')] + [Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.EligibleAuthorization')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(HelpMessage="The list of managedByTenant approvers for the eligible authorization.")] - [Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IEligibleApprover[]] + [Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleApprover[]] $JustInTimeAccessPolicyManagedByTenantApprover, [Parameter(HelpMessage="The maximum access duration in ISO 8601 format for just-in-time access requests.")] [System.TimeSpan] $JustInTimeAccessPolicyMaximumActivationDuration, [Parameter(HelpMessage="The multi-factor authorization provider to be used for just-in-time access requests.")] - [Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.MultiFactorAuthProvider] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.MultiFactorAuthProvider])] + [Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.PSArgumentCompleterAttribute("Azure", "None")] + [string] $JustInTimeAccessPolicyMultiFactorAuthProvider, [Parameter(Mandatory, HelpMessage="The identifier of the Azure Active Directory principal.")] [string] @@ -51,7 +53,7 @@ ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.EligibleAuthorization]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.EligibleAuthorization]::New() $Object.JustInTimeAccessPolicyManagedByTenantApprover = $JustInTimeAccessPolicyManagedByTenantApprover diff --git a/src/ManagedServices/ManagedServices.Autorest/custom/autogen-model-cmdlets/New-AzManagedServicesAuthorizationObject.ps1 b/src/ManagedServices/ManagedServices.Autorest/custom/autogen-model-cmdlets/New-AzManagedServicesAuthorizationObject.ps1 index 3d90735a921d..964d4dde11ae 100644 --- a/src/ManagedServices/ManagedServices.Autorest/custom/autogen-model-cmdlets/New-AzManagedServicesAuthorizationObject.ps1 +++ b/src/ManagedServices/ManagedServices.Autorest/custom/autogen-model-cmdlets/New-AzManagedServicesAuthorizationObject.ps1 @@ -21,12 +21,13 @@ Create an in-memory object for Authorization. Create an in-memory object for Authorization. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.Authorization +Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Authorization .Link -https://learn.microsoft.com/powershell/module/Az.ManagedServices/new-AzManagedServicesAuthorizationObject +https://learn.microsoft.com/powershell/module/Az.ManagedServices/new-azmanagedservicesauthorizationobject #> function New-AzManagedServicesAuthorizationObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.Authorization')] + [Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Authorization')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -45,7 +46,7 @@ function New-AzManagedServicesAuthorizationObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.Authorization]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Authorization]::New() if ($PSBoundParameters.ContainsKey('DelegatedRoleDefinitionId')) { $Object.DelegatedRoleDefinitionId = $DelegatedRoleDefinitionId diff --git a/src/ManagedServices/ManagedServices.Autorest/custom/autogen-model-cmdlets/New-AzManagedServicesEligibleApproverObject.ps1 b/src/ManagedServices/ManagedServices.Autorest/custom/autogen-model-cmdlets/New-AzManagedServicesEligibleApproverObject.ps1 index a5ce0aa4417e..9b97b5d64250 100644 --- a/src/ManagedServices/ManagedServices.Autorest/custom/autogen-model-cmdlets/New-AzManagedServicesEligibleApproverObject.ps1 +++ b/src/ManagedServices/ManagedServices.Autorest/custom/autogen-model-cmdlets/New-AzManagedServicesEligibleApproverObject.ps1 @@ -21,12 +21,13 @@ Create an in-memory object for EligibleApprover. Create an in-memory object for EligibleApprover. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.EligibleApprover +Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.EligibleApprover .Link -https://learn.microsoft.com/powershell/module/Az.ManagedServices/new-AzManagedServicesEligibleApproverObject +https://learn.microsoft.com/powershell/module/Az.ManagedServices/new-azmanagedserviceseligibleapproverobject #> function New-AzManagedServicesEligibleApproverObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.EligibleApprover')] + [Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.EligibleApprover')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -39,7 +40,7 @@ function New-AzManagedServicesEligibleApproverObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.EligibleApprover]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.EligibleApprover]::New() if ($PSBoundParameters.ContainsKey('PrincipalId')) { $Object.PrincipalId = $PrincipalId diff --git a/src/ManagedServices/ManagedServices.Autorest/docs/Az.ManagedServices.md b/src/ManagedServices/ManagedServices.Autorest/docs/Az.ManagedServices.md index 3a58f992d3fc..d059279915fa 100644 --- a/src/ManagedServices/ManagedServices.Autorest/docs/Az.ManagedServices.md +++ b/src/ManagedServices/ManagedServices.Autorest/docs/Az.ManagedServices.md @@ -1,6 +1,6 @@ --- Module Name: Az.ManagedServices -Module Guid: f3c1cabd-ba4d-4158-b4f3-9e037b7a2d62 +Module Guid: 54366ec5-1955-4a40-b1df-da4057a89b87 Download Help Link: https://learn.microsoft.com/powershell/module/az.managedservices Help Version: 1.0.0.0 Locale: en-US @@ -21,19 +21,19 @@ Gets the registration definition details. Get the marketplace registration definition for the marketplace identifier. ### [New-AzManagedServicesAssignment](New-AzManagedServicesAssignment.md) -Creates or updates a registration assignment. +Create a registration assignment. ### [New-AzManagedServicesAuthorizationObject](New-AzManagedServicesAuthorizationObject.md) Create an in-memory object for Authorization. ### [New-AzManagedServicesDefinition](New-AzManagedServicesDefinition.md) -Creates or updates a registration definition. +Create a registration definition. ### [New-AzManagedServicesEligibleApproverObject](New-AzManagedServicesEligibleApproverObject.md) Create an in-memory object for EligibleApprover. ### [New-AzManagedServicesEligibleAuthorizationObject](New-AzManagedServicesEligibleAuthorizationObject.md) -Create a in-memory object for EligibleAuthorization +Create an in-memory object for EligibleAuthorization. ### [Remove-AzManagedServicesAssignment](Remove-AzManagedServicesAssignment.md) Deletes the specified registration assignment. @@ -41,3 +41,6 @@ Deletes the specified registration assignment. ### [Remove-AzManagedServicesDefinition](Remove-AzManagedServicesDefinition.md) Deletes the registration definition. +### [Update-AzManagedServicesDefinition](Update-AzManagedServicesDefinition.md) +Update a registration definition. + diff --git a/src/ManagedServices/ManagedServices.Autorest/docs/Get-AzManagedServicesAssignment.md b/src/ManagedServices/ManagedServices.Autorest/docs/Get-AzManagedServicesAssignment.md index dbcd3164ed77..894a9e5e0abe 100644 --- a/src/ManagedServices/ManagedServices.Autorest/docs/Get-AzManagedServicesAssignment.md +++ b/src/ManagedServices/ManagedServices.Autorest/docs/Get-AzManagedServicesAssignment.md @@ -127,7 +127,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.ManagedServices.Models.IManagedServicesIdentity @@ -180,7 +179,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationAssignment +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IRegistrationAssignment ## NOTES diff --git a/src/ManagedServices/ManagedServices.Autorest/docs/Get-AzManagedServicesDefinition.md b/src/ManagedServices/ManagedServices.Autorest/docs/Get-AzManagedServicesDefinition.md index 3dbaccbb4067..18bdf01ff216 100644 --- a/src/ManagedServices/ManagedServices.Autorest/docs/Get-AzManagedServicesDefinition.md +++ b/src/ManagedServices/ManagedServices.Autorest/docs/Get-AzManagedServicesDefinition.md @@ -107,7 +107,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.ManagedServices.Models.IManagedServicesIdentity @@ -160,7 +159,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationDefinition +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IRegistrationDefinition ## NOTES diff --git a/src/ManagedServices/ManagedServices.Autorest/docs/Get-AzManagedServicesMarketplaceDefinition.md b/src/ManagedServices/ManagedServices.Autorest/docs/Get-AzManagedServicesMarketplaceDefinition.md index ee77b1a665e1..342210d7f413 100644 --- a/src/ManagedServices/ManagedServices.Autorest/docs/Get-AzManagedServicesMarketplaceDefinition.md +++ b/src/ManagedServices/ManagedServices.Autorest/docs/Get-AzManagedServicesMarketplaceDefinition.md @@ -165,7 +165,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IMarketplaceRegistrationDefinition +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IMarketplaceRegistrationDefinition ## NOTES diff --git a/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesAssignment.md b/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesAssignment.md index 5d9041af5d9a..9c6ebf997656 100644 --- a/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesAssignment.md +++ b/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesAssignment.md @@ -8,17 +8,30 @@ schema: 2.0.0 # New-AzManagedServicesAssignment ## SYNOPSIS -Creates or updates a registration assignment. +Create a registration assignment. ## SYNTAX +### CreateExpanded (Default) ``` New-AzManagedServicesAssignment -Name [-Scope ] [-RegistrationDefinitionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` +### CreateViaJsonFilePath +``` +New-AzManagedServicesAssignment -Name -JsonFilePath [-Scope ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzManagedServicesAssignment -Name -JsonString [-Scope ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION -Creates or updates a registration assignment. +Create a registration assignment. ## EXAMPLES @@ -81,6 +94,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 GUID of the registration assignment. @@ -116,7 +159,7 @@ The fully qualified path of the registration definition. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -179,7 +222,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationAssignment +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IRegistrationAssignment ## NOTES diff --git a/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesAuthorizationObject.md b/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesAuthorizationObject.md index d5139a8cb489..2d20c4695e7f 100644 --- a/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesAuthorizationObject.md +++ b/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesAuthorizationObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.ManagedServices -online version: https://learn.microsoft.com/powershell/module/Az.ManagedServices/new-AzManagedServicesAuthorizationObject +online version: https://learn.microsoft.com/powershell/module/Az.ManagedServices/new-azmanagedservicesauthorizationobject schema: 2.0.0 --- @@ -118,7 +118,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.Authorization +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Authorization ## NOTES diff --git a/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesDefinition.md b/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesDefinition.md index ec6376b37ecb..89106515ad28 100644 --- a/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesDefinition.md +++ b/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesDefinition.md @@ -8,10 +8,11 @@ schema: 2.0.0 # New-AzManagedServicesDefinition ## SYNOPSIS -Creates or updates a registration definition. +Create a registration definition. ## SYNTAX +### CreateExpanded (Default) ``` New-AzManagedServicesDefinition -Name [-Scope ] [-Authorization ] [-Description ] [-EligibleAuthorization ] [-ManagedByTenantId ] @@ -20,8 +21,20 @@ New-AzManagedServicesDefinition -Name [-Scope ] [-Authorization [] ``` +### CreateViaJsonFilePath +``` +New-AzManagedServicesDefinition -Name -JsonFilePath [-Scope ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzManagedServicesDefinition -Name -JsonString [-Scope ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION -Creates or updates a registration definition. +Create a registration definition. ## EXAMPLES @@ -76,11 +89,10 @@ Accept wildcard characters: False ### -Authorization The collection of authorization objects describing the access Azure Active Directory principals in the managedBy tenant will receive on the delegated resource in the managed tenant. -To construct, see NOTES section for AUTHORIZATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IAuthorization[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization[] +Parameter Sets: CreateExpanded Aliases: Required: False @@ -111,7 +123,7 @@ The description of the registration definition. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -123,11 +135,10 @@ Accept wildcard characters: False ### -EligibleAuthorization The collection of eligible authorization objects describing the just-in-time access Azure Active Directory principals in the managedBy tenant will receive on the delegated resource in the managed tenant. -To construct, see NOTES section for ELIGIBLEAUTHORIZATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IEligibleAuthorization[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization[] +Parameter Sets: CreateExpanded Aliases: Required: False @@ -137,12 +148,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 +``` + ### -ManagedByTenantId The identifier of the managedBy tenant. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -187,7 +228,7 @@ Azure Marketplace plan name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -202,7 +243,7 @@ Azure Marketplace product code. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -217,7 +258,7 @@ Azure Marketplace publisher ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -232,7 +273,7 @@ Azure Marketplace plan's version. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -247,7 +288,7 @@ The name of the registration definition. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -310,7 +351,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationDefinition +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IRegistrationDefinition ## NOTES diff --git a/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesEligibleApproverObject.md b/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesEligibleApproverObject.md index 8eb0c2502e6b..9f535bd98d45 100644 --- a/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesEligibleApproverObject.md +++ b/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesEligibleApproverObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.ManagedServices -online version: https://learn.microsoft.com/powershell/module/Az.ManagedServices/new-AzManagedServicesEligibleApproverObject +online version: https://learn.microsoft.com/powershell/module/Az.ManagedServices/new-azmanagedserviceseligibleapproverobject schema: 2.0.0 --- @@ -74,7 +74,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.EligibleApprover +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.EligibleApprover ## NOTES diff --git a/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesEligibleAuthorizationObject.md b/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesEligibleAuthorizationObject.md index 595f40f34313..edc419afe5a2 100644 --- a/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesEligibleAuthorizationObject.md +++ b/src/ManagedServices/ManagedServices.Autorest/docs/New-AzManagedServicesEligibleAuthorizationObject.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzManagedServicesEligibleAuthorizationObject ## SYNOPSIS -Create a in-memory object for EligibleAuthorization +Create an in-memory object for EligibleAuthorization. ## SYNTAX @@ -16,12 +16,12 @@ Create a in-memory object for EligibleAuthorization New-AzManagedServicesEligibleAuthorizationObject -PrincipalId -RoleDefinitionId [-JustInTimeAccessPolicyManagedByTenantApprover ] [-JustInTimeAccessPolicyMaximumActivationDuration ] - [-JustInTimeAccessPolicyMultiFactorAuthProvider ] [-PrincipalIdDisplayName ] + [-JustInTimeAccessPolicyMultiFactorAuthProvider ] [-PrincipalIdDisplayName ] [] ``` ## DESCRIPTION -Create a in-memory object for EligibleAuthorization +Create an in-memory object for EligibleAuthorization. ## EXAMPLES @@ -62,10 +62,9 @@ Creates new Azure Lighthouse eligible authorization object with JustInTime (JIT) ### -JustInTimeAccessPolicyManagedByTenantApprover The list of managedByTenant approvers for the eligible authorization. -To construct, see NOTES section for JUSTINTIMEACCESSPOLICYMANAGEDBYTENANTAPPROVER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IEligibleApprover[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleApprover[] Parameter Sets: (All) Aliases: @@ -95,7 +94,7 @@ Accept wildcard characters: False The multi-factor authorization provider to be used for just-in-time access requests. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.MultiFactorAuthProvider +Type: System.String Parameter Sets: (All) Aliases: @@ -158,7 +157,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.EligibleAuthorization +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.EligibleAuthorization ## NOTES diff --git a/src/ManagedServices/ManagedServices.Autorest/docs/Remove-AzManagedServicesAssignment.md b/src/ManagedServices/ManagedServices.Autorest/docs/Remove-AzManagedServicesAssignment.md index 8d2cbe1e00f6..83f4fa464c2f 100644 --- a/src/ManagedServices/ManagedServices.Autorest/docs/Remove-AzManagedServicesAssignment.md +++ b/src/ManagedServices/ManagedServices.Autorest/docs/Remove-AzManagedServicesAssignment.md @@ -78,7 +78,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.ManagedServices.Models.IManagedServicesIdentity diff --git a/src/ManagedServices/ManagedServices.Autorest/docs/Remove-AzManagedServicesDefinition.md b/src/ManagedServices/ManagedServices.Autorest/docs/Remove-AzManagedServicesDefinition.md index eba89e4b5962..9abf7f5bbb61 100644 --- a/src/ManagedServices/ManagedServices.Autorest/docs/Remove-AzManagedServicesDefinition.md +++ b/src/ManagedServices/ManagedServices.Autorest/docs/Remove-AzManagedServicesDefinition.md @@ -56,7 +56,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.ManagedServices.Models.IManagedServicesIdentity diff --git a/src/ManagedServices/ManagedServices.Autorest/docs/Update-AzManagedServicesDefinition.md b/src/ManagedServices/ManagedServices.Autorest/docs/Update-AzManagedServicesDefinition.md new file mode 100644 index 000000000000..7fdef982a54d --- /dev/null +++ b/src/ManagedServices/ManagedServices.Autorest/docs/Update-AzManagedServicesDefinition.md @@ -0,0 +1,326 @@ +--- +external help file: +Module Name: Az.ManagedServices +online version: https://learn.microsoft.com/powershell/module/az.managedservices/update-azmanagedservicesdefinition +schema: 2.0.0 +--- + +# Update-AzManagedServicesDefinition + +## SYNOPSIS +Update a registration definition. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzManagedServicesDefinition -Name [-Scope ] [-Authorization ] + [-Description ] [-EligibleAuthorization ] [-ManagedByTenantId ] + [-PlanName ] [-PlanProduct ] [-PlanPublisher ] [-PlanVersion ] + [-RegistrationDefinitionName ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzManagedServicesDefinition -InputObject [-Authorization ] + [-Description ] [-EligibleAuthorization ] [-ManagedByTenantId ] + [-PlanName ] [-PlanProduct ] [-PlanPublisher ] [-PlanVersion ] + [-RegistrationDefinitionName ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Update a registration definition. + +## EXAMPLES + +### Example 1: Update Azure Lighthouse registration definition object with permanent authorization +```powershell +$permantAuth = New-AzManagedServicesAuthorizationObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -RoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Test user" -DelegatedRoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" + +Update-AzManagedServicesDefinition -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -RegistrationDefinitionName "Test definition" -ManagedByTenantId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Authorization $permantAuth -Description "Test definition desc" -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +``` + +```output +Name Type +---- ---- +xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Microsoft.ManagedServices/registrationDefinitions +``` + +Updates Azure Lighthouse registration definition object with permanent authorization. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Authorization +The collection of authorization objects describing the access Azure Active Directory principals in the managedBy tenant will receive on the delegated resource in the managed tenant. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization[] +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 +``` + +### -Description +The description of the registration definition. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EligibleAuthorization +The collection of eligible authorization objects describing the just-in-time access Azure Active Directory principals in the managedBy tenant will receive on the delegated resource in the managed tenant. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization[] +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.ManagedServices.Models.IManagedServicesIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ManagedByTenantId +The identifier of the managedBy tenant. + +```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 GUID of the registration definition. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: RegistrationDefinitionId + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PlanName +Azure Marketplace plan name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PlanProduct +Azure Marketplace product code. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PlanPublisher +Azure Marketplace publisher ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PlanVersion +Azure Marketplace plan's version. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RegistrationDefinitionName +The name of the registration definition. + +```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 resource. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: "subscriptions/" + (Get-AzContext).Subscription.Id +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.ManagedServices.Models.IManagedServicesIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IRegistrationDefinition + +## NOTES + +## RELATED LINKS + diff --git a/src/ManagedServices/ManagedServices.Autorest/examples/Update-AzManagedServicesDefinition.md b/src/ManagedServices/ManagedServices.Autorest/examples/Update-AzManagedServicesDefinition.md new file mode 100644 index 000000000000..ee9c79451d0b --- /dev/null +++ b/src/ManagedServices/ManagedServices.Autorest/examples/Update-AzManagedServicesDefinition.md @@ -0,0 +1,14 @@ +### Example 1: Update Azure Lighthouse registration definition object with permanent authorization +```powershell +$permantAuth = New-AzManagedServicesAuthorizationObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -RoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Test user" -DelegatedRoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" + +Update-AzManagedServicesDefinition -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -RegistrationDefinitionName "Test definition" -ManagedByTenantId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Authorization $permantAuth -Description "Test definition desc" -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +``` + +```output +Name Type +---- ---- +xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Microsoft.ManagedServices/registrationDefinitions +``` + +Updates Azure Lighthouse registration definition object with permanent authorization. \ No newline at end of file diff --git a/src/ManagedServices/ManagedServices.Autorest/generate-info.json b/src/ManagedServices/ManagedServices.Autorest/generate-info.json index 93a830dae20d..edca3b52f136 100644 --- a/src/ManagedServices/ManagedServices.Autorest/generate-info.json +++ b/src/ManagedServices/ManagedServices.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "fe2e0617-9f16-4c71-8c5b-ac7cba032a37" + "generate_Id": "8f732608-4ca5-44f6-ace6-22d09876e956" } diff --git a/src/ManagedServices/ManagedServices.Autorest/resources/README.md b/src/ManagedServices/ManagedServices.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/ManagedServices/ManagedServices.Autorest/resources/README.md @@ -0,0 +1,11 @@ +# Resources +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/ManagedServices/ManagedServices.Autorest/test/Update-AzManagedServicesDefinition.Tests.ps1 b/src/ManagedServices/ManagedServices.Autorest/test/Update-AzManagedServicesDefinition.Tests.ps1 new file mode 100644 index 000000000000..4ca99d811e1e --- /dev/null +++ b/src/ManagedServices/ManagedServices.Autorest/test/Update-AzManagedServicesDefinition.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzManagedServicesDefinition')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzManagedServicesDefinition.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-AzManagedServicesDefinition' { + 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/ManagedServices/ManagedServices.sln b/src/ManagedServices/ManagedServices.sln index ec4ee1a120fa..66ce81cdbcab 100644 --- a/src/ManagedServices/ManagedServices.sln +++ b/src/ManagedServices/ManagedServices.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 @@ -19,49 +19,119 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accoun EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ManagedServices", "ManagedServices\ManagedServices.csproj", "{F18ADD45-27F3-48D1-98C9-632575DB58D9}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ManagedServices", "..\..\generated\ManagedServices\ManagedServices.Autorest\Az.ManagedServices.csproj", "{512150A7-69AC-455F-A775-8F88CE224CD2}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ManagedServices.Autorest", "ManagedServices.Autorest", "{2D84CE50-F89B-94FD-0D1C-E1015598E8EB}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ManagedServices", "..\..\generated\ManagedServices\ManagedServices.Autorest\Az.ManagedServices.csproj", "{6A16B5CB-F092-4DA5-BE5B-6FEFFE982096}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE + Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {B940536F-36B2-485C-BBEC-0C82FAACFFC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B940536F-36B2-485C-BBEC-0C82FAACFFC6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B940536F-36B2-485C-BBEC-0C82FAACFFC6}.Debug|x64.ActiveCfg = Debug|Any CPU + {B940536F-36B2-485C-BBEC-0C82FAACFFC6}.Debug|x64.Build.0 = Debug|Any CPU + {B940536F-36B2-485C-BBEC-0C82FAACFFC6}.Debug|x86.ActiveCfg = Debug|Any CPU + {B940536F-36B2-485C-BBEC-0C82FAACFFC6}.Debug|x86.Build.0 = Debug|Any CPU {B940536F-36B2-485C-BBEC-0C82FAACFFC6}.Release|Any CPU.ActiveCfg = Release|Any CPU {B940536F-36B2-485C-BBEC-0C82FAACFFC6}.Release|Any CPU.Build.0 = Release|Any CPU + {B940536F-36B2-485C-BBEC-0C82FAACFFC6}.Release|x64.ActiveCfg = Release|Any CPU + {B940536F-36B2-485C-BBEC-0C82FAACFFC6}.Release|x64.Build.0 = Release|Any CPU + {B940536F-36B2-485C-BBEC-0C82FAACFFC6}.Release|x86.ActiveCfg = Release|Any CPU + {B940536F-36B2-485C-BBEC-0C82FAACFFC6}.Release|x86.Build.0 = Release|Any CPU {BAB548CA-E33D-49A9-89A1-8A62C57BC0CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BAB548CA-E33D-49A9-89A1-8A62C57BC0CE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BAB548CA-E33D-49A9-89A1-8A62C57BC0CE}.Debug|x64.ActiveCfg = Debug|Any CPU + {BAB548CA-E33D-49A9-89A1-8A62C57BC0CE}.Debug|x64.Build.0 = Debug|Any CPU + {BAB548CA-E33D-49A9-89A1-8A62C57BC0CE}.Debug|x86.ActiveCfg = Debug|Any CPU + {BAB548CA-E33D-49A9-89A1-8A62C57BC0CE}.Debug|x86.Build.0 = Debug|Any CPU {BAB548CA-E33D-49A9-89A1-8A62C57BC0CE}.Release|Any CPU.ActiveCfg = Release|Any CPU {BAB548CA-E33D-49A9-89A1-8A62C57BC0CE}.Release|Any CPU.Build.0 = Release|Any CPU + {BAB548CA-E33D-49A9-89A1-8A62C57BC0CE}.Release|x64.ActiveCfg = Release|Any CPU + {BAB548CA-E33D-49A9-89A1-8A62C57BC0CE}.Release|x64.Build.0 = Release|Any CPU + {BAB548CA-E33D-49A9-89A1-8A62C57BC0CE}.Release|x86.ActiveCfg = Release|Any CPU + {BAB548CA-E33D-49A9-89A1-8A62C57BC0CE}.Release|x86.Build.0 = Release|Any CPU {03208524-E2E7-4204-833F-3C2FB9BA18CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {03208524-E2E7-4204-833F-3C2FB9BA18CC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {03208524-E2E7-4204-833F-3C2FB9BA18CC}.Debug|x64.ActiveCfg = Debug|Any CPU + {03208524-E2E7-4204-833F-3C2FB9BA18CC}.Debug|x64.Build.0 = Debug|Any CPU + {03208524-E2E7-4204-833F-3C2FB9BA18CC}.Debug|x86.ActiveCfg = Debug|Any CPU + {03208524-E2E7-4204-833F-3C2FB9BA18CC}.Debug|x86.Build.0 = Debug|Any CPU {03208524-E2E7-4204-833F-3C2FB9BA18CC}.Release|Any CPU.ActiveCfg = Release|Any CPU {03208524-E2E7-4204-833F-3C2FB9BA18CC}.Release|Any CPU.Build.0 = Release|Any CPU + {03208524-E2E7-4204-833F-3C2FB9BA18CC}.Release|x64.ActiveCfg = Release|Any CPU + {03208524-E2E7-4204-833F-3C2FB9BA18CC}.Release|x64.Build.0 = Release|Any CPU + {03208524-E2E7-4204-833F-3C2FB9BA18CC}.Release|x86.ActiveCfg = Release|Any CPU + {03208524-E2E7-4204-833F-3C2FB9BA18CC}.Release|x86.Build.0 = Release|Any CPU {9C8C8F4B-359B-448F-88CB-7F4F1B94709E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {9C8C8F4B-359B-448F-88CB-7F4F1B94709E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9C8C8F4B-359B-448F-88CB-7F4F1B94709E}.Debug|x64.ActiveCfg = Debug|Any CPU + {9C8C8F4B-359B-448F-88CB-7F4F1B94709E}.Debug|x64.Build.0 = Debug|Any CPU + {9C8C8F4B-359B-448F-88CB-7F4F1B94709E}.Debug|x86.ActiveCfg = Debug|Any CPU + {9C8C8F4B-359B-448F-88CB-7F4F1B94709E}.Debug|x86.Build.0 = Debug|Any CPU {9C8C8F4B-359B-448F-88CB-7F4F1B94709E}.Release|Any CPU.ActiveCfg = Release|Any CPU {9C8C8F4B-359B-448F-88CB-7F4F1B94709E}.Release|Any CPU.Build.0 = Release|Any CPU + {9C8C8F4B-359B-448F-88CB-7F4F1B94709E}.Release|x64.ActiveCfg = Release|Any CPU + {9C8C8F4B-359B-448F-88CB-7F4F1B94709E}.Release|x64.Build.0 = Release|Any CPU + {9C8C8F4B-359B-448F-88CB-7F4F1B94709E}.Release|x86.ActiveCfg = Release|Any CPU + {9C8C8F4B-359B-448F-88CB-7F4F1B94709E}.Release|x86.Build.0 = Release|Any CPU {C7AE743C-7AA2-4D4C-B1C3-CBAA389F7431}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C7AE743C-7AA2-4D4C-B1C3-CBAA389F7431}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C7AE743C-7AA2-4D4C-B1C3-CBAA389F7431}.Debug|x64.ActiveCfg = Debug|Any CPU + {C7AE743C-7AA2-4D4C-B1C3-CBAA389F7431}.Debug|x64.Build.0 = Debug|Any CPU + {C7AE743C-7AA2-4D4C-B1C3-CBAA389F7431}.Debug|x86.ActiveCfg = Debug|Any CPU + {C7AE743C-7AA2-4D4C-B1C3-CBAA389F7431}.Debug|x86.Build.0 = Debug|Any CPU {C7AE743C-7AA2-4D4C-B1C3-CBAA389F7431}.Release|Any CPU.ActiveCfg = Release|Any CPU {C7AE743C-7AA2-4D4C-B1C3-CBAA389F7431}.Release|Any CPU.Build.0 = Release|Any CPU + {C7AE743C-7AA2-4D4C-B1C3-CBAA389F7431}.Release|x64.ActiveCfg = Release|Any CPU + {C7AE743C-7AA2-4D4C-B1C3-CBAA389F7431}.Release|x64.Build.0 = Release|Any CPU + {C7AE743C-7AA2-4D4C-B1C3-CBAA389F7431}.Release|x86.ActiveCfg = Release|Any CPU + {C7AE743C-7AA2-4D4C-B1C3-CBAA389F7431}.Release|x86.Build.0 = Release|Any CPU {BA824808-A1F8-4F51-AADD-B0CEDB4215B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BA824808-A1F8-4F51-AADD-B0CEDB4215B7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BA824808-A1F8-4F51-AADD-B0CEDB4215B7}.Debug|x64.ActiveCfg = Debug|Any CPU + {BA824808-A1F8-4F51-AADD-B0CEDB4215B7}.Debug|x64.Build.0 = Debug|Any CPU + {BA824808-A1F8-4F51-AADD-B0CEDB4215B7}.Debug|x86.ActiveCfg = Debug|Any CPU + {BA824808-A1F8-4F51-AADD-B0CEDB4215B7}.Debug|x86.Build.0 = Debug|Any CPU {BA824808-A1F8-4F51-AADD-B0CEDB4215B7}.Release|Any CPU.ActiveCfg = Release|Any CPU {BA824808-A1F8-4F51-AADD-B0CEDB4215B7}.Release|Any CPU.Build.0 = Release|Any CPU + {BA824808-A1F8-4F51-AADD-B0CEDB4215B7}.Release|x64.ActiveCfg = Release|Any CPU + {BA824808-A1F8-4F51-AADD-B0CEDB4215B7}.Release|x64.Build.0 = Release|Any CPU + {BA824808-A1F8-4F51-AADD-B0CEDB4215B7}.Release|x86.ActiveCfg = Release|Any CPU + {BA824808-A1F8-4F51-AADD-B0CEDB4215B7}.Release|x86.Build.0 = Release|Any CPU {F18ADD45-27F3-48D1-98C9-632575DB58D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F18ADD45-27F3-48D1-98C9-632575DB58D9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F18ADD45-27F3-48D1-98C9-632575DB58D9}.Debug|x64.ActiveCfg = Debug|Any CPU + {F18ADD45-27F3-48D1-98C9-632575DB58D9}.Debug|x64.Build.0 = Debug|Any CPU + {F18ADD45-27F3-48D1-98C9-632575DB58D9}.Debug|x86.ActiveCfg = Debug|Any CPU + {F18ADD45-27F3-48D1-98C9-632575DB58D9}.Debug|x86.Build.0 = Debug|Any CPU {F18ADD45-27F3-48D1-98C9-632575DB58D9}.Release|Any CPU.ActiveCfg = Release|Any CPU {F18ADD45-27F3-48D1-98C9-632575DB58D9}.Release|Any CPU.Build.0 = Release|Any CPU - {512150A7-69AC-455F-A775-8F88CE224CD2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {512150A7-69AC-455F-A775-8F88CE224CD2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {512150A7-69AC-455F-A775-8F88CE224CD2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {512150A7-69AC-455F-A775-8F88CE224CD2}.Release|Any CPU.Build.0 = Release|Any CPU + {F18ADD45-27F3-48D1-98C9-632575DB58D9}.Release|x64.ActiveCfg = Release|Any CPU + {F18ADD45-27F3-48D1-98C9-632575DB58D9}.Release|x64.Build.0 = Release|Any CPU + {F18ADD45-27F3-48D1-98C9-632575DB58D9}.Release|x86.ActiveCfg = Release|Any CPU + {F18ADD45-27F3-48D1-98C9-632575DB58D9}.Release|x86.Build.0 = Release|Any CPU + {6A16B5CB-F092-4DA5-BE5B-6FEFFE982096}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6A16B5CB-F092-4DA5-BE5B-6FEFFE982096}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6A16B5CB-F092-4DA5-BE5B-6FEFFE982096}.Debug|x64.ActiveCfg = Debug|Any CPU + {6A16B5CB-F092-4DA5-BE5B-6FEFFE982096}.Debug|x64.Build.0 = Debug|Any CPU + {6A16B5CB-F092-4DA5-BE5B-6FEFFE982096}.Debug|x86.ActiveCfg = Debug|Any CPU + {6A16B5CB-F092-4DA5-BE5B-6FEFFE982096}.Debug|x86.Build.0 = Debug|Any CPU + {6A16B5CB-F092-4DA5-BE5B-6FEFFE982096}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6A16B5CB-F092-4DA5-BE5B-6FEFFE982096}.Release|Any CPU.Build.0 = Release|Any CPU + {6A16B5CB-F092-4DA5-BE5B-6FEFFE982096}.Release|x64.ActiveCfg = Release|Any CPU + {6A16B5CB-F092-4DA5-BE5B-6FEFFE982096}.Release|x64.Build.0 = Release|Any CPU + {6A16B5CB-F092-4DA5-BE5B-6FEFFE982096}.Release|x86.ActiveCfg = Release|Any CPU + {6A16B5CB-F092-4DA5-BE5B-6FEFFE982096}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {B940536F-36B2-485C-BBEC-0C82FAACFFC6} = {3A8A3FE9-7C8D-43B9-AC12-8FAA83CD977C} @@ -70,5 +140,6 @@ Global {9C8C8F4B-359B-448F-88CB-7F4F1B94709E} = {3A8A3FE9-7C8D-43B9-AC12-8FAA83CD977C} {C7AE743C-7AA2-4D4C-B1C3-CBAA389F7431} = {3A8A3FE9-7C8D-43B9-AC12-8FAA83CD977C} {BA824808-A1F8-4F51-AADD-B0CEDB4215B7} = {3A8A3FE9-7C8D-43B9-AC12-8FAA83CD977C} + {6A16B5CB-F092-4DA5-BE5B-6FEFFE982096} = {2D84CE50-F89B-94FD-0D1C-E1015598E8EB} EndGlobalSection EndGlobal diff --git a/src/ManagedServices/ManagedServices/Az.ManagedServices.psd1 b/src/ManagedServices/ManagedServices/Az.ManagedServices.psd1 index 626f1af53844..5ea7b7fe9478 100644 --- a/src/ManagedServices/ManagedServices/Az.ManagedServices.psd1 +++ b/src/ManagedServices/ManagedServices/Az.ManagedServices.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/9/2025 +# Generated on: 6/11/2025 # @{ @@ -51,19 +51,19 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'ManagedServices.Autorest/bin/Az.ManagedServices.private.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 = 'ManagedServices.Autorest\Az.ManagedServices.format.ps1xml' +FormatsToProcess = 'ManagedServices.Autorest/Az.ManagedServices.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('ManagedServices.Autorest/Az.ManagedServices.psm1') @@ -78,7 +78,8 @@ FunctionsToExport = 'Get-AzManagedServicesAssignment', 'New-AzManagedServicesEligibleApproverObject', 'New-AzManagedServicesEligibleAuthorizationObject', 'Remove-AzManagedServicesAssignment', - 'Remove-AzManagedServicesDefinition' + 'Remove-AzManagedServicesDefinition', + 'Update-AzManagedServicesDefinition' # 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 = @() @@ -104,7 +105,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','ManagedServices' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ManagedServices' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -129,7 +130,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/ManagedServices/ManagedServices/ChangeLog.md b/src/ManagedServices/ManagedServices/ChangeLog.md index 4f647d05b805..f865f07bd571 100644 --- a/src/ManagedServices/ManagedServices/ChangeLog.md +++ b/src/ManagedServices/ManagedServices/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* 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). ## Version 3.1.0 * Upgraded nuget package to signed package. diff --git a/src/ManagedServices/ManagedServices/help/Az.ManagedServices.md b/src/ManagedServices/ManagedServices/help/Az.ManagedServices.md index 3a58f992d3fc..a4274552a910 100644 --- a/src/ManagedServices/ManagedServices/help/Az.ManagedServices.md +++ b/src/ManagedServices/ManagedServices/help/Az.ManagedServices.md @@ -21,19 +21,19 @@ Gets the registration definition details. Get the marketplace registration definition for the marketplace identifier. ### [New-AzManagedServicesAssignment](New-AzManagedServicesAssignment.md) -Creates or updates a registration assignment. +Create a registration assignment. ### [New-AzManagedServicesAuthorizationObject](New-AzManagedServicesAuthorizationObject.md) Create an in-memory object for Authorization. ### [New-AzManagedServicesDefinition](New-AzManagedServicesDefinition.md) -Creates or updates a registration definition. +Create a registration definition. ### [New-AzManagedServicesEligibleApproverObject](New-AzManagedServicesEligibleApproverObject.md) Create an in-memory object for EligibleApprover. ### [New-AzManagedServicesEligibleAuthorizationObject](New-AzManagedServicesEligibleAuthorizationObject.md) -Create a in-memory object for EligibleAuthorization +Create an in-memory object for EligibleAuthorization. ### [Remove-AzManagedServicesAssignment](Remove-AzManagedServicesAssignment.md) Deletes the specified registration assignment. @@ -41,3 +41,6 @@ Deletes the specified registration assignment. ### [Remove-AzManagedServicesDefinition](Remove-AzManagedServicesDefinition.md) Deletes the registration definition. +### [Update-AzManagedServicesDefinition](Update-AzManagedServicesDefinition.md) +Update a registration definition. + diff --git a/src/ManagedServices/ManagedServices/help/Get-AzManagedServicesAssignment.md b/src/ManagedServices/ManagedServices/help/Get-AzManagedServicesAssignment.md index d3e588b1492b..21959f7b9672 100644 --- a/src/ManagedServices/ManagedServices/help/Get-AzManagedServicesAssignment.md +++ b/src/ManagedServices/ManagedServices/help/Get-AzManagedServicesAssignment.md @@ -127,7 +127,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.ManagedServices.Models.IManagedServicesIdentity @@ -180,7 +179,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationAssignment +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IRegistrationAssignment ## NOTES diff --git a/src/ManagedServices/ManagedServices/help/Get-AzManagedServicesDefinition.md b/src/ManagedServices/ManagedServices/help/Get-AzManagedServicesDefinition.md index 87b3b80aac5a..66934cd219bc 100644 --- a/src/ManagedServices/ManagedServices/help/Get-AzManagedServicesDefinition.md +++ b/src/ManagedServices/ManagedServices/help/Get-AzManagedServicesDefinition.md @@ -108,7 +108,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.ManagedServices.Models.IManagedServicesIdentity @@ -161,7 +160,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationDefinition +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IRegistrationDefinition ## NOTES diff --git a/src/ManagedServices/ManagedServices/help/Get-AzManagedServicesMarketplaceDefinition.md b/src/ManagedServices/ManagedServices/help/Get-AzManagedServicesMarketplaceDefinition.md index f65e6535d454..452fb0c000d6 100644 --- a/src/ManagedServices/ManagedServices/help/Get-AzManagedServicesMarketplaceDefinition.md +++ b/src/ManagedServices/ManagedServices/help/Get-AzManagedServicesMarketplaceDefinition.md @@ -165,7 +165,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IMarketplaceRegistrationDefinition +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IMarketplaceRegistrationDefinition ## NOTES diff --git a/src/ManagedServices/ManagedServices/help/New-AzManagedServicesAssignment.md b/src/ManagedServices/ManagedServices/help/New-AzManagedServicesAssignment.md index 18afc9fbab71..840fa9d440b4 100644 --- a/src/ManagedServices/ManagedServices/help/New-AzManagedServicesAssignment.md +++ b/src/ManagedServices/ManagedServices/help/New-AzManagedServicesAssignment.md @@ -8,18 +8,33 @@ schema: 2.0.0 # New-AzManagedServicesAssignment ## SYNOPSIS -Creates or updates a registration assignment. +Create a registration assignment. ## SYNTAX +### CreateExpanded (Default) ``` New-AzManagedServicesAssignment -Name [-Scope ] [-RegistrationDefinitionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` +### CreateViaJsonFilePath +``` +New-AzManagedServicesAssignment -Name [-Scope ] -JsonFilePath + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + +### CreateViaJsonString +``` +New-AzManagedServicesAssignment -Name [-Scope ] -JsonString + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + ## DESCRIPTION -Creates or updates a registration assignment. +Create a registration assignment. ## EXAMPLES @@ -82,6 +97,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 GUID of the registration assignment. @@ -117,7 +162,7 @@ The fully qualified path of the registration definition. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -180,7 +225,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationAssignment +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IRegistrationAssignment ## NOTES diff --git a/src/ManagedServices/ManagedServices/help/New-AzManagedServicesAuthorizationObject.md b/src/ManagedServices/ManagedServices/help/New-AzManagedServicesAuthorizationObject.md index 6925cab47450..d4da4ea1a53c 100644 --- a/src/ManagedServices/ManagedServices/help/New-AzManagedServicesAuthorizationObject.md +++ b/src/ManagedServices/ManagedServices/help/New-AzManagedServicesAuthorizationObject.md @@ -1,7 +1,7 @@ --- external help file: Az.ManagedServices-help.xml Module Name: Az.ManagedServices -online version: https://learn.microsoft.com/powershell/module/Az.ManagedServices/new-AzManagedServicesAuthorizationObject +online version: https://learn.microsoft.com/powershell/module/Az.ManagedServices/new-azmanagedservicesauthorizationobject schema: 2.0.0 --- @@ -119,7 +119,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.Authorization +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Authorization ## NOTES diff --git a/src/ManagedServices/ManagedServices/help/New-AzManagedServicesDefinition.md b/src/ManagedServices/ManagedServices/help/New-AzManagedServicesDefinition.md index 04e1f8f05229..ece999d5ca8d 100644 --- a/src/ManagedServices/ManagedServices/help/New-AzManagedServicesDefinition.md +++ b/src/ManagedServices/ManagedServices/help/New-AzManagedServicesDefinition.md @@ -8,10 +8,11 @@ schema: 2.0.0 # New-AzManagedServicesDefinition ## SYNOPSIS -Creates or updates a registration definition. +Create a registration definition. ## SYNTAX +### CreateExpanded (Default) ``` New-AzManagedServicesDefinition -Name [-Scope ] [-Authorization ] [-Description ] [-EligibleAuthorization ] [-ManagedByTenantId ] @@ -20,8 +21,22 @@ New-AzManagedServicesDefinition -Name [-Scope ] [-Authorization [-WhatIf] [-Confirm] [] ``` +### CreateViaJsonFilePath +``` +New-AzManagedServicesDefinition -Name [-Scope ] -JsonFilePath + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + +### CreateViaJsonString +``` +New-AzManagedServicesDefinition -Name [-Scope ] -JsonString + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + ## DESCRIPTION -Creates or updates a registration definition. +Create a registration definition. ## EXAMPLES @@ -76,11 +91,10 @@ Accept wildcard characters: False ### -Authorization The collection of authorization objects describing the access Azure Active Directory principals in the managedBy tenant will receive on the delegated resource in the managed tenant. -To construct, see NOTES section for AUTHORIZATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IAuthorization[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization[] +Parameter Sets: CreateExpanded Aliases: Required: False @@ -111,7 +125,7 @@ The description of the registration definition. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -123,11 +137,10 @@ Accept wildcard characters: False ### -EligibleAuthorization The collection of eligible authorization objects describing the just-in-time access Azure Active Directory principals in the managedBy tenant will receive on the delegated resource in the managed tenant. -To construct, see NOTES section for ELIGIBLEAUTHORIZATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IEligibleAuthorization[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization[] +Parameter Sets: CreateExpanded Aliases: Required: False @@ -137,12 +150,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 +``` + ### -ManagedByTenantId The identifier of the managedBy tenant. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -187,7 +230,7 @@ Azure Marketplace plan name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -202,7 +245,7 @@ Azure Marketplace product code. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -217,7 +260,7 @@ Azure Marketplace publisher ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -232,7 +275,7 @@ Azure Marketplace plan's version. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -247,7 +290,7 @@ The name of the registration definition. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -310,7 +353,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationDefinition +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IRegistrationDefinition ## NOTES diff --git a/src/ManagedServices/ManagedServices/help/New-AzManagedServicesEligibleApproverObject.md b/src/ManagedServices/ManagedServices/help/New-AzManagedServicesEligibleApproverObject.md index 5dbb68f5f7ad..d6db9bfc84b4 100644 --- a/src/ManagedServices/ManagedServices/help/New-AzManagedServicesEligibleApproverObject.md +++ b/src/ManagedServices/ManagedServices/help/New-AzManagedServicesEligibleApproverObject.md @@ -1,7 +1,7 @@ --- external help file: Az.ManagedServices-help.xml Module Name: Az.ManagedServices -online version: https://learn.microsoft.com/powershell/module/Az.ManagedServices/new-AzManagedServicesEligibleApproverObject +online version: https://learn.microsoft.com/powershell/module/Az.ManagedServices/new-azmanagedserviceseligibleapproverobject schema: 2.0.0 --- @@ -74,7 +74,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.EligibleApprover +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.EligibleApprover ## NOTES diff --git a/src/ManagedServices/ManagedServices/help/New-AzManagedServicesEligibleAuthorizationObject.md b/src/ManagedServices/ManagedServices/help/New-AzManagedServicesEligibleAuthorizationObject.md index 8f3caf6ccb0f..cc2e49d2c3e9 100644 --- a/src/ManagedServices/ManagedServices/help/New-AzManagedServicesEligibleAuthorizationObject.md +++ b/src/ManagedServices/ManagedServices/help/New-AzManagedServicesEligibleAuthorizationObject.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzManagedServicesEligibleAuthorizationObject ## SYNOPSIS -Create a in-memory object for EligibleAuthorization +Create an in-memory object for EligibleAuthorization. ## SYNTAX @@ -16,12 +16,12 @@ Create a in-memory object for EligibleAuthorization New-AzManagedServicesEligibleAuthorizationObject -PrincipalId -RoleDefinitionId [-JustInTimeAccessPolicyManagedByTenantApprover ] [-JustInTimeAccessPolicyMaximumActivationDuration ] - [-JustInTimeAccessPolicyMultiFactorAuthProvider ] [-PrincipalIdDisplayName ] + [-JustInTimeAccessPolicyMultiFactorAuthProvider ] [-PrincipalIdDisplayName ] [] ``` ## DESCRIPTION -Create a in-memory object for EligibleAuthorization +Create an in-memory object for EligibleAuthorization. ## EXAMPLES @@ -62,10 +62,9 @@ Creates new Azure Lighthouse eligible authorization object with JustInTime (JIT) ### -JustInTimeAccessPolicyManagedByTenantApprover The list of managedByTenant approvers for the eligible authorization. -To construct, see NOTES section for JUSTINTIMEACCESSPOLICYMANAGEDBYTENANTAPPROVER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IEligibleApprover[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleApprover[] Parameter Sets: (All) Aliases: @@ -95,7 +94,7 @@ Accept wildcard characters: False The multi-factor authorization provider to be used for just-in-time access requests. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.MultiFactorAuthProvider +Type: System.String Parameter Sets: (All) Aliases: @@ -158,7 +157,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.EligibleAuthorization +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.EligibleAuthorization ## NOTES diff --git a/src/ManagedServices/ManagedServices/help/Remove-AzManagedServicesAssignment.md b/src/ManagedServices/ManagedServices/help/Remove-AzManagedServicesAssignment.md index f17ed88bc31e..d5f20074a288 100644 --- a/src/ManagedServices/ManagedServices/help/Remove-AzManagedServicesAssignment.md +++ b/src/ManagedServices/ManagedServices/help/Remove-AzManagedServicesAssignment.md @@ -78,7 +78,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.ManagedServices.Models.IManagedServicesIdentity diff --git a/src/ManagedServices/ManagedServices/help/Remove-AzManagedServicesDefinition.md b/src/ManagedServices/ManagedServices/help/Remove-AzManagedServicesDefinition.md index 40d028191534..b21e3f07e079 100644 --- a/src/ManagedServices/ManagedServices/help/Remove-AzManagedServicesDefinition.md +++ b/src/ManagedServices/ManagedServices/help/Remove-AzManagedServicesDefinition.md @@ -56,7 +56,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.ManagedServices.Models.IManagedServicesIdentity diff --git a/src/ManagedServices/ManagedServices/help/Update-AzManagedServicesDefinition.md b/src/ManagedServices/ManagedServices/help/Update-AzManagedServicesDefinition.md new file mode 100644 index 000000000000..e7c91ee1a5f5 --- /dev/null +++ b/src/ManagedServices/ManagedServices/help/Update-AzManagedServicesDefinition.md @@ -0,0 +1,325 @@ +--- +external help file: Az.ManagedServices-help.xml +Module Name: Az.ManagedServices +online version: https://learn.microsoft.com/powershell/module/az.managedservices/update-azmanagedservicesdefinition +schema: 2.0.0 +--- + +# Update-AzManagedServicesDefinition + +## SYNOPSIS +Update a registration definition. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzManagedServicesDefinition -Name [-Scope ] [-Authorization ] + [-Description ] [-EligibleAuthorization ] [-ManagedByTenantId ] + [-PlanName ] [-PlanProduct ] [-PlanPublisher ] [-PlanVersion ] + [-RegistrationDefinitionName ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzManagedServicesDefinition -InputObject [-Authorization ] + [-Description ] [-EligibleAuthorization ] [-ManagedByTenantId ] + [-PlanName ] [-PlanProduct ] [-PlanPublisher ] [-PlanVersion ] + [-RegistrationDefinitionName ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Update a registration definition. + +## EXAMPLES + +### Example 1: Update Azure Lighthouse registration definition object with permanent authorization +```powershell +$permantAuth = New-AzManagedServicesAuthorizationObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -RoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Test user" -DelegatedRoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" + +Update-AzManagedServicesDefinition -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -RegistrationDefinitionName "Test definition" -ManagedByTenantId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Authorization $permantAuth -Description "Test definition desc" -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +``` + +```output +Name Type +---- ---- +xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Microsoft.ManagedServices/registrationDefinitions +``` + +Updates Azure Lighthouse registration definition object with permanent authorization. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Authorization +The collection of authorization objects describing the access Azure Active Directory principals in the managedBy tenant will receive on the delegated resource in the managed tenant. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization[] +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 +``` + +### -Description +The description of the registration definition. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EligibleAuthorization +The collection of eligible authorization objects describing the just-in-time access Azure Active Directory principals in the managedBy tenant will receive on the delegated resource in the managed tenant. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization[] +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.ManagedServices.Models.IManagedServicesIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ManagedByTenantId +The identifier of the managedBy tenant. + +```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 GUID of the registration definition. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: RegistrationDefinitionId + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PlanName +Azure Marketplace plan name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PlanProduct +Azure Marketplace product code. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PlanPublisher +Azure Marketplace publisher ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PlanVersion +Azure Marketplace plan's version. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RegistrationDefinitionName +The name of the registration definition. + +```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 resource. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: "subscriptions/" + (Get-AzContext).Subscription.Id +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.ManagedServices.Models.IManagedServicesIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IRegistrationDefinition + +## NOTES + +## RELATED LINKS From 37eb0bac45fc9c6424212c49c20edb4709abcb12 Mon Sep 17 00:00:00 2001 From: JoyerJin <116236375+JoyerJin@users.noreply.github.com> Date: Thu, 12 Jun 2025 15:12:50 +0800 Subject: [PATCH 2/2] Create BreakingChangeIssues.csv --- .../BreakingChangeIssues.csv | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tools/StaticAnalysis/Exceptions/Az.ManagedServices/BreakingChangeIssues.csv diff --git a/tools/StaticAnalysis/Exceptions/Az.ManagedServices/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.ManagedServices/BreakingChangeIssues.csv new file mode 100644 index 000000000000..dd8684acb9d5 --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.ManagedServices/BreakingChangeIssues.csv @@ -0,0 +1,24 @@ +"Module","ClassName","Target","Severity","ProblemId","Description","Remediation" +"Az.ManagedServices","Get-AzManagedServicesAssignment","Get-AzManagedServicesAssignment","0","3000","The type of property 'Authorization' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationAssignment' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization]'.","Change the type of property 'Authorization' back to 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization'." +"Az.ManagedServices","Get-AzManagedServicesAssignment","Get-AzManagedServicesAssignment","0","3000","The type of property 'EligibleAuthorization' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationAssignment' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization]'.","Change the type of property 'EligibleAuthorization' back to 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization'." +"Az.ManagedServices","Get-AzManagedServicesAssignment","Get-AzManagedServicesAssignment","0","3000","The type of property 'RegistrationDefinitionPropertiesProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationAssignment' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'RegistrationDefinitionPropertiesProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.ProvisioningState]'." +"Az.ManagedServices","Get-AzManagedServicesAssignment","Get-AzManagedServicesAssignment","0","3000","The type of property 'ProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationAssignment' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'ProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.ProvisioningState]'." +"Az.ManagedServices","Get-AzManagedServicesDefinition","Get-AzManagedServicesDefinition","0","3000","The type of property 'Authorization' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationDefinition' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization]'.","Change the type of property 'Authorization' back to 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization'." +"Az.ManagedServices","Get-AzManagedServicesDefinition","Get-AzManagedServicesDefinition","0","3000","The type of property 'EligibleAuthorization' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationDefinition' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization]'.","Change the type of property 'EligibleAuthorization' back to 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization'." +"Az.ManagedServices","Get-AzManagedServicesDefinition","Get-AzManagedServicesDefinition","0","3000","The type of property 'ProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationDefinition' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'ProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.ProvisioningState]'." +"Az.ManagedServices","Get-AzManagedServicesMarketplaceDefinition","Get-AzManagedServicesMarketplaceDefinition","0","3000","The type of property 'Authorization' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IMarketplaceRegistrationDefinition' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization]'.","Change the type of property 'Authorization' back to 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization'." +"Az.ManagedServices","Get-AzManagedServicesMarketplaceDefinition","Get-AzManagedServicesMarketplaceDefinition","0","3000","The type of property 'EligibleAuthorization' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IMarketplaceRegistrationDefinition' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization]'.","Change the type of property 'EligibleAuthorization' back to 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization'." +"Az.ManagedServices","New-AzManagedServicesAssignment","New-AzManagedServicesAssignment","0","3000","The type of property 'Authorization' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationAssignment' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization]'.","Change the type of property 'Authorization' back to 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization'." +"Az.ManagedServices","New-AzManagedServicesAssignment","New-AzManagedServicesAssignment","0","3000","The type of property 'EligibleAuthorization' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationAssignment' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization]'.","Change the type of property 'EligibleAuthorization' back to 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization'." +"Az.ManagedServices","New-AzManagedServicesAssignment","New-AzManagedServicesAssignment","0","3000","The type of property 'RegistrationDefinitionPropertiesProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationAssignment' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'RegistrationDefinitionPropertiesProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.ProvisioningState]'." +"Az.ManagedServices","New-AzManagedServicesAssignment","New-AzManagedServicesAssignment","0","3000","The type of property 'ProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationAssignment' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'ProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.ProvisioningState]'." +"Az.ManagedServices","New-AzManagedServicesAuthorizationObject","New-AzManagedServicesAuthorizationObject","0","3000","The type of property 'DelegatedRoleDefinitionId' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.Authorization' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'DelegatedRoleDefinitionId' back to 'System.String[]'." +"Az.ManagedServices","New-AzManagedServicesDefinition","New-AzManagedServicesDefinition","0","3000","The type of property 'Authorization' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationDefinition' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization]'.","Change the type of property 'Authorization' back to 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IAuthorization'." +"Az.ManagedServices","New-AzManagedServicesDefinition","New-AzManagedServicesDefinition","0","3000","The type of property 'EligibleAuthorization' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationDefinition' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization]'.","Change the type of property 'EligibleAuthorization' back to 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleAuthorization'." +"Az.ManagedServices","New-AzManagedServicesDefinition","New-AzManagedServicesDefinition","0","3000","The type of property 'ProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IRegistrationDefinition' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'ProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.ProvisioningState]'." +"Az.ManagedServices","New-AzManagedServicesDefinition","New-AzManagedServicesDefinition","0","3000","The type of property 'DelegatedRoleDefinitionId' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IAuthorization' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'DelegatedRoleDefinitionId' back to 'System.String[]'." +"Az.ManagedServices","New-AzManagedServicesDefinition","New-AzManagedServicesDefinition","0","3000","The type of property 'JustInTimeAccessPolicyManagedByTenantApprover' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IEligibleAuthorization' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleApprover' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleApprover]'.","Change the type of property 'JustInTimeAccessPolicyManagedByTenantApprover' back to 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleApprover'." +"Az.ManagedServices","New-AzManagedServicesDefinition","New-AzManagedServicesDefinition","0","3000","The type of property 'JustInTimeAccessPolicyMultiFactorAuthProvider' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.IEligibleAuthorization' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.MultiFactorAuthProvider]' to 'System.String'.","Change the type of property 'JustInTimeAccessPolicyMultiFactorAuthProvider' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.MultiFactorAuthProvider]'." +"Az.ManagedServices","New-AzManagedServicesEligibleAuthorizationObject","New-AzManagedServicesEligibleAuthorizationObject","0","3000","The type of property 'JustInTimeAccessPolicyManagedByTenantApprover' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.EligibleAuthorization' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleApprover' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleApprover]'.","Change the type of property 'JustInTimeAccessPolicyManagedByTenantApprover' back to 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.IEligibleApprover'." +"Az.ManagedServices","New-AzManagedServicesEligibleAuthorizationObject","New-AzManagedServicesEligibleAuthorizationObject","0","3000","The type of property 'JustInTimeAccessPolicyMultiFactorAuthProvider' of type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.Api20200201Preview.EligibleAuthorization' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.MultiFactorAuthProvider]' to 'System.String'.","Change the type of property 'JustInTimeAccessPolicyMultiFactorAuthProvider' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.MultiFactorAuthProvider]'." +"Az.ManagedServices","New-AzManagedServicesEligibleAuthorizationObject","New-AzManagedServicesEligibleAuthorizationObject","0","2020","The cmdlet 'New-AzManagedServicesEligibleAuthorizationObject' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.MultiFactorAuthProvider' for parameter 'JustInTimeAccessPolicyMultiFactorAuthProvider'.","Change the type for parameter 'JustInTimeAccessPolicyMultiFactorAuthProvider' back to 'Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Support.MultiFactorAuthProvider'." \ No newline at end of file