SqlVirtualMachines class
Class representing a SqlVirtualMachines.
Constructors
Sql |
Create a SqlVirtualMachines. |
Methods
Constructor Details
SqlVirtualMachines(SqlVirtualMachineManagementClientContext)
Create a SqlVirtualMachines.
new SqlVirtualMachines(client: SqlVirtualMachineManagementClientContext)
Parameters
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
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.
The optional parameters
Returns
Promise<SqlVirtualMachinesGetResponse>
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.
The optional parameters
- callback
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<SqlVirtualMachinesListResponse>
Promise<Models.SqlVirtualMachinesListResponse>
list(RequestOptionsBase, ServiceCallback<SqlVirtualMachineListResult>)
function list(options: RequestOptionsBase, callback: ServiceCallback<SqlVirtualMachineListResult>)
Parameters
- options
- RequestOptionsBase
The optional parameters
- callback
The callback
list(ServiceCallback<SqlVirtualMachineListResult>)
function list(callback: ServiceCallback<SqlVirtualMachineListResult>)
Parameters
- callback
The callback
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
- callback
The callback
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.
- callback
The callback
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
- callback
The callback
listByResourceGroupNext(string, ServiceCallback<SqlVirtualMachineListResult>)
function listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback<SqlVirtualMachineListResult>)
Parameters
- nextPageLink
-
string
The NextLink from the previous successful call to List operation.
- callback
The callback
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
- callback
The callback
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.
- callback
The callback
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
- callback
The callback
listBySqlVmGroupNext(string, ServiceCallback<SqlVirtualMachineListResult>)
function listBySqlVmGroupNext(nextPageLink: string, callback: ServiceCallback<SqlVirtualMachineListResult>)
Parameters
- nextPageLink
-
string
The NextLink from the previous successful call to List operation.
- callback
The callback
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<SqlVirtualMachinesListNextResponse>
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
- callback
The callback
listNext(string, ServiceCallback<SqlVirtualMachineListResult>)
function listNext(nextPageLink: string, callback: ServiceCallback<SqlVirtualMachineListResult>)
Parameters
- nextPageLink
-
string
The NextLink from the previous successful call to List operation.
- callback
The callback
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<SqlVirtualMachinesUpdateResponse>
Promise<Models.SqlVirtualMachinesUpdateResponse>