Azure / Azure/bicep-types-az

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

Open
#2,385 0 comments 0 reactions 0 assignees View on GitHub
inaccuracy
Dominant language
TypeScript
Stars
108
Forks
44
Avg merge
18h 53m
Merged PRs (30d)
29

Description

### 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

- [x] I have read the troubleshooting guide and looked for duplicates.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the Microsoft.Compute/disks 2021-04-01 CreationData definition in the type definitions and compare its permitted properties with the Azure API behavior described. Done means the securityDataUri property is accepted for ImportSecure alongside the other listed CreationData properties.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, typescript
Domain
cloud, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.