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] Added support for undelete soft deleted container and other fixes #26872

Merged
merged 6 commits into from
Jan 27, 2025

Conversation

hiaga
Copy link
Member

@hiaga hiaga commented Dec 15, 2024

Description

Added support for undelete soft deleted container and other fixes.

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 15, 2024

️✔️Az.Accounts
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Compute
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Network
️✔️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
⚠️ Undo-AzRecoveryServicesBackupContainerDeletion 1 1 Unassigned_Variable Get-AzRecoveryServicesBackupContainer -ResourceGroupName $resourceGroupName is a null-valued parameter value. -ResourceGroupName Assign value for $resourceGroupName.
⚠️ Undo-AzRecoveryServicesBackupContainerDeletion 1 1 Unassigned_Variable Get-AzRecoveryServicesBackupContainer -VaultId $vault.ID is a null-valued parameter value. -VaultId Assign value for $vault.ID.
⚠️ Undo-AzRecoveryServicesBackupContainerDeletion 1 2 Unassigned_Variable Undo-AzRecoveryServicesBackupContainerDeletion -VaultId $vault.ID is a null-valued parameter value. -VaultId Assign value for $vault.ID.
⚠️Windows PowerShell - Windows
Type Cmdlet Example Line RuleName Description Extent Remediation
⚠️ Undo-AzRecoveryServicesBackupContainerDeletion 1 1 Unassigned_Variable Get-AzRecoveryServicesBackupContainer -ResourceGroupName $resourceGroupName is a null-valued parameter value. -ResourceGroupName Assign value for $resourceGroupName.
⚠️ Undo-AzRecoveryServicesBackupContainerDeletion 1 1 Unassigned_Variable Get-AzRecoveryServicesBackupContainer -VaultId $vault.ID is a null-valued parameter value. -VaultId Assign value for $vault.ID.
⚠️ Undo-AzRecoveryServicesBackupContainerDeletion 1 2 Unassigned_Variable Undo-AzRecoveryServicesBackupContainerDeletion -VaultId $vault.ID is a null-valued parameter value. -VaultId Assign value for $vault.ID.
️✔️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.RecoveryServices.Backup
️✔️Generated Sdk Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows

@hiaga hiaga force-pushed the hiaga/UndeleteContainer branch from f699925 to a7011b4 Compare December 26, 2024 03:17
@hiaga hiaga marked this pull request as ready for review December 26, 2024 03:34
@VeryEarly
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@@ -0,0 +1,119 @@
// ----------------------------------------------------------------------------------
Copy link
Contributor

Choose a reason for hiding this comment

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

please generate help markdown for this cmdlet

@VeryEarly
Copy link
Contributor

  • please fix failed test cases
  • please update changelog.md

@hiaga
Copy link
Member Author

hiaga commented Dec 30, 2024

  • please fix failed test cases
  • please update changelog.md

will update

@hiaga hiaga force-pushed the hiaga/UndeleteContainer branch from a7011b4 to c9c54da Compare January 6, 2025 02:42
@hiaga
Copy link
Member Author

hiaga commented Jan 6, 2025

/azp run

Copy link
Contributor

Commenter does not have sufficient privileges for PR 26872 in repo Azure/azure-powershell

@VeryEarly
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@VeryEarly VeryEarly removed this from the Az 13.1.0 (2025-01-14) milestone Jan 10, 2025
@hiaga hiaga force-pushed the hiaga/UndeleteContainer branch from c9c54da to 19c7a5e Compare January 20, 2025 08:22
@hiaga hiaga added this to the Az 13.2.0 (2025-02-11) milestone Jan 20, 2025
@hiaga hiaga force-pushed the hiaga/UndeleteContainer branch from 19c7a5e to 6ff6d73 Compare January 20, 2025 09:24
@hiaga
Copy link
Member Author

hiaga commented Jan 20, 2025

/azp run

Copy link
Contributor

Commenter does not have sufficient privileges for PR 26872 in repo Azure/azure-powershell

@YanaXu
Copy link
Contributor

YanaXu commented Jan 21, 2025

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

Copy link

This PR was labeled "needs-revision" because it has unresolved review comments or CI failures.
Please resolve all open review comments and make sure all CI checks are green. Refer to our guide to troubleshoot common CI failures.

added support for undelete container
@hiaga hiaga force-pushed the hiaga/UndeleteContainer branch from 6ff6d73 to 21ba4a3 Compare January 27, 2025 04:56
@VeryEarly
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@VeryEarly
Copy link
Contributor

"Az.RecoveryServices","Undo-AzRecoveryServicesBackupContainerDeletion","1","1","Capitalization_Conventions_Violated","5101","1","where-object doesn't follow the Capitalization Conventions.","where-object { $_.Name -match $containerName}","Check the Capitalization Conventions. Suggest format: Where-Object"

@hiaga
Copy link
Member Author

hiaga commented Jan 27, 2025

"Az.RecoveryServices","Undo-AzRecoveryServicesBackupContainerDeletion","1","1","Capitalization_Conventions_Violated","5101","1","where-object doesn't follow the Capitalization Conventions.","where-object { $_.Name -match $containerName}","Check the Capitalization Conventions. Suggest format: Where-Object"

resolved

@VeryEarly
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@VeryEarly
Copy link
Contributor

  • please fix failed test cases
  • please update changelog.md

please update changelog.md

@hiaga
Copy link
Member Author

hiaga commented Jan 27, 2025

  • please fix failed test cases
  • please update changelog.md

please update changelog.md

updated

@VeryEarly
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@VeryEarly VeryEarly merged commit cc1b6f1 into Azure:main Jan 27, 2025
12 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 27, 2025
…container and other fixes (#26872)

* modified policy limit
added support for undelete container

* Added test case

* re-recorded failed tests

* updated help

* Updated Where-Object to camel case

* Updated changeLog
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.

3 participants