Skip to main content

guest_agents

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

Overview​

Nameguest_agents
TypeResource
Idazure.scvmm.guest_agents

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.
credentialsobjectUsername / Password Credentials to provision guest agent.
customResourceNamestringGets the name of the corresponding resource in Kubernetes.
httpProxyConfigobjectHTTP Proxy configuration for the VM.
provisioningActionstringGets or sets the guest agent provisioning action. Known values are: "install", "uninstall", and "repair".
provisioningStatestringProvisioning state of the resource. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", and "Created".
statusstringGets the guest agent status.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
uuidstringGets a unique identifier for this resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_uriGets GuestAgent. Implements GuestAgent GET method.
createinsertresource_uriImplements GuestAgent PUT method. Create Or Update GuestAgent.
deletedeleteresource_uriDeletes a GuestAgent resource. Implements GuestAgent DELETE method.
list_by_virtual_machine_instanceexecresource_uriImplements GET GuestAgent in a vm. Returns the list of GuestAgent of the given vm.

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_uristringThe fully qualified Azure Resource manager identifier of the resource. Required.

SELECT examples​

Gets GuestAgent. Implements GuestAgent GET method.

SELECT
id,
name,
credentials,
customResourceName,
httpProxyConfig,
provisioningAction,
provisioningState,
status,
systemData,
type,
uuid
FROM azure.scvmm.guest_agents
WHERE resource_uri = '{{ resource_uri }}' -- required
;

INSERT examples​

Implements GuestAgent PUT method. Create Or Update GuestAgent.

INSERT INTO azure.scvmm.guest_agents (
properties,
resource_uri
)
SELECT
'{{ properties }}',
'{{ resource_uri }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples​

Deletes a GuestAgent resource. Implements GuestAgent DELETE method.

DELETE FROM azure.scvmm.guest_agents
WHERE resource_uri = '{{ resource_uri }}' --required
;

Lifecycle Methods​

Implements GET GuestAgent in a vm. Returns the list of GuestAgent of the given vm.

EXEC azure.scvmm.guest_agents.list_by_virtual_machine_instance
@resource_uri='{{ resource_uri }}' --required
;