Skip to main content

applications

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

Overview

Nameapplications
TypeResource
Idazure.resource.applications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
applicationDefinitionIdstringThe fully qualified path of managed application definition Id.
artifactsarrayThe collection of managed application artifacts.
authorizationsarrayThe read-only authorizations property that is retrieved from the application package.
billingDetailsobjectThe managed application billing details.
createdByobjectThe client entity that created the JIT request.
customerSupportobjectThe read-only customer support property that is retrieved from the application package.
identityobjectThe identity of the resource.
jitAccessPolicyobjectThe managed application Jit access policy.
kindstringThe kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. Required.
locationstringResource location.
managedBystringID of the resource that manages this resource.
managedResourceGroupIdstringThe managed resource group Id.
managementModestringThe managed application management mode. Known values are: "NotSpecified", "Unmanaged", and "Managed".
outputsobjectName and value pairs that define the managed application outputs.
parametersobjectName and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string.
planobjectThe plan information.
provisioningStatestringThe managed application provisioning state. Known values are: "NotSpecified", "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", and "Updating".
publisherTenantIdstringThe publisher tenant Id.
skuobjectThe SKU of the resource.
supportUrlsobjectThe read-only support URLs property that is retrieved from the application package.
tagsobjectResource tags.
typestringResource type.
updatedByobjectThe client entity that last updated the JIT request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, application_name, subscription_idGets the managed application.
list_by_resource_groupselectresource_group_name, subscription_idGets all the applications within a resource group.
list_by_subscriptionselectsubscription_idGets all the applications within a subscription.
get_by_idselectapplication_idGets the managed application.
create_or_updateinsertresource_group_name, application_name, subscription_id, kindCreates a new managed application.
create_or_update_by_idinsertapplication_id, kindCreates a new managed application.
updateupdateresource_group_name, application_name, subscription_idUpdates an existing managed application. The only value that can be updated via PATCH currently is the tags.
update_by_idupdateapplication_id, kindUpdates an existing managed application. The only value that can be updated via PATCH currently is the tags.
create_or_updatereplaceresource_group_name, application_name, subscription_id, kindCreates a new managed application.
create_or_update_by_idreplaceapplication_id, kindCreates a new managed application.
deletedeleteresource_group_name, application_name, subscription_idDeletes the managed application.
delete_by_iddeleteapplication_idDeletes the managed application.
refresh_permissionsexecresource_group_name, application_name, subscription_idRefresh Permissions for application.

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_idstringThe fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}. Required.
application_namestringThe name of the managed application. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets the managed application.

SELECT
id,
name,
applicationDefinitionId,
artifacts,
authorizations,
billingDetails,
createdBy,
customerSupport,
identity,
jitAccessPolicy,
kind,
location,
managedBy,
managedResourceGroupId,
managementMode,
outputs,
parameters,
plan,
provisioningState,
publisherTenantId,
sku,
supportUrls,
tags,
type,
updatedBy
FROM azure.resource.applications
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND application_name = '{{ application_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a new managed application.

INSERT INTO azure.resource.applications (
location,
tags,
managedBy,
sku,
plan,
kind,
identity,
properties,
resource_group_name,
application_name,
subscription_id
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ managedBy }}',
'{{ sku }}',
'{{ plan }}',
'{{ kind }}' /* required */,
'{{ identity }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ application_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
kind,
location,
managedBy,
plan,
properties,
sku,
tags,
type
;

UPDATE examples

Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.

UPDATE azure.resource.applications
SET
location = '{{ location }}',
tags = '{{ tags }}',
managedBy = '{{ managedBy }}',
sku = '{{ sku }}',
plan = '{{ plan }}',
kind = '{{ kind }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND application_name = '{{ application_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
kind,
location,
managedBy,
plan,
properties,
sku,
tags,
type;

REPLACE examples

Creates a new managed application.

REPLACE azure.resource.applications
SET
location = '{{ location }}',
tags = '{{ tags }}',
managedBy = '{{ managedBy }}',
sku = '{{ sku }}',
plan = '{{ plan }}',
kind = '{{ kind }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND application_name = '{{ application_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND kind = '{{ kind }}' --required
RETURNING
id,
name,
identity,
kind,
location,
managedBy,
plan,
properties,
sku,
tags,
type;

DELETE examples

Deletes the managed application.

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

Lifecycle Methods

Refresh Permissions for application.

EXEC azure.resource.applications.refresh_permissions 
@resource_group_name='{{ resource_group_name }}' --required,
@application_name='{{ application_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;