Share via


SiteManagerExtensions.CreateOrUpdateSitesByServiceGroupAsync Method

Definition

create or update Site at SG scope

  • Request Path: /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites/{siteName}
  • Operation Id: SitesByServiceGroup_CreateOrUpdate
  • Default Api Version: 2025-03-01-preview
public static System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SiteManager.EdgeSiteResource>> CreateOrUpdateSitesByServiceGroupAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.EdgeSiteData data, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateSitesByServiceGroupAsync : Azure.ResourceManager.Resources.TenantResource * Azure.WaitUntil * string * string * Azure.ResourceManager.SiteManager.EdgeSiteData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SiteManager.EdgeSiteResource>>
<Extension()>
Public Function CreateOrUpdateSitesByServiceGroupAsync (tenantResource As TenantResource, waitUntil As WaitUntil, servicegroupName As String, siteName As String, data As EdgeSiteData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of EdgeSiteResource))

Parameters

tenantResource
TenantResource

The TenantResource instance the method will execute against.

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.

servicegroupName
String

The name of the service group.

siteName
String

The name of the site.

data
EdgeSiteData

The properties of the site.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

servicegroupName or siteName is an empty string, and was expected to be non-empty.

tenantResource, servicegroupName, siteName or data is null.

Applies to