You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CreateOption "ImportSecure" creates a disk from a VHD and VMGS files in blob storage. The VMGS file should be passed in through "securityDataUri" propoerty.
I get a warning:
The property "securityDataUri" is not allowed on objects of type "CreationData". Permissible properties include "galleryImageReference", "imageReference", "logicalSectorSize", "sourceResourceId", "uploadSizeBytes". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.bicep[BCP037](https://aka.ms/bicep/core-diagnostics#BCP037)
Resource Type
Microsoft.Compute/disks
Api Version
2021-04-01
Issue Type
Missing property(s)
Other Notes
CreateOption "ImportSecure" creates a disk from a VHD and VMGS files in blob storage. The VMGS file should be passed in through "securityDataUri" propoerty.
I get a warning:
Bicep Repro
resource nodes_disk 'Microsoft.Compute/disks@2021-04-01' = [for i in range(0, node_count): if (isCvm(nodes[i])) {
name: '${nodes[i].name}-disk'
tags: tags
location: location
sku: {
name: 'Standard_LRS'
}
properties: {
osType: 'Linux'
hyperVGeneration: 'V${nodes[i].hyperv_generation}'
securityProfile: {
securityType: 'ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey'
}
creationData: {
createOption: 'ImportSecure'
storageAccountId: resourceId(shared_resource_group_name, 'Microsoft.Storage/storageAccounts', vhd_storage_name)
securityDataUri: nodes[i].vhd.vmgs_path
sourceUri: nodes[i].vhd.vhd_path
}
}
zones: (use_availability_zones ? availability_zones : null)
}]
Confirm
The text was updated successfully, but these errors were encountered: