Skip to main content

sites

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

Overview

Namesites
TypeResource
Idazure.mobile_network.sites

Fields

NameDatatypeDescription
locationtextThe geo-location where the resource lives
mobileNetworkNametextfield from the properties object
network_functionstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
siteNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTmobileNetworkName, resourceGroupName, siteName, subscriptionIdGets information about the specified mobile network site.
list_by_mobile_networkSELECTmobileNetworkName, resourceGroupName, subscriptionIdLists all sites in the mobile network.
create_or_updateINSERTmobileNetworkName, resourceGroupName, siteName, subscriptionIdCreates or updates a mobile network site. Must be created in the same location as its parent mobile network.
deleteDELETEmobileNetworkName, resourceGroupName, siteName, subscriptionIdDeletes the specified mobile network site. This will also delete any network functions that are a part of this site.
update_tagsEXECmobileNetworkName, resourceGroupName, siteName, subscriptionIdUpdates site tags.

SELECT examples

Lists all sites in the mobile network.

SELECT
location,
mobileNetworkName,
network_functions,
provisioning_state,
resourceGroupName,
siteName,
subscriptionId,
tags
FROM azure.mobile_network.vw_sites
WHERE mobileNetworkName = '{{ mobileNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.mobile_network.sites (
mobileNetworkName,
resourceGroupName,
siteName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ mobileNetworkName }}',
'{{ resourceGroupName }}',
'{{ siteName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

DELETE example

Deletes the specified sites resource.

/*+ delete */
DELETE FROM azure.mobile_network.sites
WHERE mobileNetworkName = '{{ mobileNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}';