Skip to main content

services

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

Overview

Nameservices
TypeResource
Idazure.mobile_network.services

Fields

NameDatatypeDescription
locationtextThe geo-location where the resource lives
mobileNetworkNametextfield from the properties object
pcc_rulestextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
service_precedencetextfield from the properties object
service_qos_policytextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTmobileNetworkName, resourceGroupName, serviceName, subscriptionIdGets information about the specified service.
list_by_mobile_networkSELECTmobileNetworkName, resourceGroupName, subscriptionIdGets all the services in a mobile network.
create_or_updateINSERTmobileNetworkName, resourceGroupName, serviceName, subscriptionId, data__propertiesCreates or updates a service. Must be created in the same location as its parent mobile network.
deleteDELETEmobileNetworkName, resourceGroupName, serviceName, subscriptionIdDeletes the specified service.
update_tagsEXECmobileNetworkName, resourceGroupName, serviceName, subscriptionIdUpdates service tags.

SELECT examples

Gets all the services in a mobile network.

SELECT
location,
mobileNetworkName,
pcc_rules,
provisioning_state,
resourceGroupName,
serviceName,
service_precedence,
service_qos_policy,
subscriptionId,
tags
FROM azure.mobile_network.vw_services
WHERE mobileNetworkName = '{{ mobileNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified services resource.

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