Open ogiel opened 2 months ago
@ogiel would you mind sharing the correlationId for this failure?
@anthony-c-martin not 100% which correlationId you mean but I get this when I try to deploy it through symbolic reference: x-ms-correlation-request-id: e96f04fb-88c1-4bb4-b27b-528d1ead356a
The deployment itself does not fail because it will not start. It says there is an InvalidTemplateDeployment (which is not the case when not using symbolic reference to the same ADT instance).
@ogiel we will follow up internally with the team who owns this API and get back to you.
/cc @stephaniezyen
@anthony-c-martin We are facing the same issue in Azure Verified Modules. Our validation workflow for the Digital Twins Module fails since a while, preventing us from publishing newer module versions into the Public Bicep Registry.
In our case, the EventGrid endpoint deploys fine, but EventHub and ServiceBus endpoints fail. Our last failed run: https://github.com/Azure/bicep-registry-modules/actions/runs/10653937501/job/29529750244#step:4:775
If necessary I can prepare a simplified repro-example.
This works if the Event Grid resource is also referenced symbolically to resolve the topic name, e.g.:
resource digitalTwins 'Microsoft.DigitalTwins/digitalTwinsInstances@2022-05-31' existing = {
name: digitalTwinsInstanceName
}
resource eventGridTopic 'Microsoft.EventGrid/topics@2022-06-15' existing = {
name: eventGridTopicName
}
resource endpoint 'Microsoft.DigitalTwins/digitalTwinsInstances/endpoints@2023-01-31' = {
parent: digitalTwins
name: endpointName
properties: {
authenticationType: 'KeyBased'
endpointType: 'EventGrid'
TopicEndpoint: eventGridTopic.properties.endpoint
accessKey1: '(PLACEHOLDER)'
accessKey2: '(PLACEHOLDER)'
}
}
Bicep version Bicep CLI version 0.15.31 (3ba6e06a8d)
Describe the bug Creating endpoints for Azure Digital Twins (ADT) by using symbolic links to an existing ADT instance does not work, but it does work when the ADT instance is created within the same deployment.
To Reproduce What works:
What does not work but is expected to work:
Additional context When using symbolic reference it throws the error: