Skip to content

Conversation

@IannGeorges
Copy link
Member

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 19, 2025 20:13
@azure-client-tools-bot-prd
Copy link

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

@IannGeorges IannGeorges requested review from YanaXu and hiaga and removed request for Copilot November 19, 2025 20:13
@IannGeorges IannGeorges added this to the Az 15.1.0 (12/02/2025) milestone Nov 19, 2025
Copilot finished reviewing on behalf of IannGeorges November 19, 2025 20:17
@notyashhh
Copy link
Member

/azp run

@notyashhh notyashhh self-assigned this Nov 20, 2025
@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

``` yaml
# it's the same options as command line options, just drop the double-dash!
commit: ebdacd9571bc8a5faad5b8d418c70c3b6b7c2965
require:
Copy link
Member

Choose a reason for hiding this comment

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

did we also need to update to the latest commit here. it's good to refresh to latest


$PSBoundParameters.Add("EncryptionSetting", $encryptionSettings)

Write-Host "Entering Az.DataProtection.Internal\New-AzDataProtectionBackupVault line 175"
Copy link
Member

Choose a reason for hiding this comment

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

remove/ modify this line, assuming this was only needed for debugging

}
else
{
Write-Host "[Ianna] - we have added the identity type"
Copy link
Member

Choose a reason for hiding this comment

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

Update/remove

$hasCmkInfrastructureEncryption = $PSBoundParameters.Remove("CmkInfrastructureEncryption")

if (-not $hasCmkEncryptionState -and -not $hasCmkIdentityType -and -not $hasCmkUserAssignedIdentityId -and -not $hasCmkEncryptionKeyUri) {
Write-Host "Entering Az.DataProtection.Internal\New-AzDataProtectionBackupVault line 160"
Copy link
Member

Choose a reason for hiding this comment

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

same - update/remove this

{
if($PSBoundParameters.ContainsKey("IdentityType") -eq $false)
$identityTypeValue = "SystemAssigned"
if ($PSBoundParameters.ContainsKey("IdentityType"))
Copy link
Member

Choose a reason for hiding this comment

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

do we need custom logic here? can we directly set the appropriate parameters to the generated command. try update the generated command to previous parameters so that will minimize the code changes here and easy to leverage

[-EncryptionSetting <IEncryptionSettings>] [-Identity <IDppIdentityDetails>]
[-ImmutabilityState <ImmutabilityState>] [-NoWait] [-ResourceGuardOperationRequest <String[]>]
[-SoftDeleteRetentionDurationInDay <Double>] [-SoftDeleteState <SoftDeleteState>] [-Tag <Hashtable>]
[-Confirm] [-WhatIf] [<CommonParameters>]
Copy link
Member

Choose a reason for hiding this comment

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

this looks like a breaking change in identity parameters. please revert/ fix

```yaml
Type: System.String
Parameter Sets: (All)
Parameter Sets: UpdateExpanded
Copy link
Member

Choose a reason for hiding this comment

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

is this expected to change?

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.

3 participants