Skip to main content

site_network_services

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

Overview

Namesite_network_services
TypeResource
Idazure_extras.hybrid_network.site_network_services

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.
desiredStateConfigurationGroupValueReferencesobjectThe goal state of the site network service resource. This has references to the configuration group value objects that describe the desired state of the site network service.
identityobjectThe managed identity of the Site network service, if configured.
lastStateConfigurationGroupValueReferencesobjectThe last state of the site network service resource.
lastStateNetworkServiceDesignVersionNamestringThe network service design version for the site network service.
locationstringThe geo-location where the resource lives. Required.
managedResourceGroupConfigurationobjectManaged resource group configuration.
networkServiceDesignGroupNamestringThe network service design group name for the site network service.
networkServiceDesignVersionNamestringThe network service design version for the site network service.
networkServiceDesignVersionOfferingLocationstringThe location of the network service design offering.
networkServiceDesignVersionResourceReferenceobjectThe network service design version resource reference.
provisioningStatestringThe provisioning state of the site network service resource. Known values are: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", "Deleted", and "Converging".
publisherNamestringThe publisher name for the site network service.
publisherScopestringThe scope of the publisher. Known values are: "Unknown" and "Private".
siteReferenceobjectThe site details.
skuobjectSku of the site network service.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
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
getselectresource_group_name, site_network_service_name, subscription_idGets information about the specified site network service.
list_by_resource_groupselectresource_group_name, subscription_idLists all site network services.
list_by_subscriptionselectsubscription_idLists all sites in the network service in a subscription.
create_or_updateinsertresource_group_name, site_network_service_name, subscription_id, locationCreates or updates a network site.
update_tagsupdateresource_group_name, site_network_service_name, subscription_idUpdates a site update tags.
create_or_updatereplaceresource_group_name, site_network_service_name, subscription_id, locationCreates or updates a network site.
deletedeleteresource_group_name, site_network_service_name, subscription_idDeletes the specified site network service.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
site_network_service_namestringThe name of the site network service. Required.
subscription_idstring

SELECT examples

Gets information about the specified site network service.

SELECT
id,
name,
desiredStateConfigurationGroupValueReferences,
identity,
lastStateConfigurationGroupValueReferences,
lastStateNetworkServiceDesignVersionName,
location,
managedResourceGroupConfiguration,
networkServiceDesignGroupName,
networkServiceDesignVersionName,
networkServiceDesignVersionOfferingLocation,
networkServiceDesignVersionResourceReference,
provisioningState,
publisherName,
publisherScope,
siteReference,
sku,
systemData,
tags,
type
FROM azure_extras.hybrid_network.site_network_services
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND site_network_service_name = '{{ site_network_service_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a network site.

INSERT INTO azure_extras.hybrid_network.site_network_services (
tags,
location,
properties,
identity,
sku,
resource_group_name,
site_network_service_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ identity }}',
'{{ sku }}',
'{{ resource_group_name }}',
'{{ site_network_service_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Updates a site update tags.

UPDATE azure_extras.hybrid_network.site_network_services
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND site_network_service_name = '{{ site_network_service_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type;

REPLACE examples

Creates or updates a network site.

REPLACE azure_extras.hybrid_network.site_network_services
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
identity = '{{ identity }}',
sku = '{{ sku }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND site_network_service_name = '{{ site_network_service_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Deletes the specified site network service.

DELETE FROM azure_extras.hybrid_network.site_network_services
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND site_network_service_name = '{{ site_network_service_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;