Skip to main content

vmm_servers

Creates, updates, deletes, gets or lists a vmm_servers resource.

Overview

Namevmm_servers
TypeResource
Idazure.scvmm.vmm_servers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
namestringThe name of the resource.
connectionStatusstringGets the connection status to the vmmServer.
credentialsobjectCredentials to connect to VmmServer.
errorMessagestringGets any error message if connection to vmmServer is having any issue.
extendedLocationobjectThe extended location. Required.
fqdnstringFqdn is the hostname/ip of the vmmServer. Required.
locationstringThe geo-location where the resource lives. Required.
portintegerPort is the port on which the vmmServer is listening.
provisioningStatestringProvisioning state of the resource. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", and "Created".
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
uuidstringUnique ID of vmmServer.
versionstringVersion is the version of the vmmSever.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, vmm_server_name, subscription_idGets a VMMServer. Implements VmmServer GET method.
list_by_resource_groupselectresource_group_name, subscription_idImplements GET VmmServers in a resource group. List of VmmServers in a resource group.
list_by_subscriptionselectsubscription_idImplements GET VmmServers in a subscription. List of VmmServers in a subscription.
create_or_updateinsertresource_group_name, vmm_server_name, subscription_id, location, extendedLocationImplements VmmServers PUT method. Onboards the SCVmm fabric as an Azure VmmServer resource.
updateupdateresource_group_name, vmm_server_name, subscription_idImplements VmmServers PATCH method. Updates the VmmServers resource.
create_or_updatereplaceresource_group_name, vmm_server_name, subscription_id, location, extendedLocationImplements VmmServers PUT method. Onboards the SCVmm fabric as an Azure VmmServer resource.
deletedeleteresource_group_name, vmm_server_name, subscription_idforceImplements VmmServers DELETE method. Removes the SCVmm fabric from Azure.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
vmm_server_namestringName of the VmmServer. Required.
forcestringForces the resource to be deleted. Known values are: "true" and "false". Default value is None.

SELECT examples

Gets a VMMServer. Implements VmmServer GET method.

SELECT
id,
name,
connectionStatus,
credentials,
errorMessage,
extendedLocation,
fqdn,
location,
port,
provisioningState,
systemData,
tags,
type,
uuid,
version
FROM azure.scvmm.vmm_servers
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND vmm_server_name = '{{ vmm_server_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Implements VmmServers PUT method. Onboards the SCVmm fabric as an Azure VmmServer resource.

INSERT INTO azure.scvmm.vmm_servers (
tags,
location,
properties,
extendedLocation,
resource_group_name,
vmm_server_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ extendedLocation }}' /* required */,
'{{ resource_group_name }}',
'{{ vmm_server_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
extendedLocation,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Implements VmmServers PATCH method. Updates the VmmServers resource.

UPDATE azure.scvmm.vmm_servers
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND vmm_server_name = '{{ vmm_server_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
extendedLocation,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Implements VmmServers PUT method. Onboards the SCVmm fabric as an Azure VmmServer resource.

REPLACE azure.scvmm.vmm_servers
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND vmm_server_name = '{{ vmm_server_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND extendedLocation = '{{ extendedLocation }}' --required
RETURNING
id,
name,
extendedLocation,
location,
properties,
systemData,
tags,
type;

DELETE examples

Implements VmmServers DELETE method. Removes the SCVmm fabric from Azure.

DELETE FROM azure.scvmm.vmm_servers
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND vmm_server_name = '{{ vmm_server_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND force = '{{ force }}'
;