Skip to main content

sim_groups

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

Overview

Namesim_groups
TypeResource
Idazure.mobile_network.sim_groups

Fields

The following fields are returned by SELECT queries:

Request successful. The operation returns the resulting SIM group resource.

NameDatatypeDescription
identityobjectThe identity used to retrieve the encryption key from Azure key vault.
locationstringThe geo-location where the resource lives
propertiesobjectSIM group Properties.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, simGroupNameGets information about the specified SIM group.
list_by_resource_groupselectresourceGroupName, subscriptionIdGets all the SIM groups in a resource group.
list_by_subscriptionselectsubscriptionIdGets all the SIM groups in a subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, simGroupName, data__propertiesCreates or updates a SIM group.
deletedeletesubscriptionId, resourceGroupName, simGroupNameDeletes the specified SIM group.
update_tagsexecsubscriptionId, resourceGroupName, simGroupNamePatch SIM group resource.

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.
simGroupNamestringThe name of the SIM Group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Gets information about the specified SIM group.

SELECT
identity,
location,
properties,
tags
FROM azure.mobile_network.sim_groups
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND simGroupName = '{{ simGroupName }}' -- required
;

INSERT examples

Creates or updates a SIM group.

INSERT INTO azure.mobile_network.sim_groups (
data__properties,
data__identity,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
simGroupName
)
SELECT
'{{ properties }}' /* required */,
'{{ identity }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ simGroupName }}'
RETURNING
identity,
location,
properties,
tags
;

DELETE examples

Deletes the specified SIM group.

DELETE FROM azure.mobile_network.sim_groups
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND simGroupName = '{{ simGroupName }}' --required
;

Lifecycle Methods

Patch SIM group resource.

EXEC azure.mobile_network.sim_groups.update_tags 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@simGroupName='{{ simGroupName }}' --required
@@json=
'{
"identity": "{{ identity }}",
"tags": "{{ tags }}"
}'
;