Udostępnij za pośrednictwem


ResourceOperationsExtensions.CreateOrUpdateAsync Method

Definition

Create a resource.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Resources.Models.ResourceCreateOrUpdateResult> CreateOrUpdateAsync (this Microsoft.Azure.Management.Resources.IResourceOperations operations, string resourceGroupName, Microsoft.Azure.ResourceIdentity identity, Microsoft.Azure.Management.Resources.Models.GenericResource parameters);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Resources.IResourceOperations * string * Microsoft.Azure.ResourceIdentity * Microsoft.Azure.Management.Resources.Models.GenericResource -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Resources.Models.ResourceCreateOrUpdateResult>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IResourceOperations, resourceGroupName As String, identity As ResourceIdentity, parameters As GenericResource) As Task(Of ResourceCreateOrUpdateResult)

Parameters

operations
IResourceOperations

Reference to the Microsoft.Azure.Management.Resources.IResourceOperations.

resourceGroupName
String

Required. The name of the resource group. The name is case insensitive.

identity
Microsoft.Azure.ResourceIdentity

Required. Resource identity.

parameters
GenericResource

Required. Create or update resource parameters.

Returns

Resource information.

Applies to