Skip to main content

diagnostics_packages

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

Overview

Namediagnostics_packages
TypeResource
Idazure.mobile_network.diagnostics_packages

Fields

NameDatatypeDescription
diagnosticsPackageNametextfield from the properties object
packetCoreControlPlaneNametextfield from the properties object
provisioning_statetextfield from the properties object
reasontextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdiagnosticsPackageName, packetCoreControlPlaneName, resourceGroupName, subscriptionIdGets information about the specified diagnostics package.
list_by_packet_core_control_planeSELECTpacketCoreControlPlaneName, resourceGroupName, subscriptionIdLists all the diagnostics packages under a packet core control plane.
create_or_updateINSERTdiagnosticsPackageName, packetCoreControlPlaneName, resourceGroupName, subscriptionIdCreates or updates a diagnostics package.
deleteDELETEdiagnosticsPackageName, packetCoreControlPlaneName, resourceGroupName, subscriptionIdDeletes the specified diagnostics package.

SELECT examples

Lists all the diagnostics packages under a packet core control plane.

SELECT
diagnosticsPackageName,
packetCoreControlPlaneName,
provisioning_state,
reason,
resourceGroupName,
status,
subscriptionId
FROM azure.mobile_network.vw_diagnostics_packages
WHERE packetCoreControlPlaneName = '{{ packetCoreControlPlaneName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.mobile_network.diagnostics_packages (
diagnosticsPackageName,
packetCoreControlPlaneName,
resourceGroupName,
subscriptionId
)
SELECT
'{{ diagnosticsPackageName }}',
'{{ packetCoreControlPlaneName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}'
;

DELETE example

Deletes the specified diagnostics_packages resource.

/*+ delete */
DELETE FROM azure.mobile_network.diagnostics_packages
WHERE diagnosticsPackageName = '{{ diagnosticsPackageName }}'
AND packetCoreControlPlaneName = '{{ packetCoreControlPlaneName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';