Issue with Deploying Logic App in Azure Arc-Enabled Kubernetes: Pods Created but App-Init Terminated.

Alireza Mansoori 0 Reputation points
2024-11-01T15:52:51.36+00:00

I have issue with deploying logic app in azure arck enabled Kubernetes. I'm using microk8s and it is connected to azure arck enabled Kubernetes and even app service extension and custom location has been created. Web app can be created without any issue but logic app and function app fails. the pods has been created successfully but app-init is terminated and I cannot be able to create a workflow. I have also created a SP and add it to the environment variable but it didn't work.

I followed this documentation to create a logic app: https://learn.microsoft.com/en-us/azure/logic-apps/azure-arc-enabled-logic-apps-create-deploy-workflows?tabs=azure-cli.

Screenshot 2024-11-01 164731

Screenshot 2024-11-01 164755

Screenshot 2024-11-01 164819

Screenshot 2024-11-01 164836

Screenshot 2024-11-01 164844

Screenshot 2024-11-01 165105


Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
525 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. hossein jalilian 10,825 Reputation points Volunteer Moderator
    2024-11-01T16:36:13.9466667+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    Double-check that the SP you created has the correct permissions and that the credentials are correctly set in the environment variables.

    Examine the logs of the terminated app-init pod to get more information about why it's failing. Use the following command:

    kubectl logs <pod-name> -n <namespace>
    
    

    Look for any events related to the pod creation and termination:

    kubectl get events -n <namespace>
    
    

    Ensure you're using a compatible version of the App Service Kubernetes extension. You can check and update it if necessary.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    0 comments No comments

  2. Alireza Mansoori 0 Reputation points
    2024-11-04T15:47:34.6966667+00:00

    Thanks for responding. I have Double-checked the SP and there is no misconfiguration. The SH has been created by this command:

    az ad sp create-for-rbac -n "JumpstartArcK8s" --role "Contributor" --scopes /subscriptions/$subscriptionId

    Does the SP need an specific rbck role in order to connecting to the storage account?

    The extension is up to date.

    I have checked the logs and event as you can see in the picture blew.Screenshot 2024-11-04 155721

    Screenshot 2024-11-04 161700

    0 comments No comments

  3. Alireza Mansoori 0 Reputation points
    2024-11-05T09:23:17.1433333+00:00

    I got this log as well:
    {"EventType":"MS_FUNCTION_LOGS","Level":2,"SubscriptionId":"","AppName":"logic-arck-lab-001","FunctionName":"","EventName":"ErrorOccuredDuringStartupOperation","Source":"Host.General","Details":""System.TypeLoadException : Could not load type 'System.IO.Path' from assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. at Microsoft.Azure.Workflows.WebJobs.Extensions.Initialization.WorkflowExtensionStartup.Configure(WebJobsBuilderContext context,IWebJobsConfigurationBuilder builder) at Microsoft.Azure.WebJobs.WebJobsBuilderExtensions.ConfigureAndLogUserConfigurationProviders(IWebJobsConfigurationStartup startup,WebJobsBuilderContext context,IWebJobsConfigurationBuilder builder,ILoggerFactory loggerFactory) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Hosting\WebJobsBuilderExtensions.cs : 342 at Microsoft.Azure.WebJobs.WebJobsBuilderExtensions.UseWebJobsConfigurationStartup(IWebJobsConfigurationBuilder builder,Type startupType,WebJobsBuilderContext context,ILoggerFactory loggerFactory) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Hosting\WebJobsBuilderExtensions.cs : 327 at Microsoft.Azure.WebJobs.WebJobsBuilderExtensions.UseExternalConfigurationStartup(IWebJobsConfigurationBuilder builder,IWebJobsStartupTypeLocator startupTypeLocator,WebJobsBuilderContext context,ILoggerFactory loggerFactory) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Hosting\WebJobsBuilderExtensions.cs : 367 at Microsoft.Azure.WebJobs.Script.ScriptHostBuilderExtensions.<>c__DisplayClass7_3.<AddScriptHostCore>b__8(IWebJobsStartupTypeLocator locator) at /src/azure-functions-host/src/WebJobs.Script/ScriptHostBuilderExtensions.cs : 230 at Microsoft.Azure.WebJobs.Script.ScriptHostBuilderExtensions.<>c__DisplayClass6_0.<AddScriptHost>b__2(HostBuilderContext context,IConfigurationBuilder configBuilder) at /src/azure-functions-host/src/WebJobs.Script/ScriptHostBuilderExtensions.cs : 132 at Microsoft.Extensions.Hosting.HostBuilder.BuildAppConfiguration() at Microsoft.Extensions.Hosting.HostBuilder.Build() at Microsoft.Azure.WebJobs.Script.WebHost.DefaultScriptHostBuilder.BuildHost(Boolean skipHostStartup,Boolean skipHostConfigurationParsing) at /src/azure-functions-host/src/WebJobs.Script.WebHost/DefaultScriptHostBuilder.cs : 59 at async Microsoft.Azure.WebJobs.Script.WebHost.WebJobsScriptHostService.UnsynchronizedStartHostAsync(ScriptHostStartupOperation activeOperation,Int32 attemptCount,JobHostStartupMode startupMode) at /src/azure-functions-host/src/WebJobs.Script.WebHost/WebJobsScriptHostService.cs : 256"","Summary":""A host error has occurred during startup operation '6937e55b-2b7c-4542-b5a0-53f62c11b2a2'."","HostVersion":"3.3.1.0","EventTimeStamp":"2024-11-05T09:21:14.7630852Z","ExceptionType":"System.TypeLoadException","ExceptionMessage":""Could not load type 'System.IO.Path' from assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'."","FunctionInvocationId":"","HostInstanceId":"","ActivityId":"","RuntimeSiteName":"","SlotName":"production"}

    {"EventType":"MS_FUNCTION_LOGS","Level":5,"SubscriptionId":"","AppName":"logic-arck-lab-001","FunctionName":"","EventName":"ActiveHostChanging","Source":"Host.General","Details":"""","Summary":""Active host changing from '(null)' to '(null)'."","HostVersion":"3.3.1.0","EventTimeStamp":"2024-11-05T09:21:14.7631427Z","ExceptionType":"","ExceptionMessage":"""","FunctionInvocationId":"","HostInstanceId":"","ActivityId":"","RuntimeSiteName":"","SlotName":"production"}

    {"EventType":"MS_FUNCTION_LOGS","Level":5,"SubscriptionId":"","AppName":"logic-arck-lab-001","FunctionName":"","EventName":"","Source":"Host.General","Details":"""","Summary":""Will start a new host after delay."","HostVersion":"3.3.1.0","EventTimeStamp":"2024-11-05T09:21:14.7631716Z","ExceptionType":"","ExceptionMessage":"""","FunctionInvocationId":"","HostInstanceId":"","ActivityId":"","RuntimeSiteName":"","SlotName":"production"}

    {"EventType":"MS_FUNCTION_LOGS","Level":5,"SubscriptionId":"","AppName":"logic-arck-lab-001","FunctionName":"","EventName":"","Source":"Host.General","Details":"""","Summary":""Delay is '00:02:00'."","HostVersion":"3.3.1.0","EventTimeStamp":"2024-11-05T09:21:14.7631909Z","ExceptionType":"","ExceptionMessage":"""","FunctionInvocationId":"","HostInstanceId":"","ActivityId":"","RuntimeSiteName":"","SlotName":"production"}

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.