Я не могу запустить свою функцию Azure, локально написанную на Java, которая должна работать на основе BlobTrigger.
Я сталкиваюсь со следующей ошибкой:
A host error has occurred
Microsoft.WindowsAzure.Storage: No connection could be made because the target machine actively refused it. System.Net.Http: No connection could be made because the target machine actively refused it. System.Private.CoreLib: No connection could be made because the target machine actively refused it.
Вот мой код:
public class Function {
@FunctionName("BlobTrigger")
@StorageAccount("reseaudiag")
public void blobTrigger(
@BlobTrigger(name = "content", path = "filer/{fileName}", dataType = "binary",
connection = "AzureWebJobsDashboard"
) byte[] content,
@BindingName("fileName") String fileName,
final ExecutionContext context
) {
context.getLogger().info("Java Blob trigger function processed a blob.\n Name: " + fileName + "\n Size: " + content.length + " Bytes");
}
}
На основании только начального запуска я могу начать реализацию логики, но я заблокирован для выполнения самого базового шага.
Вот мой local.settings.json
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=XXX;AccountKey=confidential;EndpointSuffix=core.windows.net",
"AzureWebJobsDashboard": "UseDevelopmentStorage=true",
"DataConnectionString": "UseDevelopmentStorage=true",
"ContainerName": "filer"
},
"ConnectionStrings": {
"PlantaoEntities": {
"ConnectionString": "DefaultEndpointsProtocol=https;AccountName=xxx;AccountKey=confidential;EndpointSuffix=core.windows.net",
"ProviderName": "System.Data.EntityClient"
}
}
}
Спасибо.