C# 클래스 Microsoft.Azure.Commands.Compute.Extension.AzureVMBackup.AzureVMBackupExtensionUtil

Used to create/remove snapshots of the disk page blobs of the specified virtual machines.
파일 보기 프로젝트 열기: Azure/azure-powershell 1 사용 예제들

공개 메소드들

메소드 설명
CreateSnapshotForDisks ( AzureVMBackupConfig vmConfig, string snapshotTag, VirtualMachineExtensionBaseCmdlet virtualMachineExtensionBaseCmdlet ) : void

we only support the Linux box now, if it's a windows, one AzureVMBackupException would be thrown.

FindSnapshot ( AzureContext azContext, List blobUris, List storageCredentialsFactory, string>.Dictionary snapshotQuery ) : List

find the snapshot with the tags

GenerateBlobSasUris ( List blobUris, AzureContext azContext ) : AzureVMBackupBlobSasUris
RemoveSnapshot ( AzureVMBackupConfig vmConfig, string snapshotTag, VirtualMachineExtensionBaseCmdlet virtualMachineExtensionBaseCmdlet ) : void

remove the vmbackups with the metadata key "vmbackuptag" and value snapshotTag, snapshotTag is the parameter passed in.

비공개 메소드들

메소드 설명
GetBase64Encoding ( object obj ) : string
GetDiskBlobUris ( Microsoft.Azure.Management.Compute.Models.VirtualMachine virtualMachineResponse ) : List
GetResourceGroupFromId ( string id ) : string

메소드 상세

CreateSnapshotForDisks() 공개 메소드

we only support the Linux box now, if it's a windows, one AzureVMBackupException would be thrown.
public CreateSnapshotForDisks ( AzureVMBackupConfig vmConfig, string snapshotTag, VirtualMachineExtensionBaseCmdlet virtualMachineExtensionBaseCmdlet ) : void
vmConfig AzureVMBackupConfig
snapshotTag string
virtualMachineExtensionBaseCmdlet VirtualMachineExtensionBaseCmdlet
리턴 void

FindSnapshot() 공개 메소드

find the snapshot with the tags
public FindSnapshot ( AzureContext azContext, List blobUris, List storageCredentialsFactory, string>.Dictionary snapshotQuery ) : List
azContext Microsoft.Azure.Commands.Common.Authentication.Models.AzureContext
blobUris List
storageCredentialsFactory List
snapshotQuery string>.Dictionary
리턴 List

GenerateBlobSasUris() 공개 메소드

public GenerateBlobSasUris ( List blobUris, AzureContext azContext ) : AzureVMBackupBlobSasUris
blobUris List
azContext Microsoft.Azure.Commands.Common.Authentication.Models.AzureContext
리턴 Microsoft.Azure.Commands.Compute.Extension.AzureDiskEncryption.AzureVMBackupBlobSasUris

RemoveSnapshot() 공개 메소드

remove the vmbackups with the metadata key "vmbackuptag" and value snapshotTag, snapshotTag is the parameter passed in.
public RemoveSnapshot ( AzureVMBackupConfig vmConfig, string snapshotTag, VirtualMachineExtensionBaseCmdlet virtualMachineExtensionBaseCmdlet ) : void
vmConfig AzureVMBackupConfig
snapshotTag string
virtualMachineExtensionBaseCmdlet VirtualMachineExtensionBaseCmdlet
리턴 void