Skip to main content

application_definitions

Creates, updates, deletes, gets or lists an application_definitions resource.

Overview

Nameapplication_definitions
TypeResource
Idazure.resource.application_definitions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
artifactsarrayThe collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.
authorizationsarrayThe managed application provider authorizations.
createUiDefinitionobjectThe createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string.
deploymentPolicyobjectThe managed application deployment policy.
descriptionstringThe managed application definition description.
displayNamestringThe managed application definition display name.
isEnabledbooleanA value indicating whether the package is enabled or not.
locationstringResource location.
lockLevelstringThe managed application lock level. Required. Known values are: "CanNotDelete", "ReadOnly", and "None".
lockingPolicyobjectThe managed application locking policy.
mainTemplateobjectThe inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string.
managedBystringID of the resource that manages this resource.
managementPolicyobjectThe managed application management policy that determines publisher's access to the managed resource group.
notificationPolicyobjectThe managed application notification policy.
packageFileUristringThe managed application definition package file Uri. Use this element.
policiesarrayThe managed application provider policies.
skuobjectThe SKU of the resource.
tagsobjectResource tags.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, application_definition_name, subscription_idGets the managed application definition.
list_by_resource_groupselectresource_group_name, subscription_idLists the managed application definitions in a resource group.
create_or_updateinsertresource_group_name, application_definition_name, subscription_id, propertiesCreates a new managed application definition.
create_or_updatereplaceresource_group_name, application_definition_name, subscription_id, propertiesCreates a new managed application definition.
deletedeleteresource_group_name, application_definition_name, subscription_idDeletes the managed application definition.

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
application_definition_namestringThe name of the managed application definition to delete. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets the managed application definition.

SELECT
id,
name,
artifacts,
authorizations,
createUiDefinition,
deploymentPolicy,
description,
displayName,
isEnabled,
location,
lockLevel,
lockingPolicy,
mainTemplate,
managedBy,
managementPolicy,
notificationPolicy,
packageFileUri,
policies,
sku,
tags,
type
FROM azure.resource.application_definitions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND application_definition_name = '{{ application_definition_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a new managed application definition.

INSERT INTO azure.resource.application_definitions (
location,
tags,
managedBy,
sku,
properties,
resource_group_name,
application_definition_name,
subscription_id
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ managedBy }}',
'{{ sku }}',
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ application_definition_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
managedBy,
properties,
sku,
tags,
type
;

REPLACE examples

Creates a new managed application definition.

REPLACE azure.resource.application_definitions
SET
location = '{{ location }}',
tags = '{{ tags }}',
managedBy = '{{ managedBy }}',
sku = '{{ sku }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND application_definition_name = '{{ application_definition_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
location,
managedBy,
properties,
sku,
tags,
type;

DELETE examples

Deletes the managed application definition.

DELETE FROM azure.resource.application_definitions
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND application_definition_name = '{{ application_definition_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;