The access key is the concept for the legency Power BI workspace collections in Azure, the snapshot in your case is the new Power BI Embedded which is pretty different from the legency, for further information, you can read Power BI Embedded Documentations.
I try to script the process to create my environment in Azure, but I can not find how I do to add a key to a app in the Azure Active Directory.
To add a key, I have to use the GUI like this:
Go til Azure Active Directory
Select App registration and select my app
Select Keys
Give a 'Key description' and press Save
Copy the generated value
Or is it any way to do this with Azure CLI?
Environment summary
Install Method: Manualy with https://aka.ms/InstallAzureCliWindows
While using the classic Azure Mobile services, you used to get a key along with a URL for your Mobile Service app. This key was also used to explore the APIs on your backend site & was used as a password.
With new Azure App services all you need to instntiate the mobile service client is the URL like below
There is no key *a second parameter that was available with Azure Mobile services. What is now used as password to explore the APIs on the web?
SupreetSupreet
2 Answers
Supreet,
With App Services/Mobile Apps, the application key is no longer used/required, that is why it is no longer available on the portal. You can instantiate the client with the above code and start consuming the service APIs without that information.
For authentication, please refer to this documentation: https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-windows-store-dotnet-get-started-users/
I hope this helps.
Fabio CavalcanteFabio Cavalcante
You can implement Application Key for Azure Mobile App if you want.
You can set an application key for your Azure Mobile App like Azure Mobile Services.
1. Open Application Settings on Azure Mobile Application
2. Scroll down to App Settings Add these two lines.
| zumo-api-key | TYPE YOUR API KEY |
| MS_SkipVersionCheck | True |
3. Then click Save
4. Open App Service Editor
5. Create a file on your main folder wwwroot
6. Name your file as validateApiKey.js
6. Update your API script as,
[sampleAPI.js]
[sampleAPI.json]
Do not forget to change permissions to 'Anonymous'
6. Update your Table script as,
[sampleTable.js]
[sampleTable.json]
Do not forget to change permissions to 'Anonymous'
7. Done!
Do not forget to add header while calling Azure Mobile/Web App.
Also, you can see more from this repository on Github.
thisisfatihthisisfatih
Not the answer you're looking for? Browse other questions tagged azureazure-mobile-servicesazure-app-service-envrmnt or ask your own question.