Skip to main content

sim_policies

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

Overview

Namesim_policies
TypeResource
Idazure.mobile_network.sim_policies

Fields

NameDatatypeDescription
default_slicetextfield from the properties object
locationtextThe geo-location where the resource lives
mobileNetworkNametextfield from the properties object
provisioning_statetextfield from the properties object
registration_timertextfield from the properties object
resourceGroupNametextfield from the properties object
rfsp_indextextfield from the properties object
simPolicyNametextfield from the properties object
site_provisioning_statetextfield from the properties object
slice_configurationstextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
ue_ambrtextfield from the properties object

Methods

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

SELECT examples

Gets all the SIM policies in a mobile network.

SELECT
default_slice,
location,
mobileNetworkName,
provisioning_state,
registration_timer,
resourceGroupName,
rfsp_index,
simPolicyName,
site_provisioning_state,
slice_configurations,
subscriptionId,
tags,
ue_ambr
FROM azure.mobile_network.vw_sim_policies
WHERE mobileNetworkName = '{{ mobileNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified sim_policies resource.

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