Skip to main content

site_network_services

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

Overview

Namesite_network_services
TypeResource
Idazure.hybrid_network.site_network_services

Fields

The following fields are returned by SELECT queries:

Request successful. The operation returns the resulting network site resource.

NameDatatypeDescription
identityobjectThe managed identity of the Site network service, if configured.
locationstringThe geo-location where the resource lives
propertiesobjectSite network service properties.
skuobjectSku of the site network service.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, siteNetworkServiceNameGets information about the specified site network service.
list_by_resource_groupselectsubscriptionId, resourceGroupNameLists all site network services.
list_by_subscriptionselectsubscriptionIdLists all sites in the network service in a subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, siteNetworkServiceNameCreates or updates a network site.
deletedeletesubscriptionId, resourceGroupName, siteNetworkServiceNameDeletes the specified site network service.
update_tagsexecsubscriptionId, resourceGroupName, siteNetworkServiceNameUpdates a site update tags.

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
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
siteNetworkServiceNamestringThe name of the site network service.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets information about the specified site network service.

SELECT
identity,
location,
properties,
sku,
tags
FROM azure.hybrid_network.site_network_services
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND siteNetworkServiceName = '{{ siteNetworkServiceName }}' -- required
;

INSERT examples

Creates or updates a network site.

INSERT INTO azure.hybrid_network.site_network_services (
data__properties,
data__identity,
data__sku,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
siteNetworkServiceName
)
SELECT
'{{ properties }}',
'{{ identity }}',
'{{ sku }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ siteNetworkServiceName }}'
RETURNING
identity,
location,
properties,
sku,
tags
;

DELETE examples

Deletes the specified site network service.

DELETE FROM azure.hybrid_network.site_network_services
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND siteNetworkServiceName = '{{ siteNetworkServiceName }}' --required
;

Lifecycle Methods

Updates a site update tags.

EXEC azure.hybrid_network.site_network_services.update_tags 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@siteNetworkServiceName='{{ siteNetworkServiceName }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;