Skip to main content

cloud_service_roles

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

Overview

Namecloud_service_roles
TypeResource
Idazure.compute.cloud_service_roles

Fields

NameDatatypeDescription
idtextResource id
nametextResource name
cloudServiceNametextfield from the properties object
locationtextResource location
resourceGroupNametextfield from the properties object
roleNametextfield from the properties object
skutextDescribes the cloud service role sku.
subscriptionIdtextfield from the properties object
typetextResource type
unique_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcloudServiceName, resourceGroupName, roleName, subscriptionIdGets a role from a cloud service.
listSELECTcloudServiceName, resourceGroupName, subscriptionIdGets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles.

SELECT examples

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

SELECT
id,
name,
cloudServiceName,
location,
resourceGroupName,
roleName,
sku,
subscriptionId,
type,
unique_id
FROM azure.compute.vw_cloud_service_roles
WHERE cloudServiceName = '{{ cloudServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';