Skip to main content

registrations

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

Overview

Nameregistrations
TypeResource
Idazure_stack.azure_stack.registrations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the resource.
namestringName of the resource.
billingModelstringSpecifies the billing mode for the Azure Stack registration.
cloudIdstringThe identifier of the registered Azure Stack.
etagstringThe entity tag used for optimistic concurrency when modifying the resource.
kindstringThe kind of the resource.
locationstringLocation of the resource. Required. "global"
objectIdstringThe object identifier associated with the Azure Stack connecting to Azure.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectCustom tags for the resource.
typestringType of Resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group, registration_name, subscription_idReturns the properties of an Azure Stack registration.
listselectresource_group, subscription_idReturns a list of all registrations.
list_by_subscriptionselectsubscription_idReturns a list of all registrations under current subscription.
create_or_updateinsertresource_group, registration_name, subscription_id, location, propertiesCreate or update an Azure Stack registration.
updateupdateresource_group, registration_name, subscription_id, location, propertiesPatch an Azure Stack registration.
create_or_updatereplaceresource_group, registration_name, subscription_id, location, propertiesCreate or update an Azure Stack registration.
deletedeleteresource_group, registration_name, subscription_idDelete the requested Azure Stack registration.
get_activation_keyexecresource_group, registration_name, subscription_idReturns Azure Stack Activation Key.
enable_remote_managementexecresource_group, registration_name, subscription_idEnables remote management for device under the Azure Stack registration.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
registration_namestringName of the Azure Stack registration. Required.
resource_groupstringName of the resource group. Required.
subscription_idstring

SELECT examples

Returns the properties of an Azure Stack registration.

SELECT
id,
name,
billingModel,
cloudId,
etag,
kind,
location,
objectId,
systemData,
tags,
type
FROM azure_stack.azure_stack.registrations
WHERE resource_group = '{{ resource_group }}' -- required
AND registration_name = '{{ registration_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update an Azure Stack registration.

INSERT INTO azure_stack.azure_stack.registrations (
location,
properties,
resource_group,
registration_name,
subscription_id
)
SELECT
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ resource_group }}',
'{{ registration_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
kind,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Patch an Azure Stack registration.

UPDATE azure_stack.azure_stack.registrations
SET
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group = '{{ resource_group }}' --required
AND registration_name = '{{ registration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
etag,
kind,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create or update an Azure Stack registration.

REPLACE azure_stack.azure_stack.registrations
SET
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group = '{{ resource_group }}' --required
AND registration_name = '{{ registration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
etag,
kind,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete the requested Azure Stack registration.

DELETE FROM azure_stack.azure_stack.registrations
WHERE resource_group = '{{ resource_group }}' --required
AND registration_name = '{{ registration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Returns Azure Stack Activation Key.

EXEC azure_stack.azure_stack.registrations.get_activation_key 
@resource_group='{{ resource_group }}' --required,
@registration_name='{{ registration_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;