Ejemplo n.º 1
0
 /// <summary>
 /// Creates or updates a volume resource.
 /// </summary>
 /// <remarks>
 /// Creates a volume resource with the specified name, description and
 /// properties. If a volume resource with the same name exists, then it is
 /// updated with the specified description and properties.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Azure resource group name
 /// </param>
 /// <param name='volumeResourceName'>
 /// The identity of the volume.
 /// </param>
 /// <param name='volumeResourceDescription'>
 /// Description for creating a Volume resource.
 /// </param>
 public static VolumeResourceDescription Create(this IVolumeOperations operations, string resourceGroupName, string volumeResourceName, VolumeResourceDescription volumeResourceDescription)
 {
     return(operations.CreateAsync(resourceGroupName, volumeResourceName, volumeResourceDescription).GetAwaiter().GetResult());
 }