Azure / Azure/bicep-types-az

Microsoft.LoadTestService loadTests: It's not possible to use 'existing' resource references for encryption properties

Open
#1,987 12 comments 0 reactions 0 assignees View on GitHub
Needs: Triage :mag:
Dominant language
TypeScript
Stars
108
Forks
44
Avg merge
18h 53m
Merged PRs (30d)
29

Description

**Bicep version**
Bicep CLI version 0.23.1

**Describe the bug**
My attempt to add encryption to a load test template failed as its encryption property does not allow me to use 'existing' resource references.

As soon as any of the properties are not a direct string reference, but for example an output of an 'existing' key vault resource reference, the template starts failing with an error such as:

![image](https://github.com/Azure/bicep/assets/38246040/1ea65e09-bbd3-4866-a394-f9d6093bf69e)

**To Reproduce**
Try to deploy using this [template](https://github.com/sebassem/bicep-registry-modules/blob/avm-load-test-service/avm/res/load-test-service/load-test/tests/e2e/user-assigned-cmk-encryption/main.test.bicep)

**Additional context**
Similar to Azure/bicep#7066

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked user-assigned-cmk-encryption main.test.bicep template and compare the failure with the behavior described in Azure/bicep#7066. Trace the Microsoft.LoadTestService loadTests encryption type handling; done means a template can use values produced by an existing Key Vault resource and deploy successfully.

Written by the indexing model from the issue text.

Assessment

Domain
cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.