다음을 통해 공유


ProfileCollection.CreateOrUpdateAsync Method

Definition

Creates a new Azure Front Door Standard or Azure Front Door Premium or CDN profile with a profile name under the specified subscription and resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}
  • Operation Id: Profiles_Create
  • Default Api Version: 2024-02-01
  • Resource: ProfileResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.ProfileResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string profileName, Azure.ResourceManager.Cdn.ProfileData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Cdn.ProfileData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.ProfileResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Cdn.ProfileData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.ProfileResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, profileName As String, data As ProfileData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ProfileResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

profileName
String

Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is unique within the resource group.

data
ProfileData

Profile properties needed to create a new profile.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

profileName is an empty string, and was expected to be non-empty.

profileName or data is null.

Applies to