Azure Iot accelarator connected factory deployment

Devarinti Eswar Reddy 141 Reputation points
2020-11-06T04:49:40.343+00:00

I was trying to deploy the Azure IOT accelerators connected factory solution from this location- https://www.azureiotsolutions.com/Accelerators, by following MS docs-https://learn.microsoft.com/en-us/azure/iot-accelerators/quickstart-connected-factory-deploy.

This deployment is creating public IP’s and downloading some images from market place but my Organization is not allowing the public IP’s and market place images.

I have downloaded the code from git repo- https://github.com/Azure/azure-iot-connected-factory, can I publish this code from visual studio to Azure app services without creating VM and without using PowerShell script? if yes, Please let me know the steps and what configuration do I need to change.

Please help me on this.

I am from Dot net background don’t know much on power shell script.

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
396 questions
0 comments No comments
{count} votes

Accepted answer
  1. Devarinti Eswar Reddy 141 Reputation points
    2020-11-10T07:16:21.263+00:00

    I am getting below error while publishing Connected factory solution from Visual Studio

    The MetadataAddress or Authority must use HTTPS unless disabled for development by setting RequireHttpsMetadata=false.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidOperationException: The MetadataAddress or Authority must use HTTPS unless disabled for development by setting RequireHttpsMetadata=false.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [InvalidOperationException: The MetadataAddress or Authority must use HTTPS unless disabled for development by setting RequireHttpsMetadata=false.]
    Microsoft.Owin.Security.OpenIdConnect.OpenIdConnectAuthenticationMiddleware..ctor(OwinMiddleware next, IAppBuilder app, OpenIdConnectAuthenticationOptions options) +1185
    lambda_method(Closure , OwinMiddleware , IAppBuilder , OpenIdConnectAuthenticationOptions ) +55

    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
    System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
    System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +168
    System.Delegate.DynamicInvokeImpl(Object[] args) +124
    Microsoft.Owin.Builder.AppBuilder.BuildInternal(Type signature) +223
    Microsoft.Owin.Host.SystemWeb.OwinAppContext.Initialize(Action1 startup) +465 Microsoft.Owin.Host.SystemWeb.OwinBuilder.Build(Action1 startup) +40
    Microsoft.Owin.Host.SystemWeb.OwinHttpModule.InitializeBlueprint() +70
    System.Threading.LazyInitializer.EnsureInitializedCore(T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory) +119
    Microsoft.Owin.Host.SystemWeb.OwinHttpModule.Init(HttpApplication context) +91
    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +523
    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +176
    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +220
    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +303


1 additional answer

Sort by: Most helpful
  1. António Sérgio Azevedo 7,666 Reputation points Microsoft Employee
    2020-11-06T12:04:11.917+00:00

    @Devarinti Eswar Reddy thank you so much for your question in Microsoft Q&A.

    Let me first ask if you looked at the most up to date documentation regarding Connected Factory aka Azure Industrial IoT?

    To your question:

    can I publish this code from visual studio to Azure app services without creating VM and without using PowerShell script?

    I am not aware that is possible but I would suggest you ask it here as a new issue in the repo: https://github.com/Azure/azure-iot-connected-factory/issues

    Though you can develop and test your solution locally: https://github.com/Azure/azure-iot-connected-factory/blob/master/build.ps1#L39

    .EXAMPLE  
        ./build.ps1 local  
        Allocates all cloud resources, but not deploy your solution to the cloud.  
        This is to develop and test your solution locally.  
    

    Thank you!

    Remember:

    • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification.

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.