Skip to main content

app_attach_package

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

Overview

Nameapp_attach_package
TypeResource
Idazure.desktop_virtualization.app_attach_package

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.
failHealthCheckOnStagingFailurestringParameter indicating how the health check should behave if this package fails staging. Known values are: "Unhealthy", "NeedsAssistance", and "DoNotFail".
hostPoolReferencesarrayList of Hostpool resource Ids.
imageobjectDetailed properties for App Attach Package.
keyVaultURLstringURL path to certificate name located in keyVault.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringThe provisioning state of the App Attach Package. Known values are: "Succeeded", "Provisioning", "Failed", and "Canceled".
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
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, app_attach_package_name, subscription_idGet an app attach package.
list_by_resource_groupselectresource_group_name, subscription_id$filterList App Attach packages in resource group.
list_by_subscriptionselectsubscription_id$filterList App Attach packages in subscription.
create_or_updateinsertresource_group_name, app_attach_package_name, subscription_id, location, propertiesCreate or update an App Attach package.
updateupdateresource_group_name, app_attach_package_name, subscription_idUpdate an App Attach Package.
create_or_updatereplaceresource_group_name, app_attach_package_name, subscription_id, location, propertiesCreate or update an App Attach package.
deletedeleteresource_group_name, app_attach_package_name, subscription_idRemove an App Attach 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
app_attach_package_namestringThe name of the App Attach package. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$filterstringOData filter expression. Valid properties for filtering are package name, host pool, and resource group. Default value is None.

SELECT examples

Get an app attach package.

SELECT
id,
name,
failHealthCheckOnStagingFailure,
hostPoolReferences,
image,
keyVaultURL,
location,
provisioningState,
systemData,
tags,
type
FROM azure.desktop_virtualization.app_attach_package
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND app_attach_package_name = '{{ app_attach_package_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update an App Attach package.

INSERT INTO azure.desktop_virtualization.app_attach_package (
tags,
location,
properties,
resource_group_name,
app_attach_package_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ app_attach_package_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update an App Attach Package.

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

REPLACE examples

Create or update an App Attach package.

REPLACE azure.desktop_virtualization.app_attach_package
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND app_attach_package_name = '{{ app_attach_package_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Remove an App Attach Package.

DELETE FROM azure.desktop_virtualization.app_attach_package
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND app_attach_package_name = '{{ app_attach_package_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;