Skip to main content

profiles

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

Overview

Nameprofiles
TypeResource
Idazure.traffic_manager.profiles

Fields

NameDatatypeDescription
allowed_endpoint_record_typestextfield from the properties object
dns_configtextfield from the properties object
endpointstextfield from the properties object
locationtextThe geo-location where the resource lives
max_returntextfield from the properties object
monitor_configtextfield from the properties object
profileNametextfield from the properties object
profile_statustextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
traffic_routing_methodtextfield from the properties object
traffic_view_enrollment_statustextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTprofileName, resourceGroupName, subscriptionIdGets a Traffic Manager profile.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all Traffic Manager profiles within a resource group.
list_by_subscriptionSELECTsubscriptionIdLists all Traffic Manager profiles within a subscription.
create_or_updateINSERTprofileName, resourceGroupName, subscriptionIdCreate or update a Traffic Manager profile.
deleteDELETEprofileName, resourceGroupName, subscriptionIdDeletes a Traffic Manager profile.
updateUPDATEprofileName, resourceGroupName, subscriptionIdUpdate a Traffic Manager profile.
check_traffic_manager_name_availability_v2EXECsubscriptionIdChecks the availability of a Traffic Manager Relative DNS name.
check_traffic_manager_relative_dns_name_availabilityEXECChecks the availability of a Traffic Manager Relative DNS name.

SELECT examples

Lists all Traffic Manager profiles within a subscription.

SELECT
allowed_endpoint_record_types,
dns_config,
endpoints,
location,
max_return,
monitor_config,
profileName,
profile_status,
resourceGroupName,
subscriptionId,
tags,
traffic_routing_method,
traffic_view_enrollment_status
FROM azure.traffic_manager.vw_profiles
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.traffic_manager.profiles (
profileName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ profileName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a profiles resource.

/*+ update */
UPDATE azure.traffic_manager.profiles
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
location = '{{ location }}'
WHERE
profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified profiles resource.

/*+ delete */
DELETE FROM azure.traffic_manager.profiles
WHERE profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';