Skip to main content

infra_role_instances

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

Overview

Nameinfra_role_instances
TypeResource
Idazure_stack.fabric_admin.infra_role_instances

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
propertiesobjectAll properties of an infrastructure role instance.
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
getselectsubscriptionId, resourceGroupName, location, infraRoleInstanceReturn the requested infrastructure role instance.
listselectsubscriptionId, resourceGroupName, location$filterReturns a list of all infrastructure role instances at a location.
power_offexecsubscriptionId, resourceGroupName, location, infraRoleInstancePower off an infrastructure role instance.
power_onexecsubscriptionId, resourceGroupName, location, infraRoleInstancePower on an infrastructure role instance.
shutdownexecsubscriptionId, resourceGroupName, location, infraRoleInstanceShut down an infrastructure role instance.
rebootexecsubscriptionId, resourceGroupName, location, infraRoleInstanceReboot an infrastructure role instance.

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
infraRoleInstancestringName of an infrastructure role instance.
locationstringThe name of Azure region.
resourceGroupNamestringName of the resource group.
subscriptionIdstringThe ID of the target subscription.
$filterstringOData filter parameter.

SELECT examples

Return the requested infrastructure role instance.

SELECT
id,
name,
properties,
type
FROM azure_stack.fabric_admin.infra_role_instances
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND location = '{{ location }}' -- required
AND infraRoleInstance = '{{ infraRoleInstance }}' -- required
;

Lifecycle Methods

Power off an infrastructure role instance.

EXEC azure_stack.fabric_admin.infra_role_instances.power_off 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@location='{{ location }}' --required,
@infraRoleInstance='{{ infraRoleInstance }}' --required
;