Skip to main content

applications

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

Overview

Nameapplications
TypeResource
Idazure.managed_applications.applications

Fields

The following fields are returned by SELECT queries:

OK - Returns the managed application.

NameDatatypeDescription
identityobjectThe identity of the resource.
kindstringThe kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. (pattern: ^[-\w._,()]+$)
managedBystringID of the resource that manages this resource.
planobjectThe plan information.
propertiesobjectThe managed application properties.
skuobjectThe SKU of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, applicationNameGets the managed application.
list_allowed_upgrade_plansselectsubscriptionId, resourceGroupName, applicationNameList allowed upgrade plans for application.
list_by_resource_groupselectsubscriptionId, resourceGroupNameLists all the applications within a resource group.
list_by_subscriptionselectsubscriptionIdLists all the applications within a subscription.
get_by_idselectapplicationIdGets the managed application.
create_or_updateinsertsubscriptionId, resourceGroupName, applicationName, data__properties, data__kindCreates or updates a managed application.
updateupdatesubscriptionId, resourceGroupName, applicationNameUpdates an existing managed application.
deletedeletesubscriptionId, resourceGroupName, applicationNameDeletes the managed application.
delete_by_iddeleteapplicationIdDeletes the managed application.
update_by_idexecapplicationIdUpdates an existing managed application.
refresh_permissionsexecsubscriptionId, resourceGroupName, applicationNameRefresh 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
applicationIdstringThe 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}
applicationNamestringThe name of the managed application.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets the managed application.

SELECT
identity,
kind,
managedBy,
plan,
properties,
sku
FROM azure.managed_applications.applications
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND applicationName = '{{ applicationName }}' -- required
;

INSERT examples

Creates or updates a managed application.

INSERT INTO azure.managed_applications.applications (
data__properties,
data__plan,
data__kind,
data__identity,
data__managedBy,
data__sku,
subscriptionId,
resourceGroupName,
applicationName
)
SELECT
'{{ properties }}' /* required */,
'{{ plan }}',
'{{ kind }}' /* required */,
'{{ identity }}',
'{{ managedBy }}',
'{{ sku }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ applicationName }}'
RETURNING
identity,
kind,
managedBy,
plan,
properties,
sku
;

UPDATE examples

Updates an existing managed application.

UPDATE azure.managed_applications.applications
SET
data__properties = '{{ properties }}',
data__plan = '{{ plan }}',
data__kind = '{{ kind }}',
data__identity = '{{ identity }}',
data__managedBy = '{{ managedBy }}',
data__sku = '{{ sku }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND applicationName = '{{ applicationName }}' --required
RETURNING
identity,
kind,
managedBy,
plan,
properties,
sku;

DELETE examples

Deletes the managed application.

DELETE FROM azure.managed_applications.applications
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND applicationName = '{{ applicationName }}' --required
;

Lifecycle Methods

Updates an existing managed application.

EXEC azure.managed_applications.applications.update_by_id 
@applicationId='{{ applicationId }}' --required
@@json=
'{
"properties": "{{ properties }}",
"plan": "{{ plan }}",
"kind": "{{ kind }}",
"identity": "{{ identity }}",
"managedBy": "{{ managedBy }}",
"sku": "{{ sku }}"
}'
;