title: Azure Function App : Error when loading V3 in portal for fresh function app?
body: <p>I follow the documentation to setup an app function with runtime version V3 but it throws InternalServerError. How can I create an app function to work with V3? These are my steps:</p>
  
  <ol>
  <li>I create a fresh app service azure function app (in portal). </li>
  <li>When the resource is ready and without making any changes or enter any code in portal or deploy any code from VS, I go to Function App Settings and shows "~3" selected, Runtime version: Runtime version: loading... (it's stuck there) and error mssg in a box on the right hand side of the screen:</li>
  </ol>
  
  <p>Error: Encountered an error (InternalServerError) from host runtime</p>
  
  <p>I tried to select runtime version ~2 in Function Application settings, but the Runtime Version shows "loading..." and if I exit and go back to this function, it shows ~2 as selected but the InternalServerError continues to show and Runtime version shows "loading..."</p>
  
  <p>If I change to version ~1 it works showing runtime version 1.012967.0. But I can't change back to V3 because it shows internalServerError again.</p>
  
  <p>According to <a href="https://docs.microsoft.com/en-us/azure/azure-functions/set-runtime-version" rel="nofollow noreferrer">documentation</a> "function apps are created in version 2.x of the runtime" but when I first created the function it seems to create it in V1?. Kudu showed at home/LogFiles/eventlog.xml "Provider Name="IIS AspNetCore Module V2"/"</p>
  
  <p>I later tried to deploy my VS code into this function app with V3 functions in VS and portal but of course this would not work. And deploying V3 from VS with V1 in portal is not the suggested process by the <a href="https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=windows%2Ccsharp%2Cbash#v2" rel="nofollow noreferrer">documentation</a> "Although the runtime version is determined by the FUNCTIONS_EXTENSION_VERSION setting, you should make this change in the Azure portal and not by changing the setting directly. "</p>
  
  <p>Finally, if I try to create the app function from VS, it automatically creates it with V2 and when checking in the portal I get the same internalservererror. It only works with V1 1.0.12967.0 (~1).</p>
  
  <p>Help really appreciated</p>