Skip to main content

community_trainings

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

Overview

Namecommunity_trainings
TypeResource
Idazure_extras.community_training.community_trainings

Fields

NameDatatypeDescription
communityTrainingNametextfield from the properties object
disaster_recovery_enabledtextfield from the properties object
identity_configurationtextfield from the properties object
locationtextThe geo-location where the resource lives
portal_admin_email_addresstextfield from the properties object
portal_nametextfield from the properties object
portal_owner_email_addresstextfield from the properties object
portal_owner_organization_nametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextThe resource model definition representing SKU
subscriptionIdtextfield from the properties object
tagstextResource tags.
zone_redundancy_enabledtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcommunityTrainingName, resourceGroupName, subscriptionIdGet a CommunityTraining
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList CommunityTraining resources by resource group
list_by_subscriptionSELECTsubscriptionIdList CommunityTraining resources by subscription ID
createINSERTcommunityTrainingName, resourceGroupName, subscriptionIdCreate a CommunityTraining
deleteDELETEcommunityTrainingName, resourceGroupName, subscriptionIdDelete a CommunityTraining
updateUPDATEcommunityTrainingName, resourceGroupName, subscriptionIdUpdate a CommunityTraining

SELECT examples

List CommunityTraining resources by subscription ID

SELECT
communityTrainingName,
disaster_recovery_enabled,
identity_configuration,
location,
portal_admin_email_address,
portal_name,
portal_owner_email_address,
portal_owner_organization_name,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
tags,
zone_redundancy_enabled
FROM azure_extras.community_training.vw_community_trainings
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.community_training.community_trainings (
communityTrainingName,
resourceGroupName,
subscriptionId,
properties,
sku,
tags,
location
)
SELECT
'{{ communityTrainingName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ sku }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a community_trainings resource.

/*+ update */
UPDATE azure_extras.community_training.community_trainings
SET
sku = '{{ sku }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
communityTrainingName = '{{ communityTrainingName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified community_trainings resource.

/*+ delete */
DELETE FROM azure_extras.community_training.community_trainings
WHERE communityTrainingName = '{{ communityTrainingName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';