accounts
Creates, updates, deletes, gets or lists a accounts
resource.
Overview
Name | accounts |
Type | Resource |
Id | azure.device_update.accounts |
Fields
Name | Datatype | Description |
---|---|---|
identity | object | Managed service identity (system assigned and/or user assigned identities) |
location | string | The geo-location where the resource lives |
properties | object | Device Update account properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, resourceGroupName, subscriptionId | Returns account details for the given account name. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Returns list of Accounts. |
list_by_subscription | SELECT | subscriptionId | Returns list of Accounts. |
create | INSERT | accountName, resourceGroupName, subscriptionId | Creates or updates Account. |
delete | DELETE | accountName, resourceGroupName, subscriptionId | Deletes account. |
update | UPDATE | accountName, resourceGroupName, subscriptionId | Updates account's patchable properties |
SELECT
examples
Returns list of Accounts.
SELECT
identity,
location,
properties,
tags
FROM azure.device_update.accounts
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new accounts
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.device_update.accounts (
accountName,
resourceGroupName,
subscriptionId,
tags,
location,
properties,
identity
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: provisioningState
value: string
- name: hostName
value: string
- name: publicNetworkAccess
value: string
- name: privateEndpointConnections
value:
- - name: properties
value:
- name: privateEndpoint
value:
- name: id
value: string
- name: privateLinkServiceConnectionState
value:
- name: status
value: []
- name: description
value: string
- name: actionsRequired
value: string
- name: groupIds
value:
- string
- name: provisioningState
value: []
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: sku
value: string
- name: encryption
value:
- name: keyVaultKeyUri
value: string
- name: userAssignedIdentity
value: string
- name: locations
value:
- - name: name
value: string
- name: role
value: string
- name: identity
value:
- name: principalId
value: string
- name: tenantId
value: string
- name: type
value: []
- name: userAssignedIdentities
value: []
UPDATE
example
Updates a accounts
resource.
/*+ update */
UPDATE azure.device_update.accounts
SET
identity = '{{ identity }}',
location = '{{ location }}',
tags = '{{ tags }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified accounts
resource.
/*+ delete */
DELETE FROM azure.device_update.accounts
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';