Skip to content

Conversation

@dolauli
Copy link
Contributor

@dolauli dolauli commented Nov 17, 2025

Description

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Copilot AI review requested due to automatic review settings November 17, 2025 12:53
@azure-client-tools-bot-prd
Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

VeryEarly
VeryEarly previously approved these changes Nov 17, 2025
@VeryEarly VeryEarly enabled auto-merge (squash) November 17, 2025 12:56
Copilot finished reviewing on behalf of dolauli November 17, 2025 12:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a comprehensive migration guide for Az 15.0.0, documenting breaking changes across multiple Azure PowerShell modules. The guide helps users migrate their scripts and code from previous versions to Az 15.0.0.

Key changes:

  • Documents deprecated and removed cmdlets and parameters across Az.Batch, Az.DevCenter, Az.FrontDoor, Az.Oracle, and Az.ServiceFabric modules
  • Provides before/after migration examples for affected cmdlets
  • Lists modules migrated from AutoRest v3 to v4 with potential breaking changes

Comment on lines +62 to +63
$certificate = -Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSCertificate"
$certificatesRef = -Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSCertificateReferenceNew" -ArgumentList @($certificate)
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing 'New-Object' cmdlet name. The lines should be $certificate = New-Object -TypeName ... and $certificatesRef = New-Object -TypeName ...

Suggested change
$certificate = -Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSCertificate"
$certificatesRef = -Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSCertificateReferenceNew" -ArgumentList @($certificate)
$certificate = New-Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSCertificate"
$certificatesRef = New-Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSCertificateReferenceNew" -ArgumentList @($certificate)

Copilot uses AI. Check for mistakes.
Comment on lines +62 to +63
$certificate = -Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSCertificate"
$certificatesRef = -Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSCertificateReferenceNew" -ArgumentList @($certificate)
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing 'New-Object' cmdlet name. The lines should be $certificate = New-Object -TypeName ... and $certificatesRef = New-Object -TypeName ...

Suggested change
$certificate = -Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSCertificate"
$certificatesRef = -Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSCertificateReferenceNew" -ArgumentList @($certificate)
$certificate = New-Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSCertificate"
$certificatesRef = New-Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSCertificateReferenceNew" -ArgumentList @($certificate)

Copilot uses AI. Check for mistakes.
Comment on lines +187 to +195
var1 = $computeNode.Id
var2 = $computeNode.CertificateReferences
```

#### After
```powershell
$computeNode = Get-AzBatchComputeNode -PoolId "Pool06" -Id "tvm-2316545714_1-20150725t213220z" -BatchContext $Context

var1 = $computeNode.Id
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing '$' prefix for variable assignment. Should be $var1 = ... and $var2 = ... to be valid PowerShell syntax.

Suggested change
var1 = $computeNode.Id
var2 = $computeNode.CertificateReferences
```
#### After
```powershell
$computeNode = Get-AzBatchComputeNode -PoolId "Pool06" -Id "tvm-2316545714_1-20150725t213220z" -BatchContext $Context
var1 = $computeNode.Id
$var1 = $computeNode.Id
$var2 = $computeNode.CertificateReferences

After

$computeNode = Get-AzBatchComputeNode -PoolId "Pool06" -Id "tvm-2316545714_1-20150725t213220z" -BatchContext $Context

$var1 = $computeNode.Id

Copilot uses AI. Check for mistakes.
Comment on lines +187 to +195
var1 = $computeNode.Id
var2 = $computeNode.CertificateReferences
```

#### After
```powershell
$computeNode = Get-AzBatchComputeNode -PoolId "Pool06" -Id "tvm-2316545714_1-20150725t213220z" -BatchContext $Context

var1 = $computeNode.Id
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing '$' prefix for variable assignment. Should be $var1 = ... to be valid PowerShell syntax.

Suggested change
var1 = $computeNode.Id
var2 = $computeNode.CertificateReferences
```
#### After
```powershell
$computeNode = Get-AzBatchComputeNode -PoolId "Pool06" -Id "tvm-2316545714_1-20150725t213220z" -BatchContext $Context
var1 = $computeNode.Id
$var1 = $computeNode.Id
$var2 = $computeNode.CertificateReferences

After

$computeNode = Get-AzBatchComputeNode -PoolId "Pool06" -Id "tvm-2316545714_1-20150725t213220z" -BatchContext $Context

$var1 = $computeNode.Id

Copilot uses AI. Check for mistakes.
### `New-AzOracleAutonomousDatabase` and `Update-AzOracleAutonomousDatabase`


Cmdlets exposed a parameter named -ScheduledOperations, however he functionality was not implemented.
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected spelling of 'he' to 'the'.

Suggested change
Cmdlets exposed a parameter named -ScheduledOperations, however he functionality was not implemented.
Cmdlets exposed a parameter named -ScheduledOperations, however the functionality was not implemented.

Copilot uses AI. Check for mistakes.
Comment on lines +5 to +9
### `New-AzBatchCertificate`

Azure Batch account certificates feature has been retired and all certificate related commands have been removed from Batch. See https://learn.microsoft.com/en-us/azure/batch/batch-certificate-migration-guide

#### Before
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'After' section is empty for this deprecated cmdlet. Consider adding guidance explaining that there is no direct replacement and pointing users to the Azure Batch certificate migration guide, or explicitly stating 'No replacement available - see migration guide link above for alternatives.'

Copilot uses AI. Check for mistakes.
Comment on lines +16 to +20
### `Remove-AzBatchCertificate`

Azure Batch account certificates feature has been retired and all certificate related commands have been removed from Batch. See https://learn.microsoft.com/en-us/azure/batch/batch-certificate-migration-guide

#### Before
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'After' section is empty. Consider adding guidance explaining that there is no direct replacement and pointing users to the migration guide, or explicitly stating 'No replacement available - see migration guide link above for alternatives.'

Copilot uses AI. Check for mistakes.
Comment on lines +27 to +31
### `Stop-AzBatchCertificateDeletion`

Azure Batch account certificates feature has been retired and all certificate related commands have been removed from Batch. See https://learn.microsoft.com/en-us/azure/batch/batch-certificate-migration-guide

#### Before
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'After' section is empty. Consider adding guidance explaining that there is no direct replacement and pointing users to the migration guide, or explicitly stating 'No replacement available - see migration guide link above for alternatives.'

Copilot uses AI. Check for mistakes.
Comment on lines +39 to +43
### `Get-AzBatchCertificate`

Azure Batch account certificates feature has been retired and all certificate related commands have been removed from Batch. See https://learn.microsoft.com/en-us/azure/batch/batch-certificate-migration-guide

#### Before
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'After' section is empty. Consider adding guidance explaining that there is no direct replacement and pointing users to the migration guide, or explicitly stating 'No replacement available - see migration guide link above for alternatives.'

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Corrected the code block language from 'powerhshell' to 'powershell' in migration guide.
@VeryEarly VeryEarly merged commit af6e6b8 into Azure:main Nov 17, 2025
12 checks passed
@dolauli dolauli deleted the migration-guide branch November 17, 2025 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants