Skip to main content

azure_large_instance

Creates, updates, deletes, gets or lists an azure_large_instance resource.

Overview

Nameazure_large_instance
TypeResource
Idazure.large_instance.azure_large_instance

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.
azureLargeInstanceIdstringSpecifies the Azure Large Instance unique ID.
hardwareProfileobjectSpecifies the hardware settings for the Azure Large Instance.
hwRevisionstringHardware revision of an Azure Large Instance.
locationstringThe geo-location where the resource lives. Required.
networkProfileobjectSpecifies the network settings for the Azure Large Instance.
osProfileobjectSpecifies the operating system settings for the Azure Large Instance.
partnerNodeIdstringARM ID of another AzureLargeInstance that will share a network with this AzureLargeInstance.
powerStatestringResource power state. Known values are: "starting", "started", "stopping", "stopped", "restarting", and "unknown".
provisioningStatestringState of provisioning of the AzureLargeInstance. Known values are: "Accepted", "Creating", "Updating", "Failed", "Succeeded", "Deleting", "Migrating", and "Canceled".
proximityPlacementGroupstringResource proximity placement group.
storageProfileobjectSpecifies the storage settings for the Azure Large Instance disks.
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".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, azure_large_instance_name, subscription_idGets an Azure Large Instance for the specified subscription, resource group, and instance name.
list_by_resource_groupselectresource_group_name, subscription_idGets a list of Azure Large Instances in the specified subscription and resource group. The operations returns various properties of each Azure Large Instance.
list_by_subscriptionselectsubscription_idGets a list of Azure Large Instances in the specified subscription. The operations returns various properties of each Azure Large Instance.
updateupdateresource_group_name, azure_large_instance_name, subscription_idPatches the Tags field of an Azure Large Instance for the specified subscription, resource group, and instance name.
restartexecresource_group_name, azure_large_instance_name, subscription_idThe operation to restart an Azure Large Instance (only for compute instances).
shutdownexecresource_group_name, azure_large_instance_name, subscription_idThe operation to shutdown an Azure Large Instance (only for compute instances).
startexecresource_group_name, azure_large_instance_name, subscription_idThe operation to start an Azure Large Instance (only for compute instances).

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
azure_large_instance_namestringName of the AzureLargeInstance. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets an Azure Large Instance for the specified subscription, resource group, and instance name.

SELECT
id,
name,
azureLargeInstanceId,
hardwareProfile,
hwRevision,
location,
networkProfile,
osProfile,
partnerNodeId,
powerState,
provisioningState,
proximityPlacementGroup,
storageProfile,
systemData,
tags,
type
FROM azure.large_instance.azure_large_instance
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND azure_large_instance_name = '{{ azure_large_instance_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

UPDATE examples

Patches the Tags field of an Azure Large Instance for the specified subscription, resource group, and instance name.

UPDATE azure.large_instance.azure_large_instance
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND azure_large_instance_name = '{{ azure_large_instance_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

Lifecycle Methods

The operation to restart an Azure Large Instance (only for compute instances).

EXEC azure.large_instance.azure_large_instance.restart 
@resource_group_name='{{ resource_group_name }}' --required,
@azure_large_instance_name='{{ azure_large_instance_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"forceState": "{{ forceState }}"
}'
;