-
Notifications
You must be signed in to change notification settings - Fork 450
Command func templates list
returns invalid templates
#2955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Seems like the once for python functions work as expected. |
The same problem occurs for the Durable functions Orchestrator template:
The correct template name turned out to be 'DurableFunctionsorchestration'. |
Still having this problem with Function Runtime Version: 4.11.2.19273 I found the correct template name at :
|
The list of templates returned by > func new --language C#
Select a number for template:
1. QueueTrigger
2. HttpTrigger
3. BlobTrigger
4. TimerTrigger
5. KafkaTrigger
6. KafkaOutput
7. DurableFunctionsOrchestration
8. SendGrid
9. EventHubTrigger
10. ServiceBusQueueTrigger
11. ServiceBusTopicTrigger
12. EventGridTrigger
13. CosmosDBTrigger
14. IotHubTrigger
Choose option: > func templates list --language C#
C# Templates:
Azure Blob Storage trigger
Azure Cosmos DB trigger
Durable Functions activity
Durable Functions HTTP starter
Durable Functions orchestrator
Azure Event Grid trigger
Azure Event Hub trigger
HTTP trigger
IoT Hub (Event Hub)
Azure Queue Storage trigger
RabbitMQ trigger
SendGrid
Azure Service Bus Queue trigger
Azure Service Bus Topic trigger
SignalR negotiate HTTP trigger
Timer trigger |
Great stuff @mcollier you saved my day. |
The same problem with Azure Service Bus Queue trigger, which is presented in "func templates list" Result
Writing D:\FunctionApp.vscode\extensions.json
Creating dotnet function... |
@mcollier Thanks, your tip saved a lot of time. |
Posting along for someone else new to Azure functions like me. I was able to pass the C# value posted from the list above by @mcollier . The tutorial command doesn't work like reported above. Microsoft tutorial: : https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=macos%2Cisolated-process%2Cnode-v4%2Cpython-v2%2Chttp-trigger%2Ccontainer-apps&pivots=programming-language-csharp That tutorial provides |
still have a proble with it
|
Run The C# templates listed by the |
The templates returned from
func templates list
are not valid as input forfunc new
's--template
parameter.func templates list --language dotnet
returns (amongst others) the template 'Azure Service Bus Topic trigger'.Using the output in
func new --template 'Azure Service Bus Topic trigger'
will result in an errorUnknown template 'AzureServiceBusTopictrigger' (Parameter 'templateName')
.Instead
Service Bus Topic trigger
needs to be used.Version
4.0.3971
The text was updated successfully, but these errors were encountered: