aliases
Creates, updates, deletes, gets or lists a aliases
resource.
Overview
Name | aliases |
Type | Resource |
Id | azure.subscription.aliases |
Fields
- vw_aliases
- aliases
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified ID for the alias resource. |
name | text | Alias ID. |
accept_ownership_state | text | field from the properties object |
accept_ownership_url | text | field from the properties object |
aliasName | text | field from the properties object |
billing_scope | text | field from the properties object |
created_time | text | field from the properties object |
display_name | text | field from the properties object |
management_group_id | text | field from the properties object |
provisioning_state | text | field from the properties object |
reseller_id | text | field from the properties object |
subscription_id | text | field from the properties object |
subscription_owner_id | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | field from the properties object |
type | text | Resource type, Microsoft.Subscription/aliases. |
workload | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified ID for the alias resource. |
name | string | Alias ID. |
properties | object | Put subscription creation result properties. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | Resource type, Microsoft.Subscription/aliases. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | aliasName | Get Alias Subscription. |
list | SELECT |
| List Alias Subscription. |
create | INSERT | aliasName | Create Alias Subscription. |
delete | DELETE | aliasName | Delete Alias. |
SELECT
examples
List Alias Subscription.
- vw_aliases
- aliases
SELECT
id,
name,
accept_ownership_state,
accept_ownership_url,
aliasName,
billing_scope,
created_time,
display_name,
management_group_id,
provisioning_state,
reseller_id,
subscription_id,
subscription_owner_id,
system_data,
tags,
type,
workload
FROM azure.subscription.vw_aliases
;
SELECT
id,
name,
properties,
systemData,
type
FROM azure.subscription.aliases
;
INSERT
example
Use the following StackQL query and manifest file to create a new aliases
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.subscription.aliases (
aliasName,
properties
)
SELECT
'{{ aliasName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: displayName
value: string
- name: workload
value: []
- name: billingScope
value: []
- name: subscriptionId
value: string
- name: resellerId
value: string
- name: additionalProperties
value:
- name: managementGroupId
value: string
- name: subscriptionTenantId
value: string
- name: subscriptionOwnerId
value: string
- name: tags
value: object
DELETE
example
Deletes the specified aliases
resource.
/*+ delete */
DELETE FROM azure.subscription.aliases
WHERE aliasName = '{{ aliasName }}';