Description | : Creates or updates a disk. |
Reference | : Link ¶ |
⚼ Request
PUT:
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}
{
subscriptionId:
string
,
resourceGroupName:
string
,
diskName:
string
,
api-version:
string
,
disk:
}
{
,
managedBy:
string
,
managedByExtended:
[
,
string
,
]
sku:
{
,
name:
enum
,
tier:
string
,
}
zones:
[
,
string
,
]
extendedLocation:
{
,
name:
string
,
type:
enum
,
}
properties:
}
{
,
timeCreated:
string
,
osType:
enum
,
hyperVGeneration:
enum
,
purchasePlan:
{
,
name:
string
,
publisher:
string
,
product:
string
,
promotionCode:
string
,
}
supportedCapabilities:
{
,
diskControllerTypes:
string
,
acceleratedNetwork:
boolean
,
architecture:
enum
,
supportedSecurityOption:
enum
,
}
creationData:
{
,
createOption:
enum
,
storageAccountId:
string
,
imageReference:
{
,
id:
string
,
sharedGalleryImageId:
string
,
communityGalleryImageId:
string
,
lun:
integer
,
}
galleryImageReference:
{
,
id:
string
,
sharedGalleryImageId:
string
,
communityGalleryImageId:
string
,
lun:
integer
,
}
sourceUri:
string
,
sourceResourceId:
string
,
sourceUniqueId:
string
,
uploadSizeBytes:
integer
,
logicalSectorSize:
integer
,
securityDataUri:
string
,
performancePlus:
boolean
,
elasticSanResourceId:
string
,
provisionedBandwidthCopySpeed:
enum
,
instantAccessDurationMinutes:
integer
,
securityMetadataUri:
string
,
}
diskSizeGB:
integer
,
diskSizeBytes:
integer
,
uniqueId:
string
,
encryptionSettingsCollection:
{
,
enabled:
boolean
,
encryptionSettings:
[
]
,
{
,
diskEncryptionKey:
{
,
sourceVault:
{
,
id:
string
,
}
secretUrl:
string
,
}
keyEncryptionKey:
}
{
,
sourceVault:
{
,
id:
string
,
}
keyUrl:
string
,
}
encryptionSettingsVersion:
string
,
}
provisioningState:
string
,
diskIOPSReadWrite:
integer
,
diskMBpsReadWrite:
integer
,
diskIOPSReadOnly:
integer
,
diskMBpsReadOnly:
integer
,
diskState:
enum
,
encryption:
{
,
diskEncryptionSetId:
string
,
type:
enum
,
}
maxShares:
integer
,
shareInfo:
[
]
,
{
,
vmUri:
string
,
}
networkAccessPolicy:
enum
,
diskAccessId:
string
,
burstingEnabledTime:
string
,
tier:
string
,
burstingEnabled:
boolean
,
propertyUpdatesInProgress:
{
,
targetTier:
string
,
}
supportsHibernation:
boolean
,
securityProfile:
{
,
securityType:
enum
,
secureVMDiskEncryptionSetId:
string
,
}
completionPercent:
number
,
publicNetworkAccess:
enum
,
dataAccessAuthMode:
enum
,
optimizedForFrequentAttach:
boolean
,
LastOwnershipUpdateTime:
string
,
availabilityPolicy:
}
{
,
actionOnDiskDelay:
enum
,
}
⚐ Response (200)
{
managedBy:
string
,
managedByExtended:
[
,
string
,
]
sku:
{
,
name:
enum
,
tier:
string
,
}
zones:
[
,
string
,
]
extendedLocation:
{
,
name:
string
,
type:
enum
,
}
properties:
}
{
,
timeCreated:
string
,
osType:
enum
,
hyperVGeneration:
enum
,
purchasePlan:
{
,
name:
string
,
publisher:
string
,
product:
string
,
promotionCode:
string
,
}
supportedCapabilities:
{
,
diskControllerTypes:
string
,
acceleratedNetwork:
boolean
,
architecture:
enum
,
supportedSecurityOption:
enum
,
}
creationData:
{
,
createOption:
enum
,
storageAccountId:
string
,
imageReference:
{
,
id:
string
,
sharedGalleryImageId:
string
,
communityGalleryImageId:
string
,
lun:
integer
,
}
galleryImageReference:
{
,
id:
string
,
sharedGalleryImageId:
string
,
communityGalleryImageId:
string
,
lun:
integer
,
}
sourceUri:
string
,
sourceResourceId:
string
,
sourceUniqueId:
string
,
uploadSizeBytes:
integer
,
logicalSectorSize:
integer
,
securityDataUri:
string
,
performancePlus:
boolean
,
elasticSanResourceId:
string
,
provisionedBandwidthCopySpeed:
enum
,
instantAccessDurationMinutes:
integer
,
securityMetadataUri:
string
,
}
diskSizeGB:
integer
,
diskSizeBytes:
integer
,
uniqueId:
string
,
encryptionSettingsCollection:
{
,
enabled:
boolean
,
encryptionSettings:
[
]
,
{
,
diskEncryptionKey:
{
,
sourceVault:
{
,
id:
string
,
}
secretUrl:
string
,
}
keyEncryptionKey:
}
{
,
sourceVault:
{
,
id:
string
,
}
keyUrl:
string
,
}
encryptionSettingsVersion:
string
,
}
provisioningState:
string
,
diskIOPSReadWrite:
integer
,
diskMBpsReadWrite:
integer
,
diskIOPSReadOnly:
integer
,
diskMBpsReadOnly:
integer
,
diskState:
enum
,
encryption:
{
,
diskEncryptionSetId:
string
,
type:
enum
,
}
maxShares:
integer
,
shareInfo:
[
]
,
{
,
vmUri:
string
,
}
networkAccessPolicy:
enum
,
diskAccessId:
string
,
burstingEnabledTime:
string
,
tier:
string
,
burstingEnabled:
boolean
,
propertyUpdatesInProgress:
{
,
targetTier:
string
,
}
supportsHibernation:
boolean
,
securityProfile:
{
,
securityType:
enum
,
secureVMDiskEncryptionSetId:
string
,
}
completionPercent:
number
,
publicNetworkAccess:
enum
,
dataAccessAuthMode:
enum
,
optimizedForFrequentAttach:
boolean
,
LastOwnershipUpdateTime:
string
,
availabilityPolicy:
}
{
,
actionOnDiskDelay:
enum
,
}
⚐ Response (202)
{
managedBy:
string
,
managedByExtended:
[
,
string
,
]
sku:
{
,
name:
enum
,
tier:
string
,
}
zones:
[
,
string
,
]
extendedLocation:
{
,
name:
string
,
type:
enum
,
}
properties:
}
{
,
timeCreated:
string
,
osType:
enum
,
hyperVGeneration:
enum
,
purchasePlan:
{
,
name:
string
,
publisher:
string
,
product:
string
,
promotionCode:
string
,
}
supportedCapabilities:
{
,
diskControllerTypes:
string
,
acceleratedNetwork:
boolean
,
architecture:
enum
,
supportedSecurityOption:
enum
,
}
creationData:
{
,
createOption:
enum
,
storageAccountId:
string
,
imageReference:
{
,
id:
string
,
sharedGalleryImageId:
string
,
communityGalleryImageId:
string
,
lun:
integer
,
}
galleryImageReference:
{
,
id:
string
,
sharedGalleryImageId:
string
,
communityGalleryImageId:
string
,
lun:
integer
,
}
sourceUri:
string
,
sourceResourceId:
string
,
sourceUniqueId:
string
,
uploadSizeBytes:
integer
,
logicalSectorSize:
integer
,
securityDataUri:
string
,
performancePlus:
boolean
,
elasticSanResourceId:
string
,
provisionedBandwidthCopySpeed:
enum
,
instantAccessDurationMinutes:
integer
,
securityMetadataUri:
string
,
}
diskSizeGB:
integer
,
diskSizeBytes:
integer
,
uniqueId:
string
,
encryptionSettingsCollection:
{
,
enabled:
boolean
,
encryptionSettings:
[
]
,
{
,
diskEncryptionKey:
{
,
sourceVault:
{
,
id:
string
,
}
secretUrl:
string
,
}
keyEncryptionKey:
}
{
,
sourceVault:
{
,
id:
string
,
}
keyUrl:
string
,
}
encryptionSettingsVersion:
string
,
}
provisioningState:
string
,
diskIOPSReadWrite:
integer
,
diskMBpsReadWrite:
integer
,
diskIOPSReadOnly:
integer
,
diskMBpsReadOnly:
integer
,
diskState:
enum
,
encryption:
{
,
diskEncryptionSetId:
string
,
type:
enum
,
}
maxShares:
integer
,
shareInfo:
[
]
,
{
,
vmUri:
string
,
}
networkAccessPolicy:
enum
,
diskAccessId:
string
,
burstingEnabledTime:
string
,
tier:
string
,
burstingEnabled:
boolean
,
propertyUpdatesInProgress:
{
,
targetTier:
string
,
}
supportsHibernation:
boolean
,
securityProfile:
{
,
securityType:
enum
,
secureVMDiskEncryptionSetId:
string
,
}
completionPercent:
number
,
publicNetworkAccess:
enum
,
dataAccessAuthMode:
enum
,
optimizedForFrequentAttach:
boolean
,
LastOwnershipUpdateTime:
string
,
availabilityPolicy:
}
{
,
actionOnDiskDelay:
enum
,
}