Share via


SiteManagerExtensions.UpdateSitesByServiceGroupAsync Method

Definition

update Site at SG scope

  • Request Path: /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites/{siteName}
  • Operation Id: SitesByServiceGroup_Update
  • Default Api Version: 2025-03-01-preview
<item>MockingTo mock this method, please mock UpdateSitesByServiceGroup(String, String, EdgeSitePatch, CancellationToken) instead.</item>
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SiteManager.EdgeSiteResource>> UpdateSitesByServiceGroupAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.Models.EdgeSitePatch patch, System.Threading.CancellationToken cancellationToken = default);
static member UpdateSitesByServiceGroupAsync : Azure.ResourceManager.Resources.TenantResource * string * string * Azure.ResourceManager.SiteManager.Models.EdgeSitePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SiteManager.EdgeSiteResource>>
<Extension()>
Public Function UpdateSitesByServiceGroupAsync (tenantResource As TenantResource, servicegroupName As String, siteName As String, patch As EdgeSitePatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of EdgeSiteResource))

Parameters

tenantResource
TenantResource

The TenantResource instance the method will execute against.

servicegroupName
String

The name of the service group.

siteName
String

The name of the site.

patch
EdgeSitePatch

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 patch is null.

Applies to