ResourceGroupResource.UpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Resource groups can be updated through a simple PATCH operation to a group address. The format of the request is the same as that for creating a resource group. If a field is unspecified, the current value is retained.
- Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}
- Operation Id: ResourceGroups_Update
- Default Api Version: 2022-09-01
- Resource: ResourceGroupResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.ResourceGroupResource>> UpdateAsync (Azure.ResourceManager.Resources.Models.ResourceGroupPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.Resources.Models.ResourceGroupPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.ResourceGroupResource>>
override this.UpdateAsync : Azure.ResourceManager.Resources.Models.ResourceGroupPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.ResourceGroupResource>>
Public Overridable Function UpdateAsync (patch As ResourceGroupPatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ResourceGroupResource))
Parameters
- patch
- ResourceGroupPatch
Parameters supplied to update a resource group.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
patch
is null.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
Azure SDK for .NET