Method | Description | |
---|---|---|
CleanupUnattachedDisks ( ) : void |
Cleans up any disks which don't have an attached VM
|
|
ClosePorts ( string cloudSErviceName, string virtualMachineName ) : void | ||
CreateNewVirtualMachineFromTemplateGallery ( |
Creates a new virtual machine from a gallery template
|
|
DeleteNamedVirtualMachineDisk ( string name ) : void |
Deletes a vm disk if a name is known
|
|
DeleteVirtualMachine ( bool removeDisks = true, bool removeUnderlyingBlobs = true, bool removeCloudService = true, bool removeStorageAccount = true ) : void |
Deletes the virtual machine that has context with the client
|
|
GetAvailableVirtualNetworks ( ) : List |
||
GetHostDetails ( string cloudServiceName ) : List |
Gets a list of hosts, internal ip addresses and other things
|
|
OpenPorts ( string cloudServiceName, string virtualMachineName ) : void | ||
Restart ( ) : void |
Restarts the virtual machine instance
|
|
SaveRemoteDesktopFile ( string filePath ) : void |
download rdp file for the windows vm
|
|
Stop ( ) : void |
Stops the virtual machine instance
|
|
WindowsVirtualMachineClient ( |
Constructs a VirtualMachinenClient
|
|
WindowsVirtualMachineClient ( string subscriptionId, |
Constructs a WindowsVirtualMachineClient and will get the details of a virtual machine given a cloud service
|
Method | Description | |
---|---|---|
DeleteDataDisks ( IBlobClient client ) : void | ||
EnsureVirtualMachineProperties ( |
Checks whether the necessary properties are populated
|
|
ParseBlobDetails ( string blobAddress ) : string |
Returns the name of the blob and container
|
public ClosePorts ( string cloudSErviceName, string virtualMachineName ) : void | ||
cloudSErviceName | string | |
virtualMachineName | string | |
return | void |
public CreateNewVirtualMachineFromTemplateGallery ( |
||
properties | Can be any gallery template | |
return | IVirtualMachineClient |
public DeleteNamedVirtualMachineDisk ( string name ) : void | ||
name | string | The name of the vm disk |
return | void |
public DeleteVirtualMachine ( bool removeDisks = true, bool removeUnderlyingBlobs = true, bool removeCloudService = true, bool removeStorageAccount = true ) : void | ||
removeDisks | bool | True if the underlying disks in blob storage should be removed |
removeUnderlyingBlobs | bool | Whether or not remove the blob as well as the OS disk |
removeCloudService | bool | Removes the cloud service container |
removeStorageAccount | bool | The storage account that the vhd is in |
return | void |
public GetAvailableVirtualNetworks ( ) : List |
||
return | List |
public GetHostDetails ( string cloudServiceName ) : List |
||
cloudServiceName | string | |
return | List |
public OpenPorts ( string cloudServiceName, string virtualMachineName ) : void | ||
cloudServiceName | string | |
virtualMachineName | string | |
return | void |
public SaveRemoteDesktopFile ( string filePath ) : void | ||
filePath | string | |
return | void |
public WindowsVirtualMachineClient ( |
||
properties | A valid VirtualMachineProperties object | |
return | System |
public WindowsVirtualMachineClient ( string subscriptionId, |
||
subscriptionId | string | the subscription id |
certificate | A management certificate for the subscription | |
cloudServiceName | string | A cloud service which is in the subscription and contains the virtual machine |
return | System |