Skip to main content

applications

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

Overview

Nameapplications
TypeResource
Idazure.desktop_virtualization.applications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
namestringThe name of the resource.
applicationTypestringResource Type of Application. Known values are: "InBuilt" and "MsixApplication".
commandLineArgumentsstringCommand Line Arguments for Application.
commandLineSettingstringSpecifies whether this published application can be launched with command line arguments provided by the client, command line arguments specified at publish time, or no command line arguments at all. Required. Known values are: "DoNotAllow", "Allow", and "Require".
descriptionstringDescription of Application.
filePathstringSpecifies a path for the executable file for the application.
friendlyNamestringFriendly name of Application.
iconContentstring (byte)the icon a 64 bit string as a byte array.
iconHashstringHash of the icon.
iconIndexintegerIndex of the icon.
iconPathstringPath to icon.
msixPackageApplicationIdstringSpecifies the package application Id for MSIX applications.
msixPackageFamilyNamestringSpecifies the package family name for MSIX applications.
objectIdstringObjectId of Application. (internal use).
showInPortalbooleanSpecifies whether to show the RemoteApp program in the RD Web Access server.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, application_group_name, application_name, subscription_idGet an application.
listselectresource_group_name, application_group_name, subscription_idpageSize, isDescending, initialSkipList applications.
create_or_updateinsertresource_group_name, application_group_name, application_name, subscription_id, propertiesCreate or update an application.
updateupdateresource_group_name, application_group_name, application_name, subscription_idUpdate an application.
create_or_updatereplaceresource_group_name, application_group_name, application_name, subscription_id, propertiesCreate or update an application.
deletedeleteresource_group_name, application_group_name, application_name, subscription_idRemove an 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_group_namestringThe name of the application group. Required.
application_namestringThe name of the application within the specified application group. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
initialSkipintegerInitial number of items to skip. Default value is None.
isDescendingbooleanIndicates whether the collection is descending. Default value is None.
pageSizeintegerNumber of items per page. Default value is None.

SELECT examples

Get an application.

SELECT
id,
name,
applicationType,
commandLineArguments,
commandLineSetting,
description,
filePath,
friendlyName,
iconContent,
iconHash,
iconIndex,
iconPath,
msixPackageApplicationId,
msixPackageFamilyName,
objectId,
showInPortal,
systemData,
type
FROM azure.desktop_virtualization.applications
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND application_group_name = '{{ application_group_name }}' -- required
AND application_name = '{{ application_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update an application.

INSERT INTO azure.desktop_virtualization.applications (
properties,
resource_group_name,
application_group_name,
application_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ application_group_name }}',
'{{ application_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Update an application.

UPDATE azure.desktop_virtualization.applications
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND application_group_name = '{{ application_group_name }}' --required
AND application_name = '{{ application_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Create or update an application.

REPLACE azure.desktop_virtualization.applications
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND application_group_name = '{{ application_group_name }}' --required
AND application_name = '{{ application_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Remove an application.

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