Daniel Boyer
Daniel Boyer

Reputation: 401

Can't find variable azure mobile apps

In this tutorial by Adrian Hall I got to the part where adds this code to the server. He says he added it to the initialization of azure mobile apps sdk. I have no idea where to find this and put it. I ended up putting it in my javascript file but this returns no azuremobileapps (obviously). So where do I put this code? I am new to this thanks in advance.

// Configuration of the Azure Mobile Apps can be done via an object, the
// environment or an auxiliary file.  For more information, see
// http://azure.github.io/azure-mobile-apps-node/global.html#configuration
var mobileApp = azureMobileApps({
    // Explicitly enable the Azure Mobile Apps home page
    homePage: true,
    // Explicitly enable swagger support. UI support is enabled by
    // installing the swagger-ui npm module.
    swagger: true,
    // Authentication settings for custom auth
    auth: {
        audience: '04pHmxVuhYU1QTDo4lEojLo1sseRLfKG',
        issuer: 'https://shellmonger.auth0.com'
    }
});

Upvotes: 0

Views: 54

Answers (1)

Daniel Boyer
Daniel Boyer

Reputation: 401

I found it. It's in your script on the azure portal in the app.js under wwwroot.

Upvotes: 1

Related Questions