unable to connect azure resources to log analytics - azure-log-analytics

I am trying to connect azure web applications to web apps using azure portal.
I navigated to "Azure resources" in the section "work space data sources" from menu bar.
And choosen web app from the list in the same resource group, and selected PT1M and click on save.
When i click on save, it shows me the error as below
Failed to update connection settings for resource to Log Analytics.
Any Suggestions please.

Had the same issue. Go to your Azure subscription, under the resource provider blade, make sure that microsoft.insights provider is registered. If not, register and then try again.

Related

Login option is not available. Please try another one

I followed the Amplify instructions to add a email login, now I am adding a Google login, and I'm getting this message instead:
Login option is not available. Please try another one
The documentation is not clear.
The Amplify CLI does not add a Google Identity Provider. It also changes the domain name unexpectedly.
You have to go in the AWS console, select your User Pool, and add the Google Provider yourself, and enable it in App Client Settings.
After I selected Google, and enabled it in Enabled Identity Providers, then it worked.
Also, it seems like the CLI wants to put all sign ins on the same web page, if you use signInWithWebUI, but I think this is ok.
It fixed my issue by going to Cognito User Pool -> Federation -> Identity Provider -> select Google -> fill out "Google app ID", "App secret"(find those in your Google cloud) and "Authorize Scope"(profile email openid). -> Go to "App Client Settings" to enable "Google"
Note: you might find this video useful https://www.youtube.com/watch?v=pKA8qXINjkU, tho it is not specific to setting up Cognito through Amplify

Static HTML Azure web site behind Azure AD results in 'You do not have permission to view this directory or page.'

I have an azure web app with nothing but .HTML and .CSS files - there is no code of any kind.
Azure AD authentication is enabled.
I am able to visit the site URL, get redirected for authentication and I get in just fine.
Everyone else gets sent to this page after login:
https://myurl.com/.auth/login/aad/callback
and they get a 401 error on the browser:
You do not have permission to view this directory or page.
Why is it working for me, and not everyone else who authenticates?
Is there somewhere I need to tell Azure Web Apps that I want all the files to be available to any authenticated user?
This issue may caused by that the AD application for your Web App has not been configured correctly. I did a test in my lab and found this solution:
Solution:
Go to Azure Portal > Your Web Application > Authentication/Authorization > Azure Active Directory > Manage Application > Required permissions >
Delete other permissions except Windows Azure Active Directory > Ensure the DELEGRATED PERMISSIONS Sign in and read user profile has been enabled and the REQUIRES ADMIN is NO:
Also, Ensure the App ID URI and the Home page URL are all the URL of the Web app
Additional, if your configuration still cannot work, you can delete the Azure AD application and follow this steps to recreate a new one. It will work perfectly.
Please let me know if it helps!
Found the answer to this, posting here to help others.
When you setup "App Service Authentication" with Azure using the "Express" option, an "App Registration" is created in Azure Active Directory.
When this happens a Client secret is automagically created on the Azure AD Object and then inserted into the Azure App service
It seems that something happened along the way in my website, where this was set correctly initially, but then changed - I'm sure it was my own doing.
The symptoms of this are a bit interesting.
Any account that worked prior to the change of the App Registration continued to work.
Any account that hadn't yet signed in, failed.
This is why one of my accounts worked and the rest did not.
The solution was fairly simple, I clicked on the app service in azure, the on the Azure AD line, then in the "Azure Active Directory Settings" blade, set the "management mode" to "off" hit ok,
and saved in the blade to the left, then refreshed the browser.
Next I went into Azure AD and deleted the app registration for that app, (I did this so I could re-use the app registration name)
Here is a screenshot of that screen, it's under the active directory category, and not part of your web apps settings. find your app registration, click it and then delete.
Next I went back to the Azure App service (web app) and Re-configured Azure AD Auth using the "express" settings.
Hope this helps someone!

MFP Analytics not getting captured

We are using MFP 8 which is in bluemix. We tried logging some custom logs to MFP analytics, but it is not getting captured. This is a Cordova app. And there are no error logs also while sending logs to analytics server. As I am new to this, any help would be greatly appreciated.
Make sure the App has connected successfully to MFP server before sending the custom data
Code should look like
WL.Analytics.log({"myKey" : "myValue"});
WL.Analytics.send();
View using Analytics console > Apps > Client Log Search - Click search button
Reference: Using Analytics API in Client Applications

Cannot add users to Google Console Project

I am attempting to add a project owner within Google Developer Console under Permissions. The original project was created with a domain user (Google Apps for Work) and I can add other domain users but cannot add external users (other gmail or different Google Apps domain user).
I receive a 504 error in the Console logs and a message saying "The server has timed out while trying to process your request."
Has anyone seen or resolved this issue? Or perhaps know of a way to contact Google support regarding this?
UPDATE:
I realized that the this happens for two of our projects and both projects have a prefix on the project ID: carrotcreates.com:xxxxxxxx
I am not sure if this is linked but carrotcreates.com is the primary domain for our Google Apps account.
Thanks!

Google Drive Android Api reset Play Services Authorization

When debugging a GDAA app, I need to re-test a "brand new account" situation. I.e. getting the dialog that asks user to allow the Drive access:
"[YourApp] would like to: View and manage Google drive files that you
have opened or created by this app"
Is there a re-set method that would get me back to ground zero?
You can reset this via the Drive "manage apps" page on the web. Disconnect the app from your drive.
Have a look at the 'Google Settings' app on your device, in the 'Connected apps' section you should be able to select and disconnect your app. At least for other kinds of permissions (e.g. contacts), allowed apps show up there.
Edit: The same can be done via the web here.