The following instructions can also be found in thisvideo demonstration for Configuring Backup Retention. This article applies to situations where the default retention or number of snapshots does not meet the requirements of a customer and needs to be adjusted. Start-AzStorageBlobCopy -AbsoluteUri $sas.Applies to: Nerdio for Azure (NFA) Core, Professional and Enterprise users only. $containerSASURI = New-AzStorageContainerSASToken -Context $destinationContext -ExpiryTime(get-date).AddSeconds($sasExpiryDuration) -FullUri -Name $storageContainerName -Permission rwĪzcopy copy $sas.AccessSAS $containerSASURI Using AzCopy, send the snapshot to container1:.Using AzCopy, send the snapshot to the container1 within the storage account provisioned with this lab.
Create an Azure Storage context: $destinationContext = New-AzStorageContext -StorageAccountName $storageAccountName -StorageAccountKey $storageAccountKey.Once the VM has stopped, grant access to the disk: $sas = Grant-AzDiskAccess -ResourceGroupName $rg -DiskName $diskName -DurationInSecond $sasExpiryDuration -Access Read.Use the appropriate commands to take a snapshot of the VM.