All Questions
            1,462
            questions
        
        
            113
            votes
        
        
            16
            answers
        
        
            198k
            views
        
    The configuration file 'appsettings.json' was not found and is not optional
                The Azure error is:
  .Net Core: Application startup exception:
  System.IO.FileNotFoundException: The configuration file
  'appsettings.json' was not found and is not optional.
So this is a bit ...
            
        
       
    
            58
            votes
        
        
            9
            answers
        
        
            33k
            views
        
    Azure Functions: There was an error performing a read operation on the Blob Storage Secret Repository
                In testing Azure Functions locally, I am receiving this error:
"There was an error performing a read operation on the Blob Storage
Secret Repository. Please ensure the 'AzureWebJobsStorage' ...
            
        
       
    
            56
            votes
        
        
            2
            answers
        
        
            10k
            views
        
    CI/CD of a ASP.NET Core Web API using VSTS
                I have created an ASP.NET Core Web API app using Visual Studio 2017 (Community Edition). I could successfully publish to an Azure App Service using Visual Studio.
I now want to set up CI/CD using ...
            
        
       
    
            35
            votes
        
        
            5
            answers
        
        
            28k
            views
        
    How to change Azure App Service to 64-bit
                I have been having trouble making a request to my 64-bit ASP.NET Core API running on an Azure App Service. The error I get back is:
  Unhandled Exception: System.BadImageFormatException: Could not ...
            
        
       
    
            28
            votes
        
        
            3
            answers
        
        
            39k
            views
        
    Azure ServiceBus Message Serialization/Deserialization
                I am using a .NET Core application to send an object through an Azure Service Bus Queue and have it received by a Web Job (.NET Core as well.)
My question is how to serialize/deserialize to send/...
            
        
       
    
            27
            votes
        
        
            16
            answers
        
        
            69k
            views
        
    The listener for function was unable to start. Why?
                I'm getting the following error when I run the azure function from visual studio.
  A ScriptHost error has occurred [1/19/2018 6:40:52 AM] The listener
  for function 'MyFunctionName' was unable to ...
            
        
       
    
            26
            votes
        
        
            4
            answers
        
        
            31k
            views
        
    How to register ServiceBusClient for dependency injection?
                I’m trying to register ServiceBusClient from the new Azure.Messaging.ServiceBus package for dependency injection as recommended in this article using ServiceBusClientBuilderExtensions, but I can’t ...
            
        
       
    
            25
            votes
        
        
            4
            answers
        
        
            17k
            views
        
    InvalidOperationException: Key type not specified. Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ConfigureSigningCredentials.LoadKey()
                Summary
Attempting to publish a basic .NET Core React app with auth functionality I am receiving an error with IdentityServer. This is using dotnet new react --auth Individual, .Net Core 3.0 Preview5,...
            
        
       
    
            21
            votes
        
        
            2
            answers
        
        
            4k
            views
        
    Missing dotnet.exe in Azure WebJob
                I'm trying to deploy a .NET Core Console App as an Azure WebJob. All files etc. are getting copied to the right directories but my console app its output is a .dll, so it requires dotnet.exe to start.
...
            
        
       
    
            20
            votes
        
        
            9
            answers
        
        
            24k
            views
        
    Error "Did not find functions with language [dotnet-isolated]" in Azure Function when migrating from .NET 3 to .NET 5
                I'm trying to migrate an Azure Function that works perfectly on .NET 3.1 to .NET 5.
I followed Microsoft's GitHub guide and still can't get it to run or debug locally (didn't even try to publish to ...
            
        
       
    
            20
            votes
        
        
            2
            answers
        
        
            10k
            views
        
    Azure Function gives error: System.Drawing is not supported on this platform
                (If this question is poorly worded, could someone please help me clear it up?)
I have an Azure Function (2.0) which relies on some System.Drawing code.  I've added a NuGet reference to System.Drawing....
            
        
       
    
            17
            votes
        
        
            6
            answers
        
        
            16k
            views
        
    Invalid value for key 'authentication'
                I have a .NET Core 3.0 app where am trying to connect to a Azure SQL database using EF Core and Active directory integrated authentication.
I have verified that I have access to this database from my ...
            
        
       
    
            17
            votes
        
        
            3
            answers
        
        
            2k
            views
        
    How do I report a bug in Windows Server Service Bus?
                I tried to google. Microsoft Connect doesn't accept bugs for Service Bus. Azure Portal sends to either MS forums or to StackOverflow - so here I am.
The question is really in the title: how do I ...
            
        
       
    
            16
            votes
        
        
            4
            answers
        
        
            41k
            views
        
    asp.net core web API file upload and "form-data" multiple parameter passing to method
                I have created an endpoint that takes files as parameters:
    [HttpPost("[action]")]
    [Consumes("multipart/form-data")]
    public ActionResult UploadImage(IFormFile  Files, string param)
    {
 ...
            
        
       
    
            16
            votes
        
        
            2
            answers
        
        
            9k
            views
        
    Complex object app settings in Azure Function
                I have these entries in my local.settings.json
{
    "IsEncrypted": false,
    "Values": {
        "AzureWebJobsStorage": "whateverstorageaccountconnectionstring",
        "FUNCTIONS_WORKER_RUNTIME": ...
            
        
       
    
            15
            votes
        
        
            5
            answers
        
        
            7k
            views
        
    Creating an Azure ServiceBus Queue via code
                Apologies, I'm new to Azure. I created a service bus and queue via the Azure portal using this tutorial.
I can write and read from the queue ok. The problem is, to deploy to the next environment, I ...
            
        
       
    
            15
            votes
        
        
            5
            answers
        
        
            10k
            views
        
    Azure Function - System.Data.SqlClient is not supported on this platform
                I'm running the following insert code within my azure function into an azure sql server 2014 database:
    private static void Command(SqlConnection sqlConnection, string query)
    {
        var ...
            
        
       
    
            15
            votes
        
        
            1
            answer
        
        
            13k
            views
        
    What is the role of "MaxAutoRenewDuration" in azure service bus?
                I'm using Microsoft.Azure.ServiceBus. (doc)
I was getting an exception of:
  The lock supplied is invalid. Either the lock expired, or the message
  has already been removed from the queue.
By the ...
            
        
       
    
            15
            votes
        
        
            1
            answer
        
        
            4k
            views
        
    .net core azure deployment failing: Project file does not exist
                I have an app-service app set up in Azure which is set to deploy upon commit into a team-services git repository. This has been working fine until now, and the deployment is failing with:
MSBUILD : ...
            
        
       
    
            14
            votes
        
        
            5
            answers
        
        
            51k
            views
        
    How read all files from azure blob storage in C# Core
                I want to read files from an azure blob storage (the files inside the folder), the blob storage contains many folders.
I want to read my folder 'blobstorage' ,it contains many JSON files performing ....
            
        
       
    
            14
            votes
        
        
            4
            answers
        
        
            13k
            views
        
    Azure function app deploy and release pipeline error
                I pushed my .net core function application using visual studio and now setting up release pipeline. I can publish and execute the application just fine and it works great on the Azure portal.  However ...
            
        
       
    
            13
            votes
        
        
            3
            answers
        
        
            8k
            views
        
    How to migrate Azure Functions v3 to .net core 5.0
                I have upgraded all assemblies in an Azure Function v3 project to version 5.0 but I am unable to run the function. Here it is my function's csproj file's partial definition:
<PropertyGroup>
    &...
            
        
       
    
            13
            votes
        
        
            2
            answers
        
        
            1k
            views
        
    How to diagnose AspNetCore application not starting on Azure App Service?
                We have multiple AspNetCore applications hosted on an Azure Web App as OutOfProcess and deployed as virtual applications with separate paths.
We have the same setup in different environments, all ...
            
        
       
    
            12
            votes
        
        
            3
            answers
        
        
            4k
            views
        
    WebJobsStartup in Azure Functions v2 not working when targeting netcoreapp2.1
                I have an Azure Function v2 app, that I originally targeted netcoreapp2.1.
I then have a Startup.cs class, annotated with [assembly: WebJobsStartup(typeof(Startup))] to set up dependency injection, ...
            
        
       
    
            11
            votes
        
        
            5
            answers
        
        
            36k
            views
        
    The MetadataAddress or Authority must use HTTPS unless disabled for development by setting RequireHttpsMetadata=false
                net core application. I have added azure ad authentication. Below is my startup.cs file
 services.AddAuthentication(x =>
            {
                x.DefaultAuthenticateScheme = ...
            
        
       
    
            11
            votes
        
        
            2
            answers
        
        
            9k
            views
        
    Azure functions configure timer trigger from Azure App Configuration
                I'm doing an Azure Function that is timer triggered. I want to be able to change the timer, i.e the cron expression, without having to do a re-deploy. I'm getting my other settings from an App ...
            
        
       
    
            11
            votes
        
        
            5
            answers
        
        
            8k
            views
        
    Azure KeyVault - Sign JWT Token
                I began using Azure Keyvault to store private keys for my application.  
I have a use case where I need to sign a JWT token with an RSA private key.  
When I had the private key in my application ...
            
        
       
    
            11
            votes
        
        
            6
            answers
        
        
            3k
            views
        
    CngKey.Import on azure
                var rawData = Convert.FromBase64String(_signingKey);
var cng = CngKey.Import(rawData, CngKeyBlobFormat.Pkcs8PrivateBlob);
I use this code to extract key, from embedded base64 string.
It works fine ...
            
        
       
    
            11
            votes
        
        
            3
            answers
        
        
            5k
            views
        
    ASP.NET Core website on Azure fails to start with a 502.5 error after upgrade from .NET Core 1.1.1 to .NET Core 1.1.2
                I have a .NET Core web application which I deploy as an Azure Web App.
This has been working perfectly until last night when I applied the Visual Studio 2017 upgrade (v15.2).
The .net core version ...
            
        
       
    
            11
            votes
        
        
            1
            answer
        
        
            8k
            views
        
    How to install several .NET Core SDK versions on Azure Devops
                Is it possible to install multiple versions of the .NET Core SDK using azure-pipelines.yml on Azure DevOps? If yes, how can I do so?
I'm trying to build a Blazor Server App using ElectronNET. On my ...
            
        
       
    
            11
            votes
        
        
            1
            answer
        
        
            9k
            views
        
    Configure AspNetCoreModuleV2 in process for multiple virtual apps in Azure App Services
                I have ASP.NET Core applications hosted on Azure App Services as two virtual applications in the same App Services instance. The main site app is hosted at / and the blog application at /blog. I would ...
            
        
       
    
            11
            votes
        
        
            3
            answers
        
        
            5k
            views
        
    Azure Service Bus - topics, messages - using .NET Core
                I'm trying to use Azure Service Bus with .NET Core.  Obviously at the moment, this kind of sucks.  I have tried the following routes:
The official SDK: doesn't work with .NET Core
AMQP.Net Lite: no (...
            
        
       
    
            11
            votes
        
        
            2
            answers
        
        
            5k
            views
        
    Specified framework 'Microsoft.AspNetCore.App', version '3.1.0' was not found for a Linux Azure WebApp
                Problem
After upgrading a .Net Core 2.2 Linux Web App to .Net Core 3.1 in Azure, the application is down with a Specified framework 'Microsoft.AspNetCore.App', version '3.1.0' was not found error.  I ...
            
        
       
    
            10
            votes
        
        
            1
            answer
        
        
            16k
            views
        
    In Azure Functions, how to use route parameter inside an output binding
                Below is an http triggered function. For the route, I have specified a variable user. Now, I want this variable user to be consumed in any other output binding. Now working code shown with Blob as an ...
            
        
       
    
            10
            votes
        
        
            3
            answers
        
        
            27k
            views
        
    .NET CORE 3.1 on Azure Web Sites: 500.37 ANCM Failed to Start Within Startup Time Limit
                I have .NET Core 3.1 API which is deployed in Azure web application service. I had trouble running the application in Azure because of the error 500.37 ANCM Failed to Start Within Startup Time Limit. ...
            
        
       
    
            10
            votes
        
        
            3
            answers
        
        
            11k
            views
        
    Using AddAzureKeyVault makes my application 10 seconds slower
                I’m having this very simple .NET Core application:
    static void Main(string[] args)
    {
        var builder = new ConfigurationBuilder()
           .SetBasePath(Directory.GetCurrentDirectory())
 ...
            
        
       
    
            10
            votes
        
        
            2
            answers
        
        
            729
            views
        
    Inexplicable storage transactions from Azure Functions
                I have a project with a couple of .NET Core based Azure Functions running on a schedule. One of them runs once every 10 minutes and serves to update view counts similar to how SO tracks question views ...
            
        
       
    
            10
            votes
        
        
            6
            answers
        
        
            11k
            views
        
    Azure Web App Service "container is unhealthy" error forcing container restart every 15min
                I have a dot net core 3.1 app running in an Azure Web App environment (Linux). The app is running fine in local environment/debug. When publishing to Azure, the app runs, but in the Applictions logs, ...
            
        
       
    
            10
            votes
        
        
            4
            answers
        
        
            3k
            views
        
    Azure WebJobs (3.x) Continuous job not showing Functions in Dashboard
                We have an Azure WebJob (3.x) running under an API App in Azure, all Core 2.1. It publishes fine, and runs, but doesn't show any Functions or list the Function Invocations on the dashboard. Which is ...
            
        
       
    
            9
            votes
        
        
            2
            answers
        
        
            22k
            views
        
    Azure Application Insights not showing data
                I have an ASP.NET Core application running as Azure App Service. Azure Application Insights is enabled (I followed these instructions). The problem is my instance of Azure Insights on Azure Portal isn'...
            
        
       
    
            9
            votes
        
        
            2
            answers
        
        
            4k
            views
        
    Cosmos DB Emulator: Failed to get authorization headers for offers
                I upgraded Azure Cosmos DB Emulator from version 1.22 to 2.0. Now when I go to the local Data Explorer, nothing loads in the Explorer tab and I see error
  Failed to get authorization headers for ...
            
        
       
    
            9
            votes
        
        
            4
            answers
        
        
            1k
            views
        
    What package should I use for Azure Tables when migrating away from "WindowsAzure.Storage"
                I am currently migrating a project that was written for .NET Fx 4.8 using ASP.NET WebApi to .NET 5.0. This project makes heavy use of the package WindowsAzure.Storage for accessing BLOBs, tables and ...
            
        
       
    
            9
            votes
        
        
            1
            answer
        
        
            6k
            views
        
    Failed executing DbCommand because timeout expired .net core
                My goal is to provide simple API to retrieve data from Payments (~400 rows) table which consists 5 columns.
Payment: Id (int),
PaymentsNumber (tinyint),
Rate (decimal(18,2)),
ProductType (tinyint),
...
            
        
       
    
            9
            votes
        
        
            1
            answer
        
        
            1k
            views
        
    How to add command line arguments to Azure Web App?
                Locally we can do dotnet run [args] or dotnet publish followed by dotnet mydll.dll [args].
When deploying that App to an Azure Web App under App Services, how do you make it startup with these ...
            
        
       
    
            8
            votes
        
        
            2
            answers
        
        
            4k
            views
        
    The "--output" option isn't supported when building a solution
                I am attempting to deploy a simply Web Api App to Azure to help me familiarise myself with Azure services and Github Actions for deployment.  Below are the steps I have undertaken
1 - Create a new ....
            
        
       
    
            8
            votes
        
        
            1
            answer
        
        
            11k
            views
        
    How do I set a retry policy on an Azure blob storage operation using the Azure.Storage.Blobs assembly?
                Using the latest (12.3.0 at the time of writing) Nuget package for the Azure.Storage.Blobs assembly, and uploading asynchronously with the BlobServiceClient class, I want to set retry options in case ...
            
        
       
    
            8
            votes
        
        
            1
            answer
        
        
            2k
            views
        
    Azure Service Bus Triggered Function - Bind to MessageReceiver
                I'm trying to bind to MessageReceiver in an Azure Service Bus Triggered Function.
My goal is to handle dead letter queue messages and complete them.
    public static class Function1
    {
        [...
            
        
       
    
            8
            votes
        
        
            3
            answers
        
        
            4k
            views
        
    How to publish asp.net core web job to azure app service
                I have started with asp.net core 2 web app and I can publish it to App Service from Visual Studio using web deploy.
I've created new clean .net core 2 console app. I'm able to upload it as webjob and ...
            
        
       
    
            8
            votes
        
        
            1
            answer
        
        
            11k
            views
        
    Is it possible to move from windows to linux Azure App Service easily?
                As I see I need to create new linux app service.
Recreate domain, certificates binding and deployment pipeline.
And then remove old one.
Is it simplier way to do this?
            
        
       
    
            8
            votes
        
        
            2
            answers
        
        
            5k
            views
        
    Azure DocumentDB sporadically throws SocketException / GoneException
                UPDATE (2/8/17):
See answer below.
UPDATE (2/7/17):
I've found that a restart can allow me to successfully run the web app from Visual Studio 2015, and hit the endpoint several times. However, when ...