Skip to main content

application_group

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

Overview

Nameapplication_group
TypeResource
Idazure.event_hub.application_group

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.
clientAppGroupIdentifierstringThe Unique identifier for application group.Supports SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid).
isEnabledbooleanDetermines if Application Group is allowed to create connection with namespace or not. Once the isEnabled is set to false, all the existing connections of application group gets dropped and no new connections will be allowed.
locationstringThe geo-location where the resource lives.
policiesarrayList of group policies that define the behavior of application group. The policies can support resource governance scenarios such as limiting ingress or egress traffic.
systemDataobjectThe system meta data relating to this resource.
typestringThe type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, namespace_name, application_group_name, subscription_idGets an ApplicationGroup for a Namespace.
list_by_namespaceselectresource_group_name, namespace_name, subscription_idGets a list of application groups for a Namespace.
create_or_update_application_groupinsertresource_group_name, namespace_name, application_group_name, subscription_idCreates or updates an ApplicationGroup for a Namespace.
create_or_update_application_groupreplaceresource_group_name, namespace_name, application_group_name, subscription_idCreates or updates an ApplicationGroup for a Namespace.
deletedeleteresource_group_name, namespace_name, application_group_name, subscription_idDeletes an ApplicationGroup for a Namespace.

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 Application Group name. Required.
namespace_namestringThe Namespace name. Required.
resource_group_namestringName of the resource group within the azure subscription. Required.
subscription_idstring

SELECT examples

Gets an ApplicationGroup for a Namespace.

SELECT
id,
name,
clientAppGroupIdentifier,
isEnabled,
location,
policies,
systemData,
type
FROM azure.event_hub.application_group
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND namespace_name = '{{ namespace_name }}' -- required
AND application_group_name = '{{ application_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates an ApplicationGroup for a Namespace.

INSERT INTO azure.event_hub.application_group (
properties,
resource_group_name,
namespace_name,
application_group_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ namespace_name }}',
'{{ application_group_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
type
;

REPLACE examples

Creates or updates an ApplicationGroup for a Namespace.

REPLACE azure.event_hub.application_group
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND namespace_name = '{{ namespace_name }}' --required
AND application_group_name = '{{ application_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
type;

DELETE examples

Deletes an ApplicationGroup for a Namespace.

DELETE FROM azure.event_hub.application_group
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND namespace_name = '{{ namespace_name }}' --required
AND application_group_name = '{{ application_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;