/// <summary> /// Create or update a Traffic Manager profile. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group containing the Traffic Manager profile. /// </param> /// <param name='profileName'> /// The name of the Traffic Manager profile. /// </param> /// <param name='parameters'> /// The Traffic Manager profile parameters supplied to the CreateOrUpdate /// operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Profile> CreateOrUpdateAsync(this IProfilesOperations operations, string resourceGroupName, string profileName, Profile parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, profileName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }