Skip to main content

global

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

Overview

Nameglobal
TypeResource
Idazure.web.global

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
deletedSiteIdintegerNumeric id for the deleted site.
deletedSiteNamestringName of the deleted site.
deletedTimestampstringTime in UTC when the app was deleted.
geoRegionNamestringGeo Region of the deleted site.
kindstringKind of resource.
resourceGroupstringResourceGroup that contained the deleted site.
slotstringSlot of the deleted site.
subscriptionstringSubscription containing the deleted site.
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
get_deleted_web_appselectdeleted_site_id, subscription_idGet deleted app for a subscription. Description for Get deleted app for a subscription.
get_deleted_web_app_snapshotsexecdeleted_site_id, subscription_idGet all deleted apps for a subscription. Description for Get all deleted apps for a subscription.
get_subscription_operation_with_async_responseexeclocation, operation_id, subscription_idGets an operation in a subscription and given region. Description for Gets an operation in a subscription and given region.

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
deleted_site_idstringThe numeric ID of the deleted app, e.g. 12345. Required.
locationstringThe name of the Azure region. Required.
operation_idstringOperation Id. Required.
subscription_idstring

SELECT examples

Get deleted app for a subscription. Description for Get deleted app for a subscription.

SELECT
id,
name,
deletedSiteId,
deletedSiteName,
deletedTimestamp,
geoRegionName,
kind,
resourceGroup,
slot,
subscription,
systemData,
type
FROM azure.web.global
WHERE deleted_site_id = '{{ deleted_site_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Get all deleted apps for a subscription. Description for Get all deleted apps for a subscription.

EXEC azure.web.global.get_deleted_web_app_snapshots 
@deleted_site_id='{{ deleted_site_id }}' --required,
@subscription_id='{{ subscription_id }}' --required
;