Skip to main content

guest_agents

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

Overview

Nameguest_agents
TypeResource
Idazure_stack.azure_stack_hci_vm.guest_agents

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
credentialsobjectUsername / Password Credentials to provision guest agent.
provisioningActionstringThe guest agent provisioning action. Known values are: "install", "uninstall", and "repair". (install, uninstall, repair)
provisioningStatestringProvisioning state of the virtual machine instance. Known values are: "Succeeded", "Failed", "InProgress", "Accepted", "Deleting", and "Canceled". (Succeeded, Failed, InProgress, Accepted, Deleting, Canceled)
statusstringThe 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".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_uriImplements GuestAgent GET method.
createinsertresource_uriCreate Or Update GuestAgent.
deletedeleteresource_uriImplements GuestAgent DELETE method.
list_by_virtual_machine_instanceexecresource_uriReturns 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

Implements GuestAgent GET method.

SELECT
id,
name,
credentials,
provisioningAction,
provisioningState,
status,
systemData,
type
FROM azure_stack.azure_stack_hci_vm.guest_agents
WHERE resource_uri = '{{ resource_uri }}' -- required
;

INSERT examples

Create Or Update GuestAgent.

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

DELETE examples

Implements GuestAgent DELETE method.

DELETE FROM azure_stack.azure_stack_hci_vm.guest_agents
WHERE resource_uri = '{{ resource_uri }}' --required
;

Lifecycle Methods

Returns the list of GuestAgent of the given vm.

EXEC azure_stack.azure_stack_hci_vm.guest_agents.list_by_virtual_machine_instance 
@resource_uri='{{ resource_uri }}' --required
;