Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Az.DataProtection] Added support for UAMI in Backup Instance #26868

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

hiaga
Copy link
Member

@hiaga hiaga commented Dec 13, 2024

Description

Added support for UAMI in Backup Instance

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • For SDK-based development mode, 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.
    • For autorest-based development mode, include the changelog in the PR description.
    • 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

Copy link

azure-client-tools-bot-prd bot commented Dec 13, 2024

️✔️Az.Accounts
️✔️Build
️✔️PowerShell Core - Windows
⚠️Az.DataProtection
️✔️Build
️✔️PowerShell Core - Windows
️✔️Breaking Change Check
️✔️PowerShell Core - Windows
⚠️Signature Check
⚠️PowerShell Core - Windows
Type Cmdlet Description Remediation
⚠️ Edit-AzDataProtectionPolicyRetentionRuleClientObject Edit-AzDataProtectionPolicyRetentionRuleClientObject Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Edit-AzDataProtectionPolicyRetentionRuleClientObject Edit-AzDataProtectionPolicyRetentionRuleClientObject changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Edit-AzDataProtectionPolicyTagClientObject Edit-AzDataProtectionPolicyTagClientObject Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Edit-AzDataProtectionPolicyTagClientObject Edit-AzDataProtectionPolicyTagClientObject changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Edit-AzDataProtectionPolicyTriggerClientObject Edit-AzDataProtectionPolicyTriggerClientObject Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Edit-AzDataProtectionPolicyTriggerClientObject Edit-AzDataProtectionPolicyTriggerClientObject changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzDataProtectionBackupInstance Get-AzDataProtectionBackupInstance Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzDataProtectionBackupInstance Get-AzDataProtectionBackupInstance changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzDataProtectionBackupInstancesExtensionRouting Get-AzDataProtectionBackupInstancesExtensionRouting Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzDataProtectionBackupInstancesExtensionRouting Get-AzDataProtectionBackupInstancesExtensionRouting changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzDataProtectionBackupPolicy Get-AzDataProtectionBackupPolicy Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzDataProtectionBackupPolicy Get-AzDataProtectionBackupPolicy changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzDataProtectionBackupVault Get-AzDataProtectionBackupVault Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzDataProtectionBackupVault Get-AzDataProtectionBackupVault changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzDataProtectionJob Get-AzDataProtectionJob Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzDataProtectionJob Get-AzDataProtectionJob changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzDataProtectionOperation Get-AzDataProtectionOperation Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzDataProtectionOperation Get-AzDataProtectionOperation changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzDataProtectionOperationStatus Get-AzDataProtectionOperationStatus Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzDataProtectionOperationStatus Get-AzDataProtectionOperationStatus changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzDataProtectionPolicyTemplate Get-AzDataProtectionPolicyTemplate Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzDataProtectionPolicyTemplate Get-AzDataProtectionPolicyTemplate changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzDataProtectionRecoveryPoint Get-AzDataProtectionRecoveryPoint Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzDataProtectionRecoveryPoint Get-AzDataProtectionRecoveryPoint changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzDataProtectionResourceGuard Get-AzDataProtectionResourceGuard Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzDataProtectionResourceGuard Get-AzDataProtectionResourceGuard changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzDataProtectionResourceGuardMapping Get-AzDataProtectionResourceGuardMapping Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzDataProtectionResourceGuardMapping Get-AzDataProtectionResourceGuardMapping changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzDataProtectionSoftDeletedBackupInstance Get-AzDataProtectionSoftDeletedBackupInstance Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzDataProtectionSoftDeletedBackupInstance Get-AzDataProtectionSoftDeletedBackupInstance changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Initialize-AzDataProtectionBackupInstance Initialize-AzDataProtectionBackupInstance Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Initialize-AzDataProtectionBackupInstance Initialize-AzDataProtectionBackupInstance changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Initialize-AzDataProtectionRestoreRequest Initialize-AzDataProtectionRestoreRequest Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Initialize-AzDataProtectionRestoreRequest Initialize-AzDataProtectionRestoreRequest changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ New-AzDataProtectionBackupConfigurationClientObject New-AzDataProtectionBackupConfigurationClientObject changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ New-AzDataProtectionBackupVaultStorageSettingObject New-AzDataProtectionBackupVaultStorageSettingObject changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ New-AzDataProtectionPolicyTagCriteriaClientObject New-AzDataProtectionPolicyTagCriteriaClientObject changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ New-AzDataProtectionPolicyTriggerScheduleClientObject New-AzDataProtectionPolicyTriggerScheduleClientObject changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ New-AzDataProtectionRestoreConfigurationClientObject New-AzDataProtectionRestoreConfigurationClientObject changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ New-AzDataProtectionRetentionLifeCycleClientObject New-AzDataProtectionRetentionLifeCycleClientObject changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Search-AzDataProtectionBackupInstanceInAzGraph Search-AzDataProtectionBackupInstanceInAzGraph Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Search-AzDataProtectionBackupInstanceInAzGraph Search-AzDataProtectionBackupInstanceInAzGraph changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Search-AzDataProtectionBackupVaultInAzGraph Search-AzDataProtectionBackupVaultInAzGraph Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Search-AzDataProtectionBackupVaultInAzGraph Search-AzDataProtectionBackupVaultInAzGraph changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Search-AzDataProtectionJobInAzGraph Search-AzDataProtectionJobInAzGraph Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Search-AzDataProtectionJobInAzGraph Search-AzDataProtectionJobInAzGraph changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️Help Example Check
⚠️PowerShell Core - Windows
Type Cmdlet Example Line RuleName Description Extent Remediation
⚠️ New-AzDataProtectionBackupVault 1 3 Mismatched_Parameter_Value_Type New-AzDataProtectionBackupVault -StorageSetting $storagesetting is not an expected parameter value type. -StorageSetting Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IStorageSetting. Now the type is psobject.(Command).
⚠️ New-AzDataProtectionBackupVault 2 3 Mismatched_Parameter_Value_Type New-AzDataProtectionBackupVault -StorageSetting $storagesetting is not an expected parameter value type. -StorageSetting Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IStorageSetting. Now the type is psobject.(Command).
⚠️ New-AzDataProtectionBackupVault 3 17 Mismatched_Parameter_Value_Type New-AzDataProtectionBackupVault -StorageSetting $storagesetting is not an expected parameter value type. -StorageSetting Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IStorageSetting. Now the type is psobject.(Command).
⚠️ Set-AzDataProtectionMSIPermission 1 1 Unassigned_Variable Set-AzDataProtectionMSIPermission -BackupInstance $instance is a null-valued parameter value. -BackupInstance Assign value for $instance.
⚠️ Set-AzDataProtectionMSIPermission 2 1 Unassigned_Variable Set-AzDataProtectionMSIPermission -BackupInstance $instance is a null-valued parameter value. -BackupInstance Assign value for $instance.
⚠️ Set-AzDataProtectionMSIPermission 3 1 Unassigned_Variable Set-AzDataProtectionMSIPermission -BackupInstance $instance is a null-valued parameter value. -BackupInstance Assign value for $instance.
⚠️ Set-AzDataProtectionMSIPermission 4 1 Unassigned_Variable Set-AzDataProtectionMSIPermission -BackupInstance $backupInstance is a null-valued parameter value. -BackupInstance Assign value for $backupInstance.
⚠️ Update-AzDataProtectionBackupInstance 1 1 Unassigned_Variable Search-AzDataProtectionBackupInstanceInAzGraph -Subscription $subscriptionId is a null-valued parameter value. -Subscription Assign value for $subscriptionId.
⚠️ Update-AzDataProtectionBackupInstance 1 1 Unassigned_Variable Search-AzDataProtectionBackupInstanceInAzGraph -ResourceGroup $resourceGroupName is a null-valued parameter value. -ResourceGroup Assign value for $resourceGroupName.
⚠️ Update-AzDataProtectionBackupInstance 1 1 Unassigned_Variable Search-AzDataProtectionBackupInstanceInAzGraph -Vault $vaultName is a null-valued parameter value. -Vault Assign value for $vaultName.
⚠️ Update-AzDataProtectionBackupInstance 1 2 Unassigned_Variable Get-AzDataProtectionBackupPolicy -SubscriptionId $subscriptionId is a null-valued parameter value. -SubscriptionId Assign value for $subscriptionId.
⚠️ Update-AzDataProtectionBackupInstance 1 2 Unassigned_Variable Get-AzDataProtectionBackupPolicy -VaultName $vaultName is a null-valued parameter value. -VaultName Assign value for $vaultName.
⚠️ Update-AzDataProtectionBackupInstance 1 2 Unassigned_Variable Get-AzDataProtectionBackupPolicy -ResourceGroupName $resourceGroupName is a null-valued parameter value. -ResourceGroupName Assign value for $resourceGroupName.
⚠️ Update-AzDataProtectionBackupInstance 1 4 Unassigned_Variable Update-AzDataProtectionBackupInstance -ResourceGroupName $resourceGroupName is a null-valued parameter value. -ResourceGroupName Assign value for $resourceGroupName.
⚠️ Update-AzDataProtectionBackupInstance 1 4 Unassigned_Variable Update-AzDataProtectionBackupInstance -VaultName $vaultName is a null-valued parameter value. -VaultName Assign value for $vaultName.
⚠️ Update-AzDataProtectionBackupInstance 1 4 Mismatched_Parameter_Value_Type Update-AzDataProtectionBackupInstance -BackupInstanceName $instance.Name is not an expected parameter value type. -BackupInstanceName Use correct parameter value type. Expected Type is string. Now the type is .(Command).
⚠️ Update-AzDataProtectionBackupInstance 1 4 Unassigned_Variable Update-AzDataProtectionBackupInstance -SubscriptionId $subscriptionId is a null-valued parameter value. -SubscriptionId Assign value for $subscriptionId.
⚠️ Update-AzDataProtectionBackupInstance 1 4 Mismatched_Parameter_Value_Type Update-AzDataProtectionBackupInstance -VaultedBackupContainer $backedUpContainers[0,2,4] is not an expected parameter value type. -VaultedBackupContainer Use correct parameter value type. Expected Type is string. Now the type is .(Command).
️✔️Help File Existence Check
️✔️PowerShell Core - Windows
⚠️File Change Check
⚠️PowerShell Core - Windows
Type Cmdlet Description Remediation
⚠️ AssemblyInfo.cs will be updated automatically. Please do not update it manually. Revert AssemblyInfo.cs to its last version.
⚠️ It is required to update ChangeLog.md if you want to release a new version for Az.DataProtection. Add a changelog record under Upcoming Release section with past tense.
️✔️UX Metadata Check
️✔️PowerShell Core - Windows
️✔️Test
️✔️PowerShell Core - Linux
️✔️PowerShell Core - MacOS
️✔️PowerShell Core - Windows

@hiaga hiaga changed the base branch from main to generation December 13, 2024 03:09
@VeryEarly
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Contributor

@VeryEarly VeryEarly left a comment

Choose a reason for hiding this comment

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

these identities are commonly named as UserAssignedIdentity/SystemAssignedIdentity, any reason for naming them differently here?

@hiaga
Copy link
Member Author

hiaga commented Dec 17, 2024

these identities are commonly named as UserAssignedIdentity/SystemAssignedIdentity, any reason for naming them differently here?

we have named UserAssignedIdentity in Update-AzDataProtectionbackupVault command which is a hashtable. so I named it UserAssignedidentityARMId in other commands to indicate the ARM ID. no other specific reason as such

@VeryEarly VeryEarly merged commit 820470c into Azure:generation Dec 17, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants