application_definitions
Creates, updates, deletes, gets or lists a application_definitions
resource.
Overview
Name | application_definitions |
Type | Resource |
Id | azure.managed_applications.application_definitions |
Fields
- vw_application_definitions
- application_definitions
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
applicationDefinitionName | text | field from the properties object |
artifacts | text | field from the properties object |
authorizations | text | field from the properties object |
create_ui_definition | text | field from the properties object |
deployment_policy | text | field from the properties object |
display_name | text | field from the properties object |
is_enabled | text | field from the properties object |
lock_level | text | field from the properties object |
locking_policy | text | field from the properties object |
main_template | text | field from the properties object |
managed_by | text | field from the properties object |
management_policy | text | field from the properties object |
notification_policy | text | field from the properties object |
package_file_uri | text | field from the properties object |
policies | text | field from the properties object |
resourceGroupName | text | field from the properties object |
sku | text | SKU for the resource. |
storage_account_id | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
managedBy | string | ID of the resource that manages this resource. |
properties | object | The managed application definition properties. |
sku | object | SKU for the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | applicationDefinitionName, resourceGroupName, subscriptionId | Gets the managed application definition. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Lists the managed application definitions in a resource group. |
list_by_subscription | SELECT | subscriptionId | Lists all the application definitions within a subscription. |
create_or_update | INSERT | applicationDefinitionName, resourceGroupName, subscriptionId, data__properties | Creates or updates a managed application definition. |
delete | DELETE | applicationDefinitionName, resourceGroupName, subscriptionId | Deletes the managed application definition. |
update | UPDATE | applicationDefinitionName, resourceGroupName, subscriptionId | Updates the managed application definition. |
SELECT
examples
Lists all the application definitions within a subscription.
- vw_application_definitions
- application_definitions
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 }}';
SELECT
managedBy,
properties,
sku
FROM azure.managed_applications.application_definitions
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new application_definitions
resource.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: lockLevel
value: []
- name: displayName
value: string
- name: isEnabled
value: boolean
- name: authorizations
value:
- - name: principalId
value: string
- name: roleDefinitionId
value: string
- name: artifacts
value:
- - name: name
value: []
- name: uri
value: string
- name: type
value: []
- name: description
value: string
- name: packageFileUri
value: string
- name: storageAccountId
value: string
- name: mainTemplate
value: object
- name: createUiDefinition
value: object
- name: notificationPolicy
value:
- name: notificationEndpoints
value:
- - name: uri
value: string
- name: lockingPolicy
value:
- name: allowedActions
value:
- string
- name: allowedDataActions
value:
- string
- name: deploymentPolicy
value:
- name: deploymentMode
value: []
- name: managementPolicy
value:
- name: mode
value: []
- name: policies
value:
- - name: name
value: string
- name: policyDefinitionId
value: string
- name: parameters
value: string
- name: managedBy
value: string
- name: sku
value:
- name: name
value: string
- name: tier
value: string
- name: size
value: string
- name: family
value: string
- name: model
value: string
- name: capacity
value: integer
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 }}';