Skip to main content

application_definitions

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

Overview

Nameapplication_definitions
TypeResource
Idazure.managed_applications.application_definitions

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
applicationDefinitionNametextfield from the properties object
artifactstextfield from the properties object
authorizationstextfield from the properties object
create_ui_definitiontextfield from the properties object
deployment_policytextfield from the properties object
display_nametextfield from the properties object
is_enabledtextfield from the properties object
lock_leveltextfield from the properties object
locking_policytextfield from the properties object
main_templatetextfield from the properties object
managed_bytextfield from the properties object
management_policytextfield from the properties object
notification_policytextfield from the properties object
package_file_uritextfield from the properties object
policiestextfield from the properties object
resourceGroupNametextfield from the properties object
skutextSKU for the resource.
storage_account_idtextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTapplicationDefinitionName, resourceGroupName, subscriptionIdGets the managed application definition.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists the managed application definitions in a resource group.
list_by_subscriptionSELECTsubscriptionIdLists all the application definitions within a subscription.
create_or_updateINSERTapplicationDefinitionName, resourceGroupName, subscriptionId, data__propertiesCreates or updates a managed application definition.
deleteDELETEapplicationDefinitionName, resourceGroupName, subscriptionIdDeletes the managed application definition.
updateUPDATEapplicationDefinitionName, resourceGroupName, subscriptionIdUpdates the managed application definition.

SELECT examples

Lists all the application definitions within a subscription.

SELECT
description,
applicationDefinitionName,
artifacts,
authorizations,
create_ui_definition,
deployment_policy,
display_name,
is_enabled,
lock_level,
locking_policy,
main_template,
managed_by,
management_policy,
notification_policy,
package_file_uri,
policies,
resourceGroupName,
sku,
storage_account_id,
subscriptionId
FROM azure.managed_applications.vw_application_definitions
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.managed_applications.application_definitions (
applicationDefinitionName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
managedBy,
sku
)
SELECT
'{{ applicationDefinitionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ managedBy }}',
'{{ sku }}'
;

UPDATE example

Updates a application_definitions resource.

/*+ update */
UPDATE azure.managed_applications.application_definitions
SET
tags = '{{ tags }}'
WHERE
applicationDefinitionName = '{{ applicationDefinitionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified application_definitions resource.

/*+ delete */
DELETE FROM azure.managed_applications.application_definitions
WHERE applicationDefinitionName = '{{ applicationDefinitionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';