Azure / azure-functions-python-worker

Python worker for Azure Functions.
http://aka.ms/azurefunctions
MIT License
331 stars 100 forks source link

[PROD] GET templates v2 API needs to get updated to not include default values for connection string properties #1463

Open etheodoridou opened 4 months ago

etheodoridou commented 4 months ago

Create type v1 or v2: v2 App kind (linux/windows, code/container): linux If code, which runtime stack: python/node Create template: Queue trigger, ServiceBus Queue trigger, ServiceBus Topic trigger, Blob trigger, EventHub trigger, CosmosDB trigger, EventGrid trigger

Issues: The connection string properties for any resource type have a default string (ex. CosmosDbConnectionString). This string is not a valid option (as in it is not one of the user's database/event hub/service bus etc connection strings) and it prevents us from picking a value from the list we get based on the resource type. In template v1, the default value for resource types is undefined and it works correctly.

This issue reproduces in production in both the new/old function create experience.

shimedh commented 4 months ago

@fabiocav / @soninaren / @vrdmr Can you look into fixing this?

liliankasem commented 2 months ago

@vrdmr can your team look into updating python templates?