Skip to main content

services

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

Overview

Nameservices
TypeResource
Idazure.peering.services

Fields

NameDatatypeDescription
idtextThe ID of the resource.
nametextThe name of the resource.
locationtextThe location of the resource.
log_analytics_workspace_propertiestextfield from the properties object
peeringServiceNametextfield from the properties object
peering_service_locationtextfield from the properties object
peering_service_providertextfield from the properties object
provider_backup_peering_locationtextfield from the properties object
provider_primary_peering_locationtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextThe SKU that defines the type of the peering service.
subscriptionIdtextfield from the properties object
tagstextThe resource tags.
typetextThe type of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTpeeringServiceName, resourceGroupName, subscriptionIdGets an existing peering service with the specified name under the given subscription and resource group.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all of the peering services under the given subscription and resource group.
list_by_subscriptionSELECTsubscriptionIdLists all of the peerings under the given subscription.
create_or_updateINSERTpeeringServiceName, resourceGroupName, subscriptionId, data__locationCreates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.
deleteDELETEpeeringServiceName, resourceGroupName, subscriptionIdDeletes an existing peering service with the specified name under the given subscription and resource group.
updateUPDATEpeeringServiceName, resourceGroupName, subscriptionIdUpdates tags for a peering service with the specified name under the given subscription and resource group.
initialize_connection_monitorEXECsubscriptionIdInitialize Peering Service for Connection Monitor functionality

SELECT examples

Lists all of the peerings under the given subscription.

SELECT
id,
name,
location,
log_analytics_workspace_properties,
peeringServiceName,
peering_service_location,
peering_service_provider,
provider_backup_peering_location,
provider_primary_peering_location,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
tags,
type
FROM azure.peering.vw_services
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.peering.services (
peeringServiceName,
resourceGroupName,
subscriptionId,
data__location,
sku,
properties,
location,
tags
)
SELECT
'{{ peeringServiceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ sku }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a services resource.

/*+ update */
UPDATE azure.peering.services
SET
tags = '{{ tags }}'
WHERE
peeringServiceName = '{{ peeringServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified services resource.

/*+ delete */
DELETE FROM azure.peering.services
WHERE peeringServiceName = '{{ peeringServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';