Skip to main content

app_attach_packages

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

Overview

Nameapp_attach_packages
TypeResource
Idazure.desktop_virtualization.app_attach_packages

Fields

NameDatatypeDescription
appAttachPackageNametextfield from the properties object
custom_datatextfield from the properties object
fail_health_check_on_staging_failuretextfield from the properties object
host_pool_referencestextfield from the properties object
imagetextfield from the properties object
key_vault_urltextfield from the properties object
locationtextThe geo-location where the resource lives
package_lookback_urltextfield from the properties object
package_owner_nametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTappAttachPackageName, resourceGroupName, subscriptionIdGet an app attach package.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList App Attach packages in resource group.
list_by_subscriptionSELECTsubscriptionIdList App Attach packages in subscription.
create_or_updateINSERTappAttachPackageName, resourceGroupName, subscriptionId, data__propertiesCreate or update an App Attach package.
deleteDELETEappAttachPackageName, resourceGroupName, subscriptionIdRemove an App Attach Package.
updateUPDATEappAttachPackageName, resourceGroupName, subscriptionIdUpdate an App Attach Package
import_infoEXEChostPoolName, resourceGroupName, subscriptionIdGets information from a package given the path to the package.

SELECT examples

List App Attach packages in subscription.

SELECT
appAttachPackageName,
custom_data,
fail_health_check_on_staging_failure,
host_pool_references,
image,
key_vault_url,
location,
package_lookback_url,
package_owner_name,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.desktop_virtualization.vw_app_attach_packages
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new app_attach_packages resource.

/*+ create */
INSERT INTO azure.desktop_virtualization.app_attach_packages (
appAttachPackageName,
resourceGroupName,
subscriptionId,
data__properties,
tags,
location,
properties
)
SELECT
'{{ appAttachPackageName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a app_attach_packages resource.

/*+ update */
UPDATE azure.desktop_virtualization.app_attach_packages
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
appAttachPackageName = '{{ appAttachPackageName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified app_attach_packages resource.

/*+ delete */
DELETE FROM azure.desktop_virtualization.app_attach_packages
WHERE appAttachPackageName = '{{ appAttachPackageName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';