Skip to main content

cloud_service_role_instances

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

Overview

Namecloud_service_role_instances
TypeResource
Idazure.compute.cloud_service_role_instances

Fields

NameDatatypeDescription
idtextResource Id
nametextResource Name.
cloudServiceNametextfield from the properties object
instance_viewtextfield from the properties object
locationtextResource Location.
network_profiletextfield from the properties object
resourceGroupNametextfield from the properties object
roleInstanceNametextfield from the properties object
skutextThe role instance SKU.
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource Type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcloudServiceName, resourceGroupName, roleInstanceName, subscriptionIdGets a role instance from a cloud service.
get_instance_viewSELECTcloudServiceName, resourceGroupName, roleInstanceName, subscriptionIdRetrieves information about the run-time state of a role instance in a cloud service.
listSELECTcloudServiceName, resourceGroupName, subscriptionIdGets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role instances.
deleteDELETEcloudServiceName, resourceGroupName, roleInstanceName, subscriptionIdDeletes a role instance from a cloud service.
rebuildEXECcloudServiceName, resourceGroupName, roleInstanceName, subscriptionIdThe Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instance.
reimageEXECcloudServiceName, resourceGroupName, roleInstanceName, subscriptionIdThe Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
restartEXECcloudServiceName, resourceGroupName, roleInstanceName, subscriptionIdThe Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.

SELECT examples

Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role instances.

SELECT
id,
name,
cloudServiceName,
instance_view,
location,
network_profile,
resourceGroupName,
roleInstanceName,
sku,
subscriptionId,
tags,
type
FROM azure.compute.vw_cloud_service_role_instances
WHERE cloudServiceName = '{{ cloudServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified cloud_service_role_instances resource.

/*+ delete */
DELETE FROM azure.compute.cloud_service_role_instances
WHERE cloudServiceName = '{{ cloudServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND roleInstanceName = '{{ roleInstanceName }}'
AND subscriptionId = '{{ subscriptionId }}';