-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[Compute] Add instant access snapshot functionality and tests #28547
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
base: main
Are you sure you want to change the base?
Conversation
- Introduced `TestDiskSnapshotInstantAccess` method in `DiskRPTests.cs` to run a test script for disk snapshot instant access. - Added `Test-DiskSnapshotInstantAccess` function in `DiskRPTests.ps1` for setting up a resource group and creating snapshots with instant access. - Added `SnapshotAccessState` property in `PSSnapshot.cs` to indicate snapshot access availability. - Updated `NewAzureRmSnapshotConfigCommand.cs` to include `InstantAccessDurationMinutes` parameter for snapshot retention duration. - Modified snapshot configuration logic to handle the new `InstantAccessDurationMinutes` parameter. - Updated documentation for `New-AzSnapshotConfig` cmdlet to include details about the new parameter.
Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
There was a problem hiding this 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 adds instant access snapshot functionality to the Azure PowerShell Compute module, enabling faster restore operations for snapshots created from Premium SSD v2 or Ultra disks. The change introduces a new parameter to control the duration of instant access retention.
- Adds
InstantAccessDurationMinutes
parameter toNew-AzSnapshotConfig
cmdlet - Updates documentation and help files to describe the new parameter functionality
- Includes test coverage for the instant access snapshot feature
Reviewed Changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 5 comments.
File | Description |
---|---|
src/Compute/Compute/help/New-AzSnapshotConfig.md | Documents the new InstantAccessDurationMinutes parameter in the cmdlet help |
src/Compute/Compute/ChangeLog.md | Records the addition of the new parameter in the changelog |
src/Compute/Compute.Test/ScenarioTests/DiskRPTests.ps1 | Adds test function to validate instant access snapshot functionality |
src/Compute/Compute.Test/ScenarioTests/DiskRPTests.cs | Registers the new test function in the test runner |
Added entries for various PowerShell cmdlet issues in the Azure Compute module.
…ure-powershell into haagha/instantsnapshots
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Co-authored-by: Yabo Hu <yabhu@microsoft.com>
…ure-powershell into haagha/instantsnapshots
Azure Pipelines successfully started running 3 pipeline(s). |
InstantAccessDurationMinutes
to New-AzSnapshotConfig.Description
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.md
and reviewed the following information:ChangeLog.md
file(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
.## Upcoming Release
header in the past tense.ChangeLog.md
if no new release is required, such as fixing test case only.