Вопрос не в хранении блобов, но я думаю, что техника похожа

я есть функция Azure с таймером запуска, и затем я хочу создать файл с динамическим (определенным во время выполнения) именем и содержимым и сохранить его, например, в. Один диск.

Мой код функции:

public static void Run(TimerInfo myTimer, out string filename, out string content)
{
    filename = $"{DateTime.Now}.txt";
    content = $"Generated at {DateTime.Now} by Azure Functions";    
}

А такжеfunction.json:

{
  "bindings": [
    {
      "name": "myTimer",
      "type": "timerTrigger",
      "direction": "in",
      "schedule": "0 */5 * * * *"
    },
    {
      "type": "apiHubFile",
      "name": "content",
      "path": "{filename}",
      "connection": "onedrive_ONEDRIVE",
      "direction": "out"
    }
  ],
  "disabled": false
}

Это терпит неудачу, хотя, с

Error indexing method 'Functions.TimerTriggerCSharp1'. Microsoft.Azure.WebJobs.Host: 
Cannot bind parameter 'filename' to type String&. Make sure the parameter Type 
is supported by the binding. If you're using binding extensions 
(e.g. ServiceBus, Timers, etc.) make sure you've called the registration method 
for the extension(s) in your startup code (e.g. config.UseServiceBus(), 
config.UseTimers(), etc.).

Ответы на вопрос(2)

Ваш ответ на вопрос