Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Microsoft.Compute/disks]: "securityDataUri" missing in "CreationData" #2385

Open
1 task done
kamalca opened this issue Dec 6, 2024 · 0 comments
Open
1 task done

Comments

@kamalca
Copy link

kamalca commented Dec 6, 2024

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:

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)

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

  • I have read the troubleshooting guide and looked for duplicates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant