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
Describe the bug
Using resourceTypedParamsAndOutputs I have a template and a couple of modules which utilize parameters of type resource. It works for all other resource types I use except for the Application Insights resource Microsoft.Insights/components@2020-02-02 which generates the following issue:
'The template resource 'Microsoft.Web/sites/foo-func-test' reference to 'Microsoft.Insights/components/foo-appi-test' requires an API version. Please see https://aka.ms/arm-syntax for usage details.'.
To Reproduce
The following is a shortened version of the pipeline:
jeskew
changed the title
Using Microsoft.Insights/components as resource parameter generates invalid template
Using Microsoft.Insights/components as resource-typed parameter generates invalid template
Jun 14, 2024
Bicep version
Bicep CLI version 0.28.1 (ba1e9f8)
Describe the bug
Using
resourceTypedParamsAndOutputs
I have a template and a couple of modules which utilize parameters of typeresource
. It works for all other resource types I use except for the Application Insights resourceMicrosoft.Insights/components@2020-02-02
which generates the following issue:To Reproduce
The following is a shortened version of the pipeline:
main.bicep
functionApp.bicep
applicationInsights.bicep
Additional context
Other modules needed for provisioning app service plans and log analytics workspace:
Doing the following adjustment to
functionApp.bicep
seems to work however:The text was updated successfully, but these errors were encountered: