DiskEncryptionSetCollection.CreateOrUpdate 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.
Creates or updates a disk encryption set
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}
- Operation Id: DiskEncryptionSets_CreateOrUpdate
- Default Api Version: 2024-03-02
- Resource: DiskEncryptionSetResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.DiskEncryptionSetResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string diskEncryptionSetName, Azure.ResourceManager.Compute.DiskEncryptionSetData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Compute.DiskEncryptionSetData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.DiskEncryptionSetResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Compute.DiskEncryptionSetData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.DiskEncryptionSetResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, diskEncryptionSetName As String, data As DiskEncryptionSetData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of DiskEncryptionSetResource)
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- diskEncryptionSetName
- String
The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
disk encryption set object supplied in the body of the Put disk encryption set operation.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
diskEncryptionSetName
is an empty string, and was expected to be non-empty.
diskEncryptionSetName
or data
is null.