Skip to main content

aliases

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

Overview

Namealiases
TypeResource
Idazure.subscription.aliases

Fields

NameDatatypeDescription
idtextFully qualified ID for the alias resource.
nametextAlias ID.
accept_ownership_statetextfield from the properties object
accept_ownership_urltextfield from the properties object
aliasNametextfield from the properties object
billing_scopetextfield from the properties object
created_timetextfield from the properties object
display_nametextfield from the properties object
management_group_idtextfield from the properties object
provisioning_statetextfield from the properties object
reseller_idtextfield from the properties object
subscription_idtextfield from the properties object
subscription_owner_idtextfield from the properties object
system_datatextfield from the properties object
tagstextfield from the properties object
typetextResource type, Microsoft.Subscription/aliases.
workloadtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaliasNameGet Alias Subscription.
listSELECTList Alias Subscription.
createINSERTaliasNameCreate Alias Subscription.
deleteDELETEaliasNameDelete Alias.

SELECT examples

List Alias Subscription.

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
;

INSERT example

Use the following StackQL query and manifest file to create a new aliases resource.

/*+ create */
INSERT INTO azure.subscription.aliases (
aliasName,
properties
)
SELECT
'{{ aliasName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified aliases resource.

/*+ delete */
DELETE FROM azure.subscription.aliases
WHERE aliasName = '{{ aliasName }}';