Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

How to find out when azure snapshot is finished creating

$
0
0

I'm taking a snapshot of a disk on azure. I'm using the Node SDK. When I issue the command to take a snapshot, within a few seconds I get the response back. I'll paste the output below.

The thing is, the provisioning state always shows Succeeded even though the snapshot is obviously not finished being created yet. And it does not yet show in the dashboard.

If I use the snapshot.list method, it also says Succeeded for this snapshot.

How can I query to find out when the snapshot is actually finished being created?

<pre>
{ id:
     '/subscriptions/1a6c4c11-6729-48fb-8e76-06c6281bb6f1/resourceGroups/RGOUP1/providers/Microsoft.Compute/snapshots/snapCostTest',
    name: 'snapCostTest',
    type: 'Microsoft.Compute/snapshots',
    location: 'westus',
    sku: { name: 'Standard_LRS', tier: 'Standard' },
    timeCreated: 2019-08-16T00:51:04.099Z,
    osType: 'Windows',
    hyperVGeneration: 'V1',
    creationData:
     { createOption: 'Copy',
       sourceResourceId:
        '/subscriptions/1a6c4c11-6729-48fb-8e76-06c6281bb6f1/resourceGroups/RGOUP1/providers/Microsoft.Compute/disks/vm1_OsDisk_1_502b5534fe4b4f288d19e127c457d652' },
    diskSizeGB: 127,
    provisioningState: 'Succeeded' } </pre>

I would have thought the provisioningState would show something like Creating while the snapshot is being created.



Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>