is it possible to start application insights search by URL parameter?
see the picture below: I like to generate a link to start the search:
something like: https://<applicatoinInsightsUrl>?search=b4eb0000-f22e-18db-fc92-08d81c2df34d
No, you cannot.
Actually, when you use search from portal, it calls the application insights get query rest api in the backend. And it also auto-generates a token for the authentication(if you already logged in azure portal).
So just a simple url plus search="xxx" will do nothing. You can consider using get query api.
Related
I am trying to pull azure cognitive search current and quota .
Can anyone help me on:
" how can I get that information to csv using some service principle."
I found one link to pull this kind of data :
https://learn.microsoft.com/en-us/rest/api/searchservice/get-service-statistics
But I am not sure how to use this api to get above screenshot information.
The link you posted is the correct way to do it, it returns all the information you need.
It looks like this endpoint does not support OAuth2 & RBAC. So instead of using service principal, you need to provide the admin api-key in the request header.
You can check here how to access the api-key. If you'll be doing that from a powershell script, you can authenticate with your service principal and fetch the key using Get-AzSearchAdminKeyPair, then use this key to make a http request to get the statistics and finally convert them to CSV format.
Is there anyway currently as it stands to clean up a url so it would only contain the following:
"subdomain.contoso.com" without all the query parameters at the end of it.
Currently on my domain setup I have it as "login.contoso.com" this works fine however it requires all the rest of the following query parameters after the initial domain to be able to work.
Such as "https://login.contoso.com/contoso.onmicrosoft.com/b2c_1a_signup_signin/oauth2/v2.0/authorize?......"
Where we want it as: "https://login.contoso.com"
Is there some guide that points out how we could get this to work without the query parameters being there. As we followed this: https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-domain?pivots=b2c-user-flow
As I understand that you want to have the signup/sign-in URL shortened to domain.com/login. This is only possible if the application handles the signup/sign-in process without using an IDP such as B2C for this purpose. Hence its not possible to customize/hide the parameters within the B2C url, that is how OpenId Connect protocol works.
Reference: https://learn.microsoft.com/en-us/answers/questions/759791/is-it-possible-to-get-a-short-url-for-the-the-sign.html
I have a demo / bogus azure function app that by default is open to anyone. It has a hello world function. Its using "AuthorizationLevel.Anonymous"
So far so good - it's wide open and anyone can call it.
Now I need to ensure that only users within our organization can consume this API. So I followed this tutorial: https://learn.microsoft.com/en-us/azure/app-service/scenario-secure-app-authentication-app-service
When I try to call my demo function from a browser I get a 401 unauthorized error which is a good thing I guess - that's what I requested when unauthorized users try to hit my API.
From what I've read, I in order to call this API now, I have to pass it a token. But this is where it's not clear to me how / where I get this token.
If I create the new application registration and change the "Unauthenticated requests" from the 401 to 302 option, it correctly redirects me to the Microsoft Login prompt when I try to call my API. I enter my creds and then the function works.
The issue is that the callers of my API will be doing so programmatically and not manually by a person.
So far I've been checked all the related links listed in that tutorial but I haven't found what I'm looking for. Or maybe I missed it.
Any tips would be appreciated. I think I just need to read the right article / doc that will help me understand the big picture for this specific use case.
Thanks.
EDIT 1
In case it helps, here's a screen shot of the output from my integration assistant wizard. I selected "web api" as the type of application I'm trying to build:
From the documentation you posted:
"In the App Service authentication settings section, leave Authentication set to Require authentication and Unauthenticated requests set to HTTP 302 Found redirect: recommended for websites."
If that's set then there's something wrong with the website.
I'm currently developing an application that uses an Azure AD instance. I'm trying to query this AD to sync the users to my system. I want to retrieve all the users and their groups. The Microsoft Graph API has the following function for this operation:
https://graph.microsoft.com/v1.0/users?$expand=memberOf
However, this gives me the same response as calling: https://graph.microsoft.com/v1.0/users. Users in my AD do have groups and I did try calling the api with $select instead of $expand, but also without result.
Is this a bug? Am I doing something wrong?
Thanks!
Expanding navigation properties on user entities is currently not working on the production (v1.0). Please see this post for more information: https://stackoverflow.com/a/39022980.
I'm trying to get data from a table I created in Azure Mobile Services.
When I setup the service, I created a new database to go along with it.
I've added a row of data to my table called TODOITEM and can query this row of data fine from the db admin tool on Azure.
Now what I'm trying to do is run a GET request on this table, as documented here...
https://msdn.microsoft.com/en-us/library/azure/jj677199.aspx
I am using Fiddler and trying to send the following request with HTTP 1.1...
https://mobilemeshtest.azure-mobile.net/tables/todoitem
X-ZUMO-APPLICATION: my azure mobile services key
X-ZUMO-AUTH: my facebook authentication key
Host: mobilemeshtest.azure-mobile.net
No matter what I try, all I get back is a 404 not found.
I'm even copying what the guy did in a PluralSight video tutorial on Azure Mobile Services, and he gets a correct 200 response.
I can't see what I'm doing wrong.
404 is pretty simple. The url is wrong.
Propably you have not set your Controller right.
If your Controller is named SomethingController then the route is /tables/Something assuming you havent customized the default Routing methods
Application Key and Authorization Key is not needed if you haven't specified the corresponding authorization attribute
for example : [AuthorizeLevel(AuthorizationLevel.User)]
RESOLVED : I was using a .NET backend, it seems one has to publish their data objects and controllers first using Visual Studio.
This blog post has a good example on how to achieve this.
If I was using the Javascript backend option, the controllers are automatically setup for you.