Udostępnij za pośrednictwem


ProfileCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.ProfileResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string profileName, Azure.ResourceManager.Cdn.ProfileData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Cdn.ProfileData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.ProfileResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Cdn.ProfileData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.ProfileResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, profileName As String, data As ProfileData, Optional cancellationToken As CancellationToken = Nothing) As 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