diff --git a/src/Migrate/Migrate.Autorest/Properties/AssemblyInfo.cs b/src/Migrate/Migrate.Autorest/Properties/AssemblyInfo.cs index f4334b7bc189..51c64c08eb86 100644 --- a/src/Migrate/Migrate.Autorest/Properties/AssemblyInfo.cs +++ b/src/Migrate/Migrate.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Migrate")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("2.10.1")] -[assembly: System.Reflection.AssemblyVersionAttribute("2.10.1")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("2.11.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("2.11.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] diff --git a/src/Migrate/Migrate.Autorest/README.md b/src/Migrate/Migrate.Autorest/README.md index da617727c68b..a8a3acee77e2 100644 --- a/src/Migrate/Migrate.Autorest/README.md +++ b/src/Migrate/Migrate.Autorest/README.md @@ -526,3 +526,9 @@ directive: model-name: Fabric set: suppress-format: true + - where: + verb: New + subject: ReplicationProtectionContainerMapping + set: + preview-announcement: + preview-message: "*****************************************************************************************\\r\\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\\r\\n* At least one change applies to this cmdlet. *\\r\\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\\r\\n**************************************************************************************************" diff --git a/src/Migrate/Migrate.Autorest/custom/Az.Migrate.custom.psm1 b/src/Migrate/Migrate.Autorest/custom/Az.Migrate.custom.psm1 index a8fc67b1e913..414362f01faf 100644 --- a/src/Migrate/Migrate.Autorest/custom/Az.Migrate.custom.psm1 +++ b/src/Migrate/Migrate.Autorest/custom/Az.Migrate.custom.psm1 @@ -1,9 +1,9 @@ # region Generated # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.Migrate.private.dll') + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.Migrate.private.dll') # Load the internal module - $internalModulePath = Join-Path $PSScriptRoot '../internal/Az.Migrate.internal.psm1' + $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.Migrate.internal.psm1' if(Test-Path $internalModulePath) { $null = Import-Module -Name $internalModulePath } diff --git a/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateDiscoveredServer.ps1 b/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateDiscoveredServer.ps1 index e0cb94cc8db0..ffb8c1719f31 100644 --- a/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateDiscoveredServer.ps1 +++ b/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateDiscoveredServer.ps1 @@ -23,6 +23,11 @@ https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratediscovered #> function Get-AzMigrateDiscoveredServer { + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessage("**********************************************************************************************`n + * This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n + * At least one change applies to this cmdlet. *`n + * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n + ***************************************************************************************************")] [OutputType( [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareMachine], [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IHyperVMachine])] diff --git a/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateJob.ps1 b/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateJob.ps1 index 243f0500f204..81c3fcb9cfaf 100644 --- a/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateJob.ps1 +++ b/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateJob.ps1 @@ -22,6 +22,11 @@ The Get-AzMigrateJob cmdlet retrieves the status of an Azure Migrate job. https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratejob #> function Get-AzMigrateJob { + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessage("**********************************************************************************************`n + * This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n + * At least one change applies to this cmdlet. *`n + * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n + ***************************************************************************************************")] [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20250801.IJob])] [CmdletBinding(DefaultParameterSetName = 'ListByName', PositionalBinding = $false)] param( diff --git a/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateLocalJob.ps1 b/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateLocalJob.ps1 index 78a6726d270a..cf03f407c79c 100644 --- a/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateLocalJob.ps1 +++ b/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateLocalJob.ps1 @@ -22,6 +22,11 @@ The Get-AzMigrateLocalJob cmdlet retrieves the status of an Azure Migrate job. https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratelocaljob #> function Get-AzMigrateLocalJob { + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessage("**********************************************************************************************`n + * This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n + * At least one change applies to this cmdlet. *`n + * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n + ***************************************************************************************************")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessageAttribute("This cmdlet is based on a preview API version and may experience breaking changes in future releases.")] [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20240901.IJobModel])] [CmdletBinding(DefaultParameterSetName = 'ListByName', PositionalBinding = $false)] diff --git a/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateLocalServerReplication.ps1 b/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateLocalServerReplication.ps1 index af472e7e78af..aa6a0610056e 100644 --- a/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateLocalServerReplication.ps1 +++ b/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateLocalServerReplication.ps1 @@ -22,6 +22,11 @@ The Get-AzMigrateLocalServerReplication cmdlet retrieves the object for the repl https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratelocalserverreplication #> function Get-AzMigrateLocalServerReplication { + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessage("**********************************************************************************************`n + * This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n + * At least one change applies to this cmdlet. *`n + * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n + ***************************************************************************************************")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessageAttribute("This cmdlet is based on a preview API version and may experience breaking changes in future releases.")] [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20240901.IProtectedItemModel])] [CmdletBinding(DefaultParameterSetName = 'ListByName', PositionalBinding = $false)] diff --git a/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateServerReplication.ps1 b/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateServerReplication.ps1 index 9cea1b748256..e3f647b253b1 100644 --- a/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateServerReplication.ps1 +++ b/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateServerReplication.ps1 @@ -22,6 +22,11 @@ The Get-AzMigrateServerReplication cmdlet retrieves the object for the replicati https://learn.microsoft.com/powershell/module/az.migrate/get-azmigrateserverreplication #> function Get-AzMigrateServerReplication { + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessage("**********************************************************************************************`n + * This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n + * At least one change applies to this cmdlet. *`n + * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n + ***************************************************************************************************")] [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20250801.IMigrationItem])] [CmdletBinding(DefaultParameterSetName = 'ListByName', PositionalBinding = $false)] param( diff --git a/src/Migrate/Migrate.Autorest/custom/New-AzMigrateDiskMapping.ps1 b/src/Migrate/Migrate.Autorest/custom/New-AzMigrateDiskMapping.ps1 index 922d58cdf348..43cf04297845 100644 --- a/src/Migrate/Migrate.Autorest/custom/New-AzMigrateDiskMapping.ps1 +++ b/src/Migrate/Migrate.Autorest/custom/New-AzMigrateDiskMapping.ps1 @@ -22,6 +22,11 @@ The New-AzMigrateDiskMapping cmdlet creates a mapping of the source disk attache https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratediskmapping #> function New-AzMigrateDiskMapping { + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessage("**********************************************************************************************`n + * This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n + * At least one change applies to this cmdlet. *`n + * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n + ***************************************************************************************************")] [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20250801.IVMwareCbtDiskInput])] [CmdletBinding(DefaultParameterSetName = 'VMwareCbt', PositionalBinding = $false)] param( diff --git a/src/Migrate/Migrate.Autorest/custom/New-AzMigrateProject.ps1 b/src/Migrate/Migrate.Autorest/custom/New-AzMigrateProject.ps1 index 762fd8e86ac5..67f99d63ff26 100644 --- a/src/Migrate/Migrate.Autorest/custom/New-AzMigrateProject.ps1 +++ b/src/Migrate/Migrate.Autorest/custom/New-AzMigrateProject.ps1 @@ -23,6 +23,11 @@ https://learn.microsoft.com/powershell/module/az.migrate/new-azmigrateproject #> function New-AzMigrateProject { + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessage("**********************************************************************************************`n + * This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n + * At least one change applies to this cmdlet. *`n + * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n + ***************************************************************************************************")] [CmdletBinding(DefaultParameterSetName='PutExpandedCustom', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param ( [Parameter(ParameterSetName='PutExpandedCustom', Mandatory)] diff --git a/src/Migrate/Migrate.Autorest/custom/New-AzMigrateServerReplication.ps1 b/src/Migrate/Migrate.Autorest/custom/New-AzMigrateServerReplication.ps1 index e8f3ca481507..2bda9a49cb42 100644 --- a/src/Migrate/Migrate.Autorest/custom/New-AzMigrateServerReplication.ps1 +++ b/src/Migrate/Migrate.Autorest/custom/New-AzMigrateServerReplication.ps1 @@ -22,6 +22,11 @@ The New-AzMigrateServerReplication cmdlet starts the replication for a particula https://learn.microsoft.com/powershell/module/az.migrate/new-azmigrateserverreplication #> function New-AzMigrateServerReplication { + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessage("**********************************************************************************************`n + * This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n + * At least one change applies to this cmdlet. *`n + * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n + ***************************************************************************************************")] [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20250801.IJob])] [CmdletBinding(DefaultParameterSetName = 'ByIdDefaultUser', PositionalBinding = $false)] param( diff --git a/src/Migrate/Migrate.Autorest/custom/README.md b/src/Migrate/Migrate.Autorest/custom/README.md index a268d35afb1d..67ca1cd0e5cd 100644 --- a/src/Migrate/Migrate.Autorest/custom/README.md +++ b/src/Migrate/Migrate.Autorest/custom/README.md @@ -1,5 +1,5 @@ # Custom -This directory contains custom implementation for non-generated cmdlets for the `Az.Migrate` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `../exports` folder. The only generated file into this folder is the `Az.Migrate.custom.psm1`. This file should not be modified. +This directory contains custom implementation for non-generated cmdlets for the `Az.Migrate` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.Migrate.custom.psm1`. This file should not be modified. ## Info - Modifiable: yes @@ -15,10 +15,10 @@ For C# cmdlets, they are compiled with the rest of the generated low-level cmdle For script cmdlets, these are loaded via the `Az.Migrate.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. ## Purpose -This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `../exports` folder. +This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder. ## Usage -The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `../exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: +The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: - Break - DefaultProfile - HttpPipelineAppend @@ -36,6 +36,6 @@ For processing the cmdlets, we've created some additional attributes: - `Microsoft.Azure.PowerShell.Cmdlets.Migrate.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.Migrate`. - `Microsoft.Azure.PowerShell.Cmdlets.Migrate.InternalExportAttribute` - - Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.Migrate`. For more information, see [README.md](../internal/README.md) in the `../internal` folder. + - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.Migrate`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder. - `Microsoft.Azure.PowerShell.Cmdlets.Migrate.ProfileAttribute` - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/Migrate/Migrate.Autorest/docs/Az.Migrate.md b/src/Migrate/Migrate.Autorest/docs/Az.Migrate.md index ea6cce5eadc8..9acf8c021552 100644 --- a/src/Migrate/Migrate.Autorest/docs/Az.Migrate.md +++ b/src/Migrate/Migrate.Autorest/docs/Az.Migrate.md @@ -1,6 +1,6 @@ --- Module Name: Az.Migrate -Module Guid: f153e017-733d-493f-a276-5b92bb3eace1 +Module Guid: 1e28f0b4-1cb3-4e57-ae54-b783789ddc1f Download Help Link: https://learn.microsoft.com/powershell/module/az.migrate Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Migrate/Migrate.Autorest/docs/New-AzMigrateServerReplication.md b/src/Migrate/Migrate.Autorest/docs/New-AzMigrateServerReplication.md index dcd0287f65ae..8520a25013bf 100644 --- a/src/Migrate/Migrate.Autorest/docs/New-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate.Autorest/docs/New-AzMigrateServerReplication.md @@ -21,10 +21,9 @@ New-AzMigrateServerReplication -DiskType -LicenseType -Machine [-PerformAutoResync ] [-SqlServerLicenseType ] [-SubscriptionId ] [-Tag ] [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] [-TargetBootDiagnosticsStorageAccount ] [-TargetCapacityReservationGroupId ] - [-TargetSecurityType ] [-TargetVMSecureBootEnabled ] - [-TargetVMSize ] [-TestNetworkId ] [-TestSubnetName ] - [-VMTag ] [-VMWarerunasaccountID ] - [-DefaultProfile ] [] + [-TargetSecurityType ] [-TargetVMSecureBootEnabled ] [-TargetVMSize ] + [-TestNetworkId ] [-TestSubnetName ] [-VMTag ] + [-VMWarerunasaccountID ] [-DefaultProfile ] [] ``` ### ByIdPowerUser @@ -36,10 +35,9 @@ New-AzMigrateServerReplication -DiskToInclude -LicenseTy [-SqlServerLicenseType ] [-SubscriptionId ] [-Tag ] [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] [-TargetBootDiagnosticsStorageAccount ] [-TargetCapacityReservationGroupId ] - [-TargetSecurityType ] [-TargetVMSecureBootEnabled ] - [-TargetVMSize ] [-TestNetworkId ] [-TestSubnetName ] - [-VMTag ] [-VMWarerunasaccountID ] - [-DefaultProfile ] [] + [-TargetSecurityType ] [-TargetVMSecureBootEnabled ] [-TargetVMSize ] + [-TestNetworkId ] [-TestSubnetName ] [-VMTag ] + [-VMWarerunasaccountID ] [-DefaultProfile ] [] ``` ### ByInputObjectDefaultUser @@ -52,10 +50,9 @@ New-AzMigrateServerReplication -DiskType -InputObject [-SqlServerLicenseType ] [-SubscriptionId ] [-Tag ] [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] [-TargetBootDiagnosticsStorageAccount ] [-TargetCapacityReservationGroupId ] - [-TargetSecurityType ] [-TargetVMSecureBootEnabled ] - [-TargetVMSize ] [-TestNetworkId ] [-TestSubnetName ] - [-VMTag ] [-VMWarerunasaccountID ] - [-DefaultProfile ] [] + [-TargetSecurityType ] [-TargetVMSecureBootEnabled ] [-TargetVMSize ] + [-TestNetworkId ] [-TestSubnetName ] [-VMTag ] + [-VMWarerunasaccountID ] [-DefaultProfile ] [] ``` ### ByInputObjectPowerUser @@ -67,10 +64,9 @@ New-AzMigrateServerReplication -DiskToInclude -InputObje [-SqlServerLicenseType ] [-SubscriptionId ] [-Tag ] [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] [-TargetBootDiagnosticsStorageAccount ] [-TargetCapacityReservationGroupId ] - [-TargetSecurityType ] [-TargetVMSecureBootEnabled ] - [-TargetVMSize ] [-TestNetworkId ] [-TestSubnetName ] - [-VMTag ] [-VMWarerunasaccountID ] - [-DefaultProfile ] [] + [-TargetSecurityType ] [-TargetVMSecureBootEnabled ] [-TargetVMSize ] + [-TestNetworkId ] [-TestSubnetName ] [-VMTag ] + [-VMWarerunasaccountID ] [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -465,53 +461,53 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -TargetSecurityType -Specifies the security type for the target Azure VM. Supported values are 'Standard' and 'TrustedLaunch'. +### -TargetNetworkId +Specifies the Virtual Network id within the destination Azure subscription to which the server needs to be migrated. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -TargetVMSecureBootEnabled -Specifies if secure boot needs to be enabled on the target Azure VM. Applicable only when TargetSecurityType is 'TrustedLaunch'. +### -TargetResourceGroupId +Specifies the Resource Group id within the destination Azure subscription to which the server needs to be migrated. ```yaml -Type: System.Boolean +Type: System.String Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -TargetNetworkId -Specifies the Virtual Network id within the destination Azure subscription to which the server needs to be migrated. +### -TargetSecurityType +Specifies the security type for the Azure VM. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -TargetResourceGroupId -Specifies the Resource Group id within the destination Azure subscription to which the server needs to be migrated. +### -TargetSubnetName +Specifies the Subnet name within the destination Virtual Network to which the server needs to be migrated. ```yaml Type: System.String @@ -525,8 +521,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -TargetSubnetName -Specifies the Subnet name within the destination Virtual Network to which the server needs to be migrated. +### -TargetVMName +Specifies the name of the Azure VM to be created. ```yaml Type: System.String @@ -540,15 +536,15 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -TargetVMName -Specifies the name of the Azure VM to be created. +### -TargetVMSecureBootEnabled +Specifies if secure boot needs to be enabled on target VM. ```yaml -Type: System.String +Type: System.Boolean Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False diff --git a/src/Migrate/Migrate.Autorest/docs/README.md b/src/Migrate/Migrate.Autorest/docs/README.md index c166cf748460..888608999710 100644 --- a/src/Migrate/Migrate.Autorest/docs/README.md +++ b/src/Migrate/Migrate.Autorest/docs/README.md @@ -1,5 +1,5 @@ # Docs -This directory contains the documentation of the cmdlets for the `Az.Migrate` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `../examples` folder. +This directory contains the documentation of the cmdlets for the `Az.Migrate` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder. ## Info - Modifiable: no @@ -8,4 +8,4 @@ This directory contains the documentation of the cmdlets for the `Az.Migrate` mo - Packaged: yes ## Details -The process of documentation generation loads `Az.Migrate` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `../exports` folder. Additionally, when writing custom cmdlets in the `../custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `../examples` folder. \ No newline at end of file +The process of documentation generation loads `Az.Migrate` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file diff --git a/src/Migrate/Migrate.Autorest/generate-info.json b/src/Migrate/Migrate.Autorest/generate-info.json index acf5b1e6a580..d3a777410a31 100644 --- a/src/Migrate/Migrate.Autorest/generate-info.json +++ b/src/Migrate/Migrate.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "2a1214fa-670a-4463-b244-a4c2e21ad2fc" + "generate_Id": "16bb7afe-8ed4-4a71-ad0d-44d35c30243f" } diff --git a/src/Migrate/Migrate.Autorest/resources/README.md b/src/Migrate/Migrate.Autorest/resources/README.md index 736492341e3d..937f07f8fec2 100644 --- a/src/Migrate/Migrate.Autorest/resources/README.md +++ b/src/Migrate/Migrate.Autorest/resources/README.md @@ -1,5 +1,5 @@ # 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. +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 diff --git a/src/Migrate/Migrate.Autorest/test/README.md b/src/Migrate/Migrate.Autorest/test/README.md index 1969200c6a09..7c752b4c8c43 100644 --- a/src/Migrate/Migrate.Autorest/test/README.md +++ b/src/Migrate/Migrate.Autorest/test/README.md @@ -1,5 +1,5 @@ # Test -This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `../custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. +This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `..\custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. ## Info - Modifiable: yes diff --git a/src/Migrate/Migrate.sln b/src/Migrate/Migrate.sln index b645548abf03..eac6674ed04f 100644 --- a/src/Migrate/Migrate.sln +++ b/src/Migrate/Migrate.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Migrate", "Migrate\Migrate. EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Migrate.Autorest", "Migrate.Autorest", "{9AA2C35A-2264-B74D-8556-EB72BD88EE60}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Migrate", "..\..\generated\Migrate\Migrate.Autorest\Az.Migrate.csproj", "{530D4524-3211-4AE3-A6BC-2A98B6FE7259}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Migrate", "..\..\generated\Migrate\Migrate.Autorest\Az.Migrate.csproj", "{B5AD4A73-4A71-429B-8A83-827092E5683B}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {1847EC8D-87A5-4772-9E75-1DEA1DC531EE}.Release|x64.Build.0 = Release|Any CPU {1847EC8D-87A5-4772-9E75-1DEA1DC531EE}.Release|x86.ActiveCfg = Release|Any CPU {1847EC8D-87A5-4772-9E75-1DEA1DC531EE}.Release|x86.Build.0 = Release|Any CPU - {530D4524-3211-4AE3-A6BC-2A98B6FE7259}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {530D4524-3211-4AE3-A6BC-2A98B6FE7259}.Debug|Any CPU.Build.0 = Debug|Any CPU - {530D4524-3211-4AE3-A6BC-2A98B6FE7259}.Debug|x64.ActiveCfg = Debug|Any CPU - {530D4524-3211-4AE3-A6BC-2A98B6FE7259}.Debug|x64.Build.0 = Debug|Any CPU - {530D4524-3211-4AE3-A6BC-2A98B6FE7259}.Debug|x86.ActiveCfg = Debug|Any CPU - {530D4524-3211-4AE3-A6BC-2A98B6FE7259}.Debug|x86.Build.0 = Debug|Any CPU - {530D4524-3211-4AE3-A6BC-2A98B6FE7259}.Release|Any CPU.ActiveCfg = Release|Any CPU - {530D4524-3211-4AE3-A6BC-2A98B6FE7259}.Release|Any CPU.Build.0 = Release|Any CPU - {530D4524-3211-4AE3-A6BC-2A98B6FE7259}.Release|x64.ActiveCfg = Release|Any CPU - {530D4524-3211-4AE3-A6BC-2A98B6FE7259}.Release|x64.Build.0 = Release|Any CPU - {530D4524-3211-4AE3-A6BC-2A98B6FE7259}.Release|x86.ActiveCfg = Release|Any CPU - {530D4524-3211-4AE3-A6BC-2A98B6FE7259}.Release|x86.Build.0 = Release|Any CPU + {B5AD4A73-4A71-429B-8A83-827092E5683B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B5AD4A73-4A71-429B-8A83-827092E5683B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B5AD4A73-4A71-429B-8A83-827092E5683B}.Debug|x64.ActiveCfg = Debug|Any CPU + {B5AD4A73-4A71-429B-8A83-827092E5683B}.Debug|x64.Build.0 = Debug|Any CPU + {B5AD4A73-4A71-429B-8A83-827092E5683B}.Debug|x86.ActiveCfg = Debug|Any CPU + {B5AD4A73-4A71-429B-8A83-827092E5683B}.Debug|x86.Build.0 = Debug|Any CPU + {B5AD4A73-4A71-429B-8A83-827092E5683B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B5AD4A73-4A71-429B-8A83-827092E5683B}.Release|Any CPU.Build.0 = Release|Any CPU + {B5AD4A73-4A71-429B-8A83-827092E5683B}.Release|x64.ActiveCfg = Release|Any CPU + {B5AD4A73-4A71-429B-8A83-827092E5683B}.Release|x64.Build.0 = Release|Any CPU + {B5AD4A73-4A71-429B-8A83-827092E5683B}.Release|x86.ActiveCfg = Release|Any CPU + {B5AD4A73-4A71-429B-8A83-827092E5683B}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {FB2B969F-E6FB-4E6E-9D2A-E52F4F53F51F} = {2D0176AD-AE30-4235-9D62-17043F0D4CD8} {D8D28132-CE20-45C8-8476-6B88C891D945} = {2D0176AD-AE30-4235-9D62-17043F0D4CD8} {B799EA2F-9E28-421A-9301-BB061C6ADDC2} = {2D0176AD-AE30-4235-9D62-17043F0D4CD8} - {530D4524-3211-4AE3-A6BC-2A98B6FE7259} = {9AA2C35A-2264-B74D-8556-EB72BD88EE60} + {B5AD4A73-4A71-429B-8A83-827092E5683B} = {9AA2C35A-2264-B74D-8556-EB72BD88EE60} EndGlobalSection EndGlobal diff --git a/src/Migrate/Migrate/Az.Migrate.psd1 b/src/Migrate/Migrate/Az.Migrate.psd1 index 0997f81bb7f0..fc6139bcabd5 100644 --- a/src/Migrate/Migrate/Az.Migrate.psd1 +++ b/src/Migrate/Migrate/Az.Migrate.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/10/2026 +# Generated on: 3/16/2026 # @{ @@ -51,16 +51,16 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.3.2'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.3.3'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Migrate.Autorest/bin/Az.Migrate.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 = 'Migrate.Autorest/Az.Migrate.format.ps1xml' @@ -123,7 +123,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','Migrate' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Migrate' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -149,7 +149,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/Migrate/Migrate/ChangeLog.md b/src/Migrate/Migrate/ChangeLog.md index 1645376bf518..c03b8ac643ec 100644 --- a/src/Migrate/Migrate/ChangeLog.md +++ b/src/Migrate/Migrate/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Preannounced breaking changes. Please refer to https://go.microsoft.com/fwlink/?linkid=2333229 * Added 'TargetSecurityType' and 'TargetVMSecureBootEnabled' parameters to 'New-AzMigrateServerReplication' to support Trusted Launch VM (TVM) security type during server replication ## Version 2.11.0 diff --git a/src/Migrate/Migrate/help/New-AzMigrateServerReplication.md b/src/Migrate/Migrate/help/New-AzMigrateServerReplication.md index 0a8172d57b4c..92b2f8332859 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/New-AzMigrateServerReplication.md @@ -21,9 +21,9 @@ New-AzMigrateServerReplication -LicenseType -TargetResourceGroupId ] [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] [-VMTag ] [-NicTag ] [-DiskTag ] [-Tag ] - [-TargetBootDiagnosticsStorageAccount ] [-DiskEncryptionSetID ] [-SubscriptionId ] - [-TargetCapacityReservationGroupId ] [-TargetSecurityType ] - [-TargetVMSecureBootEnabled ] [-DefaultProfile ] + [-TargetBootDiagnosticsStorageAccount ] [-TargetSecurityType ] + [-TargetVMSecureBootEnabled ] [-DiskEncryptionSetID ] [-SubscriptionId ] + [-TargetCapacityReservationGroupId ] [-DefaultProfile ] [] ``` @@ -36,10 +36,10 @@ New-AzMigrateServerReplication -LicenseType -TargetResourceGroupId ] [-TargetAvailabilityZone ] [-VMTag ] [-NicTag ] [-DiskTag ] [-Tag ] - [-TargetBootDiagnosticsStorageAccount ] [-SubscriptionId ] - [-TargetCapacityReservationGroupId ] [-TargetSecurityType ] - [-TargetVMSecureBootEnabled ] -DiskToInclude - [-DefaultProfile ] [] + [-TargetBootDiagnosticsStorageAccount ] [-TargetSecurityType ] + [-TargetVMSecureBootEnabled ] [-SubscriptionId ] [-TargetCapacityReservationGroupId ] + -DiskToInclude [-DefaultProfile ] + [] ``` ### ByInputObjectDefaultUser @@ -51,9 +51,9 @@ New-AzMigrateServerReplication -LicenseType -TargetResourceGroupId ] [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] [-VMTag ] [-NicTag ] [-DiskTag ] [-Tag ] - [-TargetBootDiagnosticsStorageAccount ] [-DiskEncryptionSetID ] [-SubscriptionId ] - [-TargetCapacityReservationGroupId ] [-TargetSecurityType ] - [-TargetVMSecureBootEnabled ] -InputObject [-DefaultProfile ] + [-TargetBootDiagnosticsStorageAccount ] [-TargetSecurityType ] + [-TargetVMSecureBootEnabled ] [-DiskEncryptionSetID ] [-SubscriptionId ] + [-TargetCapacityReservationGroupId ] -InputObject [-DefaultProfile ] [] ``` @@ -66,10 +66,9 @@ New-AzMigrateServerReplication -LicenseType -TargetResourceGroupId ] [-TargetAvailabilityZone ] [-VMTag ] [-NicTag ] [-DiskTag ] [-Tag ] - [-TargetBootDiagnosticsStorageAccount ] [-SubscriptionId ] - [-TargetCapacityReservationGroupId ] [-TargetSecurityType ] - [-TargetVMSecureBootEnabled ] -DiskToInclude - -InputObject [-DefaultProfile ] + [-TargetBootDiagnosticsStorageAccount ] [-TargetSecurityType ] + [-TargetVMSecureBootEnabled ] [-SubscriptionId ] [-TargetCapacityReservationGroupId ] + -DiskToInclude -InputObject [-DefaultProfile ] [] ``` @@ -465,53 +464,53 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -TargetSecurityType -Specifies the security type for the target Azure VM. Supported values are 'Standard' and 'TrustedLaunch'. +### -TargetNetworkId +Specifies the Virtual Network id within the destination Azure subscription to which the server needs to be migrated. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -TargetVMSecureBootEnabled -Specifies if secure boot needs to be enabled on the target Azure VM. Applicable only when TargetSecurityType is 'TrustedLaunch'. +### -TargetResourceGroupId +Specifies the Resource Group id within the destination Azure subscription to which the server needs to be migrated. ```yaml -Type: System.Boolean +Type: System.String Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -TargetNetworkId -Specifies the Virtual Network id within the destination Azure subscription to which the server needs to be migrated. +### -TargetSecurityType +Specifies the security type for the Azure VM. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -TargetResourceGroupId -Specifies the Resource Group id within the destination Azure subscription to which the server needs to be migrated. +### -TargetSubnetName +Specifies the Subnet name within the destination Virtual Network to which the server needs to be migrated. ```yaml Type: System.String @@ -525,8 +524,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -TargetSubnetName -Specifies the Subnet name within the destination Virtual Network to which the server needs to be migrated. +### -TargetVMName +Specifies the name of the Azure VM to be created. ```yaml Type: System.String @@ -540,15 +539,15 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -TargetVMName -Specifies the name of the Azure VM to be created. +### -TargetVMSecureBootEnabled +Specifies if secure boot needs to be enabled on target VM. ```yaml -Type: System.String +Type: System.Boolean Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False