How do we know Azure Snapshot is OrphanSnapshot/unusedSnapshot using powershell..Please sugegst if any process.

2022-08-12T08:31:05.08+00:00

Hi ,

Please suggest if any way to identify Azure Snapshot is OrphanSnapshot/unusedSnapshot using powershell.

thanks
satya

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,126 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
650 questions
{count} votes

Accepted answer
  1. srbhatta-MSFT 8,561 Reputation points Microsoft Employee
    2022-08-16T07:20:31.173+00:00

    Hello @Venkata satyanarayana Machari veera (CIS) ,
    Welcome to Microsoft QnA.
    You can use the below common Powershell cmdlet to identify all the snapshots in your subscription which are older than 30 days.

    Get-AzSnapshot |   
    >>   Where-Object {$_.TimeCreated -lt (Get-Date).AddDays(-30)} |   
    >>   Select-Object name, TimeCreated, ResourceGroupName  
    

    Hope this helps. Please feel free to reach back if you have any questions. Thanks :)

    ----------

    If you find the above information helpful, kindly accept as answer or upvote to increase the relevancy of this post.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.