Skip to content

Conversation

haagha
Copy link
Member

@haagha haagha commented Sep 10, 2025

  • Added new Parameter InstantAccessDurationMinutes to New-AzSnapshotConfig.

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

- 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.
@Copilot Copilot AI review requested due to automatic review settings September 10, 2025 20:28
Copy link

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

Copy link
Contributor

@Copilot Copilot AI left a 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 to New-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

@VeryEarly VeryEarly self-assigned this Sep 11, 2025
Haider Agha added 2 commits September 11, 2025 13:35
Added entries for various PowerShell cmdlet issues in the Azure Compute module.
@VeryEarly
Copy link
Collaborator

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

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.

2 participants