SqlVirtualMachines class

Class representing a SqlVirtualMachines.

Constructors

SqlVirtualMachines(SqlVirtualMachineManagementClientContext)

Create a SqlVirtualMachines.

Methods

beginCreateOrUpdate(string, string, SqlVirtualMachine, RequestOptionsBase)

Creates or updates a SQL virtual machine.

beginDeleteMethod(string, string, RequestOptionsBase)

Deletes a SQL virtual machine.

beginUpdate(string, string, SqlVirtualMachineUpdate, RequestOptionsBase)

Updates a SQL virtual machine.

createOrUpdate(string, string, SqlVirtualMachine, RequestOptionsBase)

Creates or updates a SQL virtual machine.

deleteMethod(string, string, RequestOptionsBase)

Deletes a SQL virtual machine.

get(string, string, ServiceCallback<SqlVirtualMachine>)
get(string, string, SqlVirtualMachinesGetOptionalParams)

Gets a SQL virtual machine.

get(string, string, SqlVirtualMachinesGetOptionalParams, ServiceCallback<SqlVirtualMachine>)
list(RequestOptionsBase)

Gets all SQL virtual machines in a subscription.

list(RequestOptionsBase, ServiceCallback<SqlVirtualMachineListResult>)
list(ServiceCallback<SqlVirtualMachineListResult>)
listByResourceGroup(string, RequestOptionsBase)

Gets all SQL virtual machines in a resource group.

listByResourceGroup(string, RequestOptionsBase, ServiceCallback<SqlVirtualMachineListResult>)
listByResourceGroup(string, ServiceCallback<SqlVirtualMachineListResult>)
listByResourceGroupNext(string, RequestOptionsBase)

Gets all SQL virtual machines in a resource group.

listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<SqlVirtualMachineListResult>)
listByResourceGroupNext(string, ServiceCallback<SqlVirtualMachineListResult>)
listBySqlVmGroup(string, string, RequestOptionsBase)

Gets the list of sql virtual machines in a SQL virtual machine group.

listBySqlVmGroup(string, string, RequestOptionsBase, ServiceCallback<SqlVirtualMachineListResult>)
listBySqlVmGroup(string, string, ServiceCallback<SqlVirtualMachineListResult>)
listBySqlVmGroupNext(string, RequestOptionsBase)

Gets the list of sql virtual machines in a SQL virtual machine group.

listBySqlVmGroupNext(string, RequestOptionsBase, ServiceCallback<SqlVirtualMachineListResult>)
listBySqlVmGroupNext(string, ServiceCallback<SqlVirtualMachineListResult>)
listNext(string, RequestOptionsBase)

Gets all SQL virtual machines in a subscription.

listNext(string, RequestOptionsBase, ServiceCallback<SqlVirtualMachineListResult>)
listNext(string, ServiceCallback<SqlVirtualMachineListResult>)
update(string, string, SqlVirtualMachineUpdate, RequestOptionsBase)

Updates a SQL virtual machine.

Constructor Details

SqlVirtualMachines(SqlVirtualMachineManagementClientContext)

Create a SqlVirtualMachines.

new SqlVirtualMachines(client: SqlVirtualMachineManagementClientContext)

Parameters

client
SqlVirtualMachineManagementClientContext

Reference to the service client.

Method Details

beginCreateOrUpdate(string, string, SqlVirtualMachine, RequestOptionsBase)

Creates or updates a SQL virtual machine.

function beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachine, options?: RequestOptionsBase): Promise<LROPoller>

Parameters

resourceGroupName

string

Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

sqlVirtualMachineName

string

Name of the SQL virtual machine.

parameters
SqlVirtualMachine

The SQL virtual machine.

options
RequestOptionsBase

The optional parameters

Returns

Promise<@azure/ms-rest-azure-js.LROPoller>

Promise<msRestAzure.LROPoller>

beginDeleteMethod(string, string, RequestOptionsBase)

Deletes a SQL virtual machine.

function beginDeleteMethod(resourceGroupName: string, sqlVirtualMachineName: string, options?: RequestOptionsBase): Promise<LROPoller>

Parameters

resourceGroupName

string

Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

sqlVirtualMachineName

string

Name of the SQL virtual machine.

options
RequestOptionsBase

The optional parameters

Returns

Promise<@azure/ms-rest-azure-js.LROPoller>

Promise<msRestAzure.LROPoller>

beginUpdate(string, string, SqlVirtualMachineUpdate, RequestOptionsBase)

Updates a SQL virtual machine.

function beginUpdate(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachineUpdate, options?: RequestOptionsBase): Promise<LROPoller>

Parameters

resourceGroupName

string

Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

sqlVirtualMachineName

string

Name of the SQL virtual machine.

parameters
SqlVirtualMachineUpdate

The SQL virtual machine.

options
RequestOptionsBase

The optional parameters

Returns

Promise<@azure/ms-rest-azure-js.LROPoller>

Promise<msRestAzure.LROPoller>

createOrUpdate(string, string, SqlVirtualMachine, RequestOptionsBase)

Creates or updates a SQL virtual machine.

function createOrUpdate(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachine, options?: RequestOptionsBase): Promise<SqlVirtualMachinesCreateOrUpdateResponse>

Parameters

resourceGroupName

string

Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

sqlVirtualMachineName

string

Name of the SQL virtual machine.

parameters
SqlVirtualMachine

The SQL virtual machine.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SqlVirtualMachinesCreateOrUpdateResponse>

deleteMethod(string, string, RequestOptionsBase)

Deletes a SQL virtual machine.

function deleteMethod(resourceGroupName: string, sqlVirtualMachineName: string, options?: RequestOptionsBase): Promise<RestResponse>

Parameters

resourceGroupName

string

Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

sqlVirtualMachineName

string

Name of the SQL virtual machine.

options
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

get(string, string, ServiceCallback<SqlVirtualMachine>)

function get(resourceGroupName: string, sqlVirtualMachineName: string, callback: ServiceCallback<SqlVirtualMachine>)

Parameters

resourceGroupName

string

Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

sqlVirtualMachineName

string

Name of the SQL virtual machine.

callback

ServiceCallback<SqlVirtualMachine>

The callback

get(string, string, SqlVirtualMachinesGetOptionalParams)

Gets a SQL virtual machine.

function get(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesGetOptionalParams): Promise<SqlVirtualMachinesGetResponse>

Parameters

resourceGroupName

string

Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

sqlVirtualMachineName

string

Name of the SQL virtual machine.

options
SqlVirtualMachinesGetOptionalParams

The optional parameters

Returns

Promise<Models.SqlVirtualMachinesGetResponse>

get(string, string, SqlVirtualMachinesGetOptionalParams, ServiceCallback<SqlVirtualMachine>)

function get(resourceGroupName: string, sqlVirtualMachineName: string, options: SqlVirtualMachinesGetOptionalParams, callback: ServiceCallback<SqlVirtualMachine>)

Parameters

resourceGroupName

string

Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

sqlVirtualMachineName

string

Name of the SQL virtual machine.

options
SqlVirtualMachinesGetOptionalParams

The optional parameters

callback

ServiceCallback<SqlVirtualMachine>

The callback

list(RequestOptionsBase)

Gets all SQL virtual machines in a subscription.

function list(options?: RequestOptionsBase): Promise<SqlVirtualMachinesListResponse>

Parameters

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SqlVirtualMachinesListResponse>

list(RequestOptionsBase, ServiceCallback<SqlVirtualMachineListResult>)

function list(options: RequestOptionsBase, callback: ServiceCallback<SqlVirtualMachineListResult>)

Parameters

options
RequestOptionsBase

The optional parameters

list(ServiceCallback<SqlVirtualMachineListResult>)

function list(callback: ServiceCallback<SqlVirtualMachineListResult>)

Parameters

listByResourceGroup(string, RequestOptionsBase)

Gets all SQL virtual machines in a resource group.

function listByResourceGroup(resourceGroupName: string, options?: RequestOptionsBase): Promise<SqlVirtualMachinesListByResourceGroupResponse>

Parameters

resourceGroupName

string

Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SqlVirtualMachinesListByResourceGroupResponse>

listByResourceGroup(string, RequestOptionsBase, ServiceCallback<SqlVirtualMachineListResult>)

function listByResourceGroup(resourceGroupName: string, options: RequestOptionsBase, callback: ServiceCallback<SqlVirtualMachineListResult>)

Parameters

resourceGroupName

string

Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

options
RequestOptionsBase

The optional parameters

listByResourceGroup(string, ServiceCallback<SqlVirtualMachineListResult>)

function listByResourceGroup(resourceGroupName: string, callback: ServiceCallback<SqlVirtualMachineListResult>)

Parameters

resourceGroupName

string

Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

listByResourceGroupNext(string, RequestOptionsBase)

Gets all SQL virtual machines in a resource group.

function listByResourceGroupNext(nextPageLink: string, options?: RequestOptionsBase): Promise<SqlVirtualMachinesListByResourceGroupNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SqlVirtualMachinesListByResourceGroupNextResponse>

listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<SqlVirtualMachineListResult>)

function listByResourceGroupNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<SqlVirtualMachineListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

listByResourceGroupNext(string, ServiceCallback<SqlVirtualMachineListResult>)

function listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback<SqlVirtualMachineListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

listBySqlVmGroup(string, string, RequestOptionsBase)

Gets the list of sql virtual machines in a SQL virtual machine group.

function listBySqlVmGroup(resourceGroupName: string, sqlVirtualMachineGroupName: string, options?: RequestOptionsBase): Promise<SqlVirtualMachinesListBySqlVmGroupResponse>

Parameters

resourceGroupName

string

Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

sqlVirtualMachineGroupName

string

Name of the SQL virtual machine group.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SqlVirtualMachinesListBySqlVmGroupResponse>

listBySqlVmGroup(string, string, RequestOptionsBase, ServiceCallback<SqlVirtualMachineListResult>)

function listBySqlVmGroup(resourceGroupName: string, sqlVirtualMachineGroupName: string, options: RequestOptionsBase, callback: ServiceCallback<SqlVirtualMachineListResult>)

Parameters

resourceGroupName

string

Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

sqlVirtualMachineGroupName

string

Name of the SQL virtual machine group.

options
RequestOptionsBase

The optional parameters

listBySqlVmGroup(string, string, ServiceCallback<SqlVirtualMachineListResult>)

function listBySqlVmGroup(resourceGroupName: string, sqlVirtualMachineGroupName: string, callback: ServiceCallback<SqlVirtualMachineListResult>)

Parameters

resourceGroupName

string

Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

sqlVirtualMachineGroupName

string

Name of the SQL virtual machine group.

listBySqlVmGroupNext(string, RequestOptionsBase)

Gets the list of sql virtual machines in a SQL virtual machine group.

function listBySqlVmGroupNext(nextPageLink: string, options?: RequestOptionsBase): Promise<SqlVirtualMachinesListBySqlVmGroupNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SqlVirtualMachinesListBySqlVmGroupNextResponse>

listBySqlVmGroupNext(string, RequestOptionsBase, ServiceCallback<SqlVirtualMachineListResult>)

function listBySqlVmGroupNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<SqlVirtualMachineListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

listBySqlVmGroupNext(string, ServiceCallback<SqlVirtualMachineListResult>)

function listBySqlVmGroupNext(nextPageLink: string, callback: ServiceCallback<SqlVirtualMachineListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

listNext(string, RequestOptionsBase)

Gets all SQL virtual machines in a subscription.

function listNext(nextPageLink: string, options?: RequestOptionsBase): Promise<SqlVirtualMachinesListNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SqlVirtualMachinesListNextResponse>

listNext(string, RequestOptionsBase, ServiceCallback<SqlVirtualMachineListResult>)

function listNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<SqlVirtualMachineListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

listNext(string, ServiceCallback<SqlVirtualMachineListResult>)

function listNext(nextPageLink: string, callback: ServiceCallback<SqlVirtualMachineListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

update(string, string, SqlVirtualMachineUpdate, RequestOptionsBase)

Updates a SQL virtual machine.

function update(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachineUpdate, options?: RequestOptionsBase): Promise<SqlVirtualMachinesUpdateResponse>

Parameters

resourceGroupName

string

Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

sqlVirtualMachineName

string

Name of the SQL virtual machine.

parameters
SqlVirtualMachineUpdate

The SQL virtual machine.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SqlVirtualMachinesUpdateResponse>