Skip to main content

app_attach_packages

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

Overview

Nameapp_attach_packages
TypeResource
Idazure.desktop_virtualization.app_attach_packages

Fields

The following fields are returned by SELECT queries:

Successfully retrieved App Attach Package.

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectDetailed properties for App Attach Package
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, appAttachPackageNameGet an app attach package.
list_by_resource_groupselectsubscriptionId, resourceGroupName$filterList App Attach packages in resource group.
list_by_subscriptionselectsubscriptionId$filterList App Attach packages in subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, appAttachPackageName, data__propertiesCreate or update an App Attach package.
updateupdatesubscriptionId, resourceGroupName, appAttachPackageNameUpdate an App Attach Package
deletedeletesubscriptionId, resourceGroupName, appAttachPackageNameforceRemove an App Attach Package.
import_infoexecsubscriptionId, resourceGroupName, hostPoolNameGets information from a package given the path to the package.

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
appAttachPackageNamestringThe name of the App Attach package arm object
hostPoolNamestringThe name of the host pool within the specified resource group
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
$filterstringOData filter expression. Valid properties for filtering are package name, resource group, host pool, package owner name, and custom data.
forcebooleanForce flag to delete App Attach package.

SELECT examples

Get an app attach package.

SELECT
location,
properties,
tags
FROM azure.desktop_virtualization.app_attach_packages
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND appAttachPackageName = '{{ appAttachPackageName }}' -- required
;

INSERT examples

Create or update an App Attach package.

INSERT INTO azure.desktop_virtualization.app_attach_packages (
data__tags,
data__location,
data__properties,
subscriptionId,
resourceGroupName,
appAttachPackageName
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ properties }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ appAttachPackageName }}'
RETURNING
location,
properties,
tags
;

UPDATE examples

Update an App Attach Package

UPDATE azure.desktop_virtualization.app_attach_packages
SET
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND appAttachPackageName = '{{ appAttachPackageName }}' --required
RETURNING
location,
properties,
tags;

DELETE examples

Remove an App Attach Package.

DELETE FROM azure.desktop_virtualization.app_attach_packages
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND appAttachPackageName = '{{ appAttachPackageName }}' --required
AND force = '{{ force }}'
;

Lifecycle Methods

Gets information from a package given the path to the package.

EXEC azure.desktop_virtualization.app_attach_packages.import_info 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@hostPoolName='{{ hostPoolName }}' --required
@@json=
'{
"path": "{{ path }}",
"packageArchitecture": "{{ packageArchitecture }}"
}'
;