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.RecoveryServices.Backup] Fixed bugs, added documentation and examples #22159

Merged
merged 5 commits into from
Jun 27, 2023

Conversation

hiaga
Copy link
Member

@hiaga hiaga commented Jun 26, 2023

Fixed bug with rp expiry time, making 30 days expiry time for adhoc backup as default from client side. Added example to fetch pruned recovery points after modify policy. Fixed the documentation for suspend backups with immutability.

Description

Regenerated CRR SDK. Fixed issues with SQL CRR.
Fixed bug with rp expiry time, making 30 days expiry time for adhoc backup as default from client side.
Added example to fetch pruned recovery points after modify policy.
Fixed the documentation for suspend backups with immutability.
Regenerated CRR SDK. Fixed issues with SQL CRR.

Checklist

  • SHOULD select appropriate branch. Cmdlets from Autorest.PowerShell should go to generation branch.
  • SHOULD make the title of PR clear and informative, and in the present imperative tense.
  • SHOULD update ChangeLog.md file(s) appropriately
    • For any service, the ChangeLog.md file can be found at 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. Add changelog in description section if PR goes into generation branch.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD have approved design review for the changes in this repository (Microsoft internal only) with following situations
    • Create new module from scratch
    • Create new resource types which are not easy to conform to Azure PowerShell Design Guidelines
    • Create new resource type which name doesn't use module name as prefix
    • Have design question before implementation
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT introduce breaking changes in Az minor release except preview version.
  • SHOULD NOT adjust version of module manually in pull request

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Jun 26, 2023

️✔️Az.Accounts
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Compute
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.KeyVault
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.ManagedServiceIdentity
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Monitor
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Network
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.OperationalInsights
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.PrivateDns
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
⚠️Az.RecoveryServices
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Breaking Change Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Signature Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
⚠️Help Example Check
⚠️PowerShell Core - Windows
Type Cmdlet Example Line RuleName Description Extent Remediation
⚠️ 3 1 Unassigned_Variable Get-AzRecoveryServicesBackupItem -VaultId $suspendVault.ID is a null-valued parameter value. -VaultId Assign value for $suspendVault.ID.
⚠️ 3 2 Unassigned_Variable Disable-AzRecoveryServicesBackupProtection -VaultId $vault.ID is a null-valued parameter value. -VaultId Assign value for $vault.ID.
⚠️ 3 3 Unassigned_Variable Get-AzRecoveryServicesBackupItem -VaultId $suspendVault.ID is a null-valued parameter value. -VaultId Assign value for $suspendVault.ID.
⚠️ 4 12 Mismatched_Parameter_Value_Type Set-AzRecoveryServicesBackupProtectionPolicy -RetentionPolicy $pol.RetentionPolicy is not an expected parameter value type. -RetentionPolicy Use correct parameter value type. Expected Type is Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RetentionPolicyBase. Now the type is .(Command).
⚠️ 4 18 Mismatched_Parameter_Value_Type Compare-Object -[-ReferenceObject] $rpsBefore is not an expected parameter value type. $rpsBefore Use correct parameter value type. Expected Type is psobject. Now the type is Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase.(Command).
⚠️ 4 18 Mismatched_Parameter_Value_Type Compare-Object -[-DifferenceObject] $rpsAfter is not an expected parameter value type. $rpsAfter Use correct parameter value type. Expected Type is psobject. Now the type is Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase.(Command).
⚠️ 1 1 Unassigned_Variable Get-AzRecoveryServicesBackupRecoveryPoint -Item $SQLBkpItem is a null-valued parameter value. -Item Assign value for $SQLBkpItem.
⚠️ 1 1 Unassigned_Variable Get-AzRecoveryServicesBackupRecoveryPoint -[-StartDate] $startdate is a null-valued parameter value. $startdate Assign value for $startdate.
⚠️ 1 1 Unassigned_Variable Get-AzRecoveryServicesBackupRecoveryPoint -[-EndDate] $enddate is a null-valued parameter value. $enddate Assign value for $enddate.
⚠️ 1 2 Unassigned_Variable Get-AzRecoveryServicesBackupRecoveryPoint -Item $SQLBkpItem is a null-valued parameter value. -Item Assign value for $SQLBkpItem.
⚠️ 1 2 Unassigned_Variable Get-AzRecoveryServicesBackupRecoveryPoint -[-StartDate] $startdate is a null-valued parameter value. $startdate Assign value for $startdate.
⚠️ 1 2 Unassigned_Variable Get-AzRecoveryServicesBackupRecoveryPoint -[-EndDate] $enddate is a null-valued parameter value. $enddate Assign value for $enddate.
⚠️ 1 2 Unassigned_Variable Get-AzRecoveryServicesBackupWorkloadRecoveryConfig -TargetItem $SQLProtItem is a null-valued parameter value. -TargetItem Assign value for $SQLProtItem.
⚠️ 1 2 Unassigned_Variable Get-AzRecoveryServicesBackupWorkloadRecoveryConfig -TargetContainer $targetVMContainer is a null-valued parameter value. -TargetContainer Assign value for $targetVMContainer.
⚠️Windows PowerShell - Windows
Type Cmdlet Example Line RuleName Description Extent Remediation
⚠️ 3 1 Unassigned_Variable Get-AzRecoveryServicesBackupItem -VaultId $suspendVault.ID is a null-valued parameter value. -VaultId Assign value for $suspendVault.ID.
⚠️ 3 2 Unassigned_Variable Disable-AzRecoveryServicesBackupProtection -VaultId $vault.ID is a null-valued parameter value. -VaultId Assign value for $vault.ID.
⚠️ 3 3 Unassigned_Variable Get-AzRecoveryServicesBackupItem -VaultId $suspendVault.ID is a null-valued parameter value. -VaultId Assign value for $suspendVault.ID.
⚠️ 4 12 Mismatched_Parameter_Value_Type Set-AzRecoveryServicesBackupProtectionPolicy -RetentionPolicy $pol.RetentionPolicy is not an expected parameter value type. -RetentionPolicy Use correct parameter value type. Expected Type is Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RetentionPolicyBase. Now the type is .(Command).
⚠️ 4 18 Mismatched_Parameter_Value_Type Compare-Object -[-ReferenceObject] $rpsBefore is not an expected parameter value type. $rpsBefore Use correct parameter value type. Expected Type is psobject. Now the type is Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase.(Command).
⚠️ 4 18 Mismatched_Parameter_Value_Type Compare-Object -[-DifferenceObject] $rpsAfter is not an expected parameter value type. $rpsAfter Use correct parameter value type. Expected Type is psobject. Now the type is Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase.(Command).
⚠️ 1 1 Unassigned_Variable Get-AzRecoveryServicesBackupRecoveryPoint -Item $SQLBkpItem is a null-valued parameter value. -Item Assign value for $SQLBkpItem.
⚠️ 1 1 Unassigned_Variable Get-AzRecoveryServicesBackupRecoveryPoint -[-StartDate] $startdate is a null-valued parameter value. $startdate Assign value for $startdate.
⚠️ 1 1 Unassigned_Variable Get-AzRecoveryServicesBackupRecoveryPoint -[-EndDate] $enddate is a null-valued parameter value. $enddate Assign value for $enddate.
⚠️ 1 2 Unassigned_Variable Get-AzRecoveryServicesBackupRecoveryPoint -Item $SQLBkpItem is a null-valued parameter value. -Item Assign value for $SQLBkpItem.
⚠️ 1 2 Unassigned_Variable Get-AzRecoveryServicesBackupRecoveryPoint -[-StartDate] $startdate is a null-valued parameter value. $startdate Assign value for $startdate.
⚠️ 1 2 Unassigned_Variable Get-AzRecoveryServicesBackupRecoveryPoint -[-EndDate] $enddate is a null-valued parameter value. $enddate Assign value for $enddate.
⚠️ 1 2 Unassigned_Variable Get-AzRecoveryServicesBackupWorkloadRecoveryConfig -TargetItem $SQLProtItem is a null-valued parameter value. -TargetItem Assign value for $SQLProtItem.
⚠️ 1 2 Unassigned_Variable Get-AzRecoveryServicesBackupWorkloadRecoveryConfig -TargetContainer $targetVMContainer is a null-valued parameter value. -TargetContainer Assign value for $targetVMContainer.
️✔️Help File Existence Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️File Change Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️UX Metadata Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️PowerShell Core - Linux
️✔️PowerShell Core - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Sql
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Storage
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows

@vidai-msft
Copy link
Contributor

@hiaga can you please also add test cases to verify the code change?

Fixed bug with rp expiry time, making 30 days expiry time for adhoc backup as default from client side.
Added example to fetch pruned recovery points after modify policy.
Fixed the documentation for suspend backups with immutability.
Updated changelog
@vidai-msft
Copy link
Contributor

/azp run azure-powershell - security-tools

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@vidai-msft vidai-msft merged commit 3be2043 into Azure:main Jun 27, 2023
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