Skip to main content

publishers

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

Overview

Namepublishers
TypeResource
Idazure.hybrid_network.publishers

Fields

NameDatatypeDescription
identitytextManaged service identity (system assigned and/or user assigned identities)
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
publisherNametextfield from the properties object
resourceGroupNametextfield from the properties object
scopetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTpublisherName, resourceGroupName, subscriptionIdGets information about the specified publisher.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all the publishers in a resource group.
list_by_subscriptionSELECTsubscriptionIdLists all the publishers in a subscription.
create_or_updateINSERTpublisherName, resourceGroupName, subscriptionIdCreates or updates a publisher.
deleteDELETEpublisherName, resourceGroupName, subscriptionIdDeletes the specified publisher.
updateUPDATEpublisherName, resourceGroupName, subscriptionIdUpdate a publisher resource.

SELECT examples

Lists all the publishers in a subscription.

SELECT
identity,
location,
provisioning_state,
publisherName,
resourceGroupName,
scope,
subscriptionId,
tags
FROM azure.hybrid_network.vw_publishers
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.hybrid_network.publishers (
publisherName,
resourceGroupName,
subscriptionId,
properties,
identity,
tags,
location
)
SELECT
'{{ publisherName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a publishers resource.

/*+ update */
UPDATE azure.hybrid_network.publishers
SET
tags = '{{ tags }}'
WHERE
publisherName = '{{ publisherName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified publishers resource.

/*+ delete */
DELETE FROM azure.hybrid_network.publishers
WHERE publisherName = '{{ publisherName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';