VirtualMachineTemplates interface

Interface representing a VirtualMachineTemplates.

Methods

beginCreate(string, string, VirtualMachineTemplatesCreateOptionalParams)

Create Or Update virtual machine template.

beginCreateAndWait(string, string, VirtualMachineTemplatesCreateOptionalParams)

Create Or Update virtual machine template.

beginDelete(string, string, VirtualMachineTemplatesDeleteOptionalParams)

Implements virtual machine template DELETE method.

beginDeleteAndWait(string, string, VirtualMachineTemplatesDeleteOptionalParams)

Implements virtual machine template DELETE method.

get(string, string, VirtualMachineTemplatesGetOptionalParams)

Implements virtual machine template GET method.

list(VirtualMachineTemplatesListOptionalParams)

List of virtualMachineTemplates in a subscription.

listByResourceGroup(string, VirtualMachineTemplatesListByResourceGroupOptionalParams)

List of virtualMachineTemplates in a resource group.

update(string, string, VirtualMachineTemplatesUpdateOptionalParams)

API to update certain properties of the virtual machine template resource.

Method Details

beginCreate(string, string, VirtualMachineTemplatesCreateOptionalParams)

Create Or Update virtual machine template.

function beginCreate(resourceGroupName: string, virtualMachineTemplateName: string, options?: VirtualMachineTemplatesCreateOptionalParams): Promise<SimplePollerLike<OperationState<VirtualMachineTemplate>, VirtualMachineTemplate>>

Parameters

resourceGroupName

string

The Resource Group Name.

virtualMachineTemplateName

string

Name of the virtual machine template resource.

options
VirtualMachineTemplatesCreateOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<VirtualMachineTemplate>, VirtualMachineTemplate>>

beginCreateAndWait(string, string, VirtualMachineTemplatesCreateOptionalParams)

Create Or Update virtual machine template.

function beginCreateAndWait(resourceGroupName: string, virtualMachineTemplateName: string, options?: VirtualMachineTemplatesCreateOptionalParams): Promise<VirtualMachineTemplate>

Parameters

resourceGroupName

string

The Resource Group Name.

virtualMachineTemplateName

string

Name of the virtual machine template resource.

options
VirtualMachineTemplatesCreateOptionalParams

The options parameters.

Returns

beginDelete(string, string, VirtualMachineTemplatesDeleteOptionalParams)

Implements virtual machine template DELETE method.

function beginDelete(resourceGroupName: string, virtualMachineTemplateName: string, options?: VirtualMachineTemplatesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

Parameters

resourceGroupName

string

The Resource Group Name.

virtualMachineTemplateName

string

Name of the virtual machine template resource.

options
VirtualMachineTemplatesDeleteOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, VirtualMachineTemplatesDeleteOptionalParams)

Implements virtual machine template DELETE method.

function beginDeleteAndWait(resourceGroupName: string, virtualMachineTemplateName: string, options?: VirtualMachineTemplatesDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The Resource Group Name.

virtualMachineTemplateName

string

Name of the virtual machine template resource.

options
VirtualMachineTemplatesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, VirtualMachineTemplatesGetOptionalParams)

Implements virtual machine template GET method.

function get(resourceGroupName: string, virtualMachineTemplateName: string, options?: VirtualMachineTemplatesGetOptionalParams): Promise<VirtualMachineTemplate>

Parameters

resourceGroupName

string

The Resource Group Name.

virtualMachineTemplateName

string

Name of the virtual machine template resource.

options
VirtualMachineTemplatesGetOptionalParams

The options parameters.

Returns

list(VirtualMachineTemplatesListOptionalParams)

List of virtualMachineTemplates in a subscription.

function list(options?: VirtualMachineTemplatesListOptionalParams): PagedAsyncIterableIterator<VirtualMachineTemplate, VirtualMachineTemplate[], PageSettings>

Parameters

options
VirtualMachineTemplatesListOptionalParams

The options parameters.

Returns

listByResourceGroup(string, VirtualMachineTemplatesListByResourceGroupOptionalParams)

List of virtualMachineTemplates in a resource group.

function listByResourceGroup(resourceGroupName: string, options?: VirtualMachineTemplatesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<VirtualMachineTemplate, VirtualMachineTemplate[], PageSettings>

Parameters

resourceGroupName

string

The Resource Group Name.

Returns

update(string, string, VirtualMachineTemplatesUpdateOptionalParams)

API to update certain properties of the virtual machine template resource.

function update(resourceGroupName: string, virtualMachineTemplateName: string, options?: VirtualMachineTemplatesUpdateOptionalParams): Promise<VirtualMachineTemplate>

Parameters

resourceGroupName

string

The Resource Group Name.

virtualMachineTemplateName

string

Name of the virtual machine template resource.

options
VirtualMachineTemplatesUpdateOptionalParams

The options parameters.

Returns