Skip to main content

vmm_servers

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

Overview

Namevmm_servers
TypeResource
Idazure.system_center_vm_manager.vmm_servers

Fields

NameDatatypeDescription
connection_statustextfield from the properties object
credentialstextfield from the properties object
error_messagetextfield from the properties object
extended_locationtextfield from the properties object
fqdntextfield from the properties object
locationtextThe geo-location where the resource lives
porttextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
uuidtextfield from the properties object
versiontextfield from the properties object
vmmServerNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, vmmServerNameImplements VmmServer GET method.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList of VmmServers in a resource group.
list_by_subscriptionSELECTsubscriptionIdList of VmmServers in a subscription.
create_or_updateINSERTresourceGroupName, subscriptionId, vmmServerName, data__extendedLocationOnboards the SCVmm fabric as an Azure VmmServer resource.
deleteDELETEresourceGroupName, subscriptionId, vmmServerNameRemoves the SCVmm fabric from Azure.
updateUPDATEresourceGroupName, subscriptionId, vmmServerNameUpdates the VmmServers resource.

SELECT examples

List of VmmServers in a subscription.

SELECT
connection_status,
credentials,
error_message,
extended_location,
fqdn,
location,
port,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
uuid,
version,
vmmServerName
FROM azure.system_center_vm_manager.vw_vmm_servers
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new vmm_servers resource.

/*+ create */
INSERT INTO azure.system_center_vm_manager.vmm_servers (
resourceGroupName,
subscriptionId,
vmmServerName,
data__extendedLocation,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vmmServerName }}',
'{{ data__extendedLocation }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a vmm_servers resource.

/*+ update */
UPDATE azure.system_center_vm_manager.vmm_servers
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmmServerName = '{{ vmmServerName }}';

DELETE example

Deletes the specified vmm_servers resource.

/*+ delete */
DELETE FROM azure.system_center_vm_manager.vmm_servers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmmServerName = '{{ vmmServerName }}';