/// <summary> /// Updates (patches) a disk. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='diskName'> /// The name of the managed disk that is being created. The name can't be /// changed after the disk is created. Supported characters for the name are /// a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. /// </param> /// <param name='disk'> /// Disk object supplied in the body of the Patch disk operation. /// </param> public static Disk Update(this IDisksOperations operations, string resourceGroupName, string diskName, DiskUpdate disk) { return(operations.UpdateAsync(resourceGroupName, diskName, disk).GetAwaiter().GetResult()); }
/// <summary> /// Modify properties of disks. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='labName'> /// The name of the lab. /// </param> /// <param name='userName'> /// The name of the user profile. /// </param> /// <param name='name'> /// The name of the disk. /// </param> /// <param name='disk'> /// A Disk. /// </param> public static Disk Update(this IDisksOperations operations, string resourceGroupName, string labName, string userName, string name, DiskFragment disk) { return(operations.UpdateAsync(resourceGroupName, labName, userName, name, disk).GetAwaiter().GetResult()); }