Azure-Samples / azure-functions-flex-consumption-samples

Samples for Azure Functions Flex Consumption
MIT License
21 stars 17 forks source link

Deployment fails with "identityClientId" is not allowed on objects of type "params" #18

Closed paulbatum closed 1 month ago

paulbatum commented 1 month ago

This issue is for a:

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Just run azd up on the starter http template

Any log messages given by the failure

ERROR: error executing step command 'provision': initializing provisioning manager: failed to compile bicep template: failed running bicep build: exit code: 1, stdout: , stderr: D:\code\long-executions\dotnet\infra\app\processor.bicep(40,5) : Error BCP037: The property "identityClientId" is not allowed on objects of type "params". Permissible properties include "kind". D:\code\long-executions\dotnet\infra\main.bicep(51,18) : Error BCP104: The referenced module has errors. D:\code\long-executions\dotnet\infra\app\vnet.bicep(53,15) : Warning use-resource-id-functions: If property "id" represents a resource ID, it must use a symbolic resource reference, be a parameter or start with one of these functions: extensionResourceId, guid, if, managementGroupResourceId, reference, resourceId, subscription, subscriptionResourceId, tenantResourceId. [https://aka.ms/bicep/linter/use-resource-id-functions]

paulbatum commented 1 month ago

I think this commit removed a param that is unused: https://github.com/Azure-Samples/azure-functions-flex-consumption-samples/commit/6f646a2ae242d49e7b991c87fc22c2e9836730d2

But the processor wasn't updated? https://github.com/Azure-Samples/azure-functions-flex-consumption-samples/blob/main/starters/http/dotnet/infra/app/processor.bicep#L40

Edit: I removed that line in processor.bicep and that fixed the issue.