Skip to main content

profiles

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

Overview​

Nameprofiles
TypeResource
Idazure.traffic_manager.profiles

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}.
namestringThe name of the resource.
allowedEndpointRecordTypesarrayThe list of allowed endpoint record types.
dnsConfigobjectThe DNS settings of the Traffic Manager profile.
endpointsarrayThe list of endpoints in the Traffic Manager profile.
locationstringThe Azure Region where the resource lives.
maxReturnintegerMaximum number of endpoints to be returned for MultiValue routing type.
monitorConfigobjectThe endpoint monitoring settings of the Traffic Manager profile.
profileStatusstringThe status of the Traffic Manager profile. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
recordTypestringWhen record type is set, a traffic manager profile will allow only endpoints that match this type. Known values are: "A", "AAAA", and "CNAME". (A, AAAA, CNAME)
tagsobjectResource tags.
trafficRoutingMethodstringThe traffic routing method of the Traffic Manager profile. Known values are: "Performance", "Priority", "Weighted", "Geographic", "MultiValue", and "Subnet". (Performance, Priority, Weighted, Geographic, MultiValue, Subnet)
trafficViewEnrollmentStatusstringIndicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage profile. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
typestringThe type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, profile_name, subscription_idGets a Traffic Manager profile.
list_by_resource_groupselectresource_group_name, subscription_idLists all Traffic Manager profiles within a resource group.
list_by_subscriptionselectsubscription_idLists all Traffic Manager profiles within a subscription.
check_traffic_manager_relative_dns_name_availabilityselectChecks the availability of a Traffic Manager Relative DNS name.
create_or_updateinsertresource_group_name, profile_name, subscription_idCreate or update a Traffic Manager profile.
updateupdateresource_group_name, profile_name, subscription_idUpdate a Traffic Manager profile.
create_or_updatereplaceresource_group_name, profile_name, subscription_idCreate or update a Traffic Manager profile.
deletedeleteresource_group_name, profile_name, subscription_idDeletes a Traffic Manager profile.
check_traffic_manager_name_availability_v2execsubscription_idChecks the availability of a Traffic Manager Relative DNS name.

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
profile_namestringThe name of the Traffic Manager profile. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples​

Gets a Traffic Manager profile.

SELECT
id,
name,
allowedEndpointRecordTypes,
dnsConfig,
endpoints,
location,
maxReturn,
monitorConfig,
profileStatus,
recordType,
tags,
trafficRoutingMethod,
trafficViewEnrollmentStatus,
type
FROM azure.traffic_manager.profiles
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND profile_name = '{{ profile_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples​

Create or update a Traffic Manager profile.

INSERT INTO azure.traffic_manager.profiles (
id,
name,
type,
tags,
location,
properties,
resource_group_name,
profile_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ name }}',
'{{ type }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ profile_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
tags,
type
;

UPDATE examples​

Update a Traffic Manager profile.

UPDATE azure.traffic_manager.profiles
SET
id = '{{ id }}',
name = '{{ name }}',
type = '{{ type }}',
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

REPLACE examples​

Create or update a Traffic Manager profile.

REPLACE azure.traffic_manager.profiles
SET
id = '{{ id }}',
name = '{{ name }}',
type = '{{ type }}',
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

DELETE examples​

Deletes a Traffic Manager profile.

DELETE FROM azure.traffic_manager.profiles
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods​

Checks the availability of a Traffic Manager Relative DNS name.

EXEC azure.traffic_manager.profiles.check_traffic_manager_name_availability_v2
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"name": "{{ name }}",
"type": "{{ type }}"
}'
;