cloud_service_role_instances
Creates, updates, deletes, gets or lists a cloud_service_role_instances
resource.
Overview
Name | cloud_service_role_instances |
Type | Resource |
Id | azure.compute.cloud_service_role_instances |
Fields
- vw_cloud_service_role_instances
- cloud_service_role_instances
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource Name. |
cloudServiceName | text | field from the properties object |
instance_view | text | field from the properties object |
location | text | Resource Location. |
network_profile | text | field from the properties object |
resourceGroupName | text | field from the properties object |
roleInstanceName | text | field from the properties object |
sku | text | The role instance SKU. |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
type | text | Resource Type. |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource Name. |
location | string | Resource Location. |
properties | object | Role instance properties. |
sku | object | The role instance SKU. |
tags | object | Resource tags. |
type | string | Resource Type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | cloudServiceName, resourceGroupName, roleInstanceName, subscriptionId | Gets a role instance from a cloud service. |
get_instance_view | SELECT | cloudServiceName, resourceGroupName, roleInstanceName, subscriptionId | Retrieves information about the run-time state of a role instance in a cloud service. |
list | SELECT | cloudServiceName, resourceGroupName, subscriptionId | 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. |
delete | DELETE | cloudServiceName, resourceGroupName, roleInstanceName, subscriptionId | Deletes a role instance from a cloud service. |
rebuild | EXEC | cloudServiceName, resourceGroupName, roleInstanceName, subscriptionId | The 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. |
reimage | EXEC | cloudServiceName, resourceGroupName, roleInstanceName, subscriptionId | The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. |
restart | EXEC | cloudServiceName, resourceGroupName, roleInstanceName, subscriptionId | The 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.
- vw_cloud_service_role_instances
- cloud_service_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 }}';
SELECT
id,
name,
location,
properties,
sku,
tags,
type
FROM azure.compute.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 }}';