cloud_services
Creates, updates, deletes, gets or lists a cloud_services
resource.
Overview
Name | cloud_services |
Type | Resource |
Id | azure.compute.cloud_services |
Fields
- vw_cloud_services
- cloud_services
Name | Datatype | Description |
---|---|---|
id | text | Resource Id. |
name | text | Resource name. |
allow_model_override | text | field from the properties object |
cloudServiceName | text | field from the properties object |
configuration | text | field from the properties object |
configuration_url | text | field from the properties object |
extension_profile | text | field from the properties object |
location | text | Resource location. |
network_profile | text | field from the properties object |
os_profile | text | field from the properties object |
package_url | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
role_profile | text | field from the properties object |
start_cloud_service | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | Resource tags. |
type | text | Resource type. |
unique_id | text | field from the properties object |
upgrade_mode | text | field from the properties object |
zones | text | List of logical availability zone of the resource. List should contain only 1 zone where cloud service should be provisioned. This field is optional. |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id. |
name | string | Resource name. |
location | string | Resource location. |
properties | object | Cloud service properties |
systemData | object | The system meta data relating to this resource. |
tags | object | Resource tags. |
type | string | Resource type. |
zones | array | List of logical availability zone of the resource. List should contain only 1 zone where cloud service should be provisioned. This field is optional. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | cloudServiceName, resourceGroupName, subscriptionId | Display information about a cloud service. |
get_instance_view | SELECT | cloudServiceName, resourceGroupName, subscriptionId | Gets the status of a cloud service. |
list | SELECT | resourceGroupName, subscriptionId | Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services. |
list_all | SELECT | subscriptionId | Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services. |
create_or_update | INSERT | cloudServiceName, resourceGroupName, subscriptionId, data__location | Create or update a cloud service. Please note some properties can be set only during cloud service creation. |
delete | DELETE | cloudServiceName, resourceGroupName, subscriptionId | Deletes a cloud service. |
update | UPDATE | cloudServiceName, resourceGroupName, subscriptionId | Update a cloud service. |
delete_instances | EXEC | cloudServiceName, resourceGroupName, subscriptionId, data__roleInstances | Deletes role instances in a cloud service. |
power_off | EXEC | cloudServiceName, resourceGroupName, subscriptionId | Power off the cloud service. Note that resources are still attached and you are getting charged for the resources. |
rebuild | EXEC | cloudServiceName, resourceGroupName, subscriptionId, data__roleInstances | Rebuild Role Instances 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 Instances. |
reimage | EXEC | cloudServiceName, resourceGroupName, subscriptionId, data__roleInstances | Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. |
restart | EXEC | cloudServiceName, resourceGroupName, subscriptionId, data__roleInstances | Restarts one or more role instances in a cloud service. |
start | EXEC | cloudServiceName, resourceGroupName, subscriptionId | Starts the cloud service. |
SELECT
examples
Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.
- vw_cloud_services
- cloud_services
SELECT
id,
name,
allow_model_override,
cloudServiceName,
configuration,
configuration_url,
extension_profile,
location,
network_profile,
os_profile,
package_url,
provisioning_state,
resourceGroupName,
role_profile,
start_cloud_service,
subscriptionId,
system_data,
tags,
type,
unique_id,
upgrade_mode,
zones
FROM azure.compute.vw_cloud_services
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
systemData,
tags,
type,
zones
FROM azure.compute.cloud_services
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new cloud_services
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.compute.cloud_services (
cloudServiceName,
resourceGroupName,
subscriptionId,
data__location,
location,
tags,
properties,
systemData,
zones
)
SELECT
'{{ cloudServiceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ systemData }}',
'{{ zones }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
- name: properties
value:
- name: packageUrl
value: string
- name: configuration
value: string
- name: configurationUrl
value: string
- name: startCloudService
value: boolean
- name: allowModelOverride
value: boolean
- name: upgradeMode
value: []
- name: roleProfile
value:
- name: roles
value:
- - name: name
value: string
- name: sku
value:
- name: name
value: string
- name: tier
value: string
- name: capacity
value: integer
- name: osProfile
value:
- name: secrets
value:
- - name: sourceVault
value:
- name: id
value: string
- name: vaultCertificates
value:
- - name: certificateUrl
value: string
- name: networkProfile
value:
- name: loadBalancerConfigurations
value:
- - name: id
value: string
- name: name
value: string
- name: properties
value:
- name: frontendIpConfigurations
value:
- - name: name
value: string
- name: properties
value:
- name: privateIPAddress
value: string
- name: slotType
value: []
- name: extensionProfile
value:
- name: extensions
value:
- - name: name
value: string
- name: properties
value:
- name: publisher
value: string
- name: type
value: string
- name: typeHandlerVersion
value: string
- name: autoUpgradeMinorVersion
value: boolean
- name: settings
value: object
- name: protectedSettings
value: object
- name: protectedSettingsFromKeyVault
value:
- name: secretUrl
value: string
- name: forceUpdateTag
value: string
- name: provisioningState
value: string
- name: rolesAppliedTo
value:
- string
- name: provisioningState
value: string
- name: uniqueId
value: string
- name: systemData
value:
- name: createdAt
value: string
- name: lastModifiedAt
value: string
- name: zones
value:
- string
UPDATE
example
Updates a cloud_services
resource.
/*+ update */
UPDATE azure.compute.cloud_services
SET
tags = '{{ tags }}'
WHERE
cloudServiceName = '{{ cloudServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified cloud_services
resource.
/*+ delete */
DELETE FROM azure.compute.cloud_services
WHERE cloudServiceName = '{{ cloudServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';