Export ARM Template for Azure Log analytics Alerts created from Portal - azure-log-analytics

I have created Azure Log Analytics (Monitor) Alert to monitor the Logic App Failures and I have done this using Azure portal.
I would like to know how can we export the Alert created from Azure Portal as an ARM template?
Anyone know how we can achieve it.
Thanks

If you want to export the ARM template of the alert in the portal, please follow the steps below.
1.In the portal, navigate to the resource group which the alert located in(Note: It is the group of the alert, not the group of the alert's target resource), select the Show hidden types option -> find your alert and select it -> click Export Template.
2.Click the Download like below, then it will download the template as a compressed file which includes the template.json and parameters.json to local.
Update:
What you are using is legacy Log Analytics Alert, from June 1, 2019, it automatically use new scheduledQueryRules by default in Azure portal, its resource type is
microsoft.insights/scheduledqueryrules.
In your case, you could follow this link to switch from the old alert to new one.
Or create a new alert in the portal, navigate to the Log Analytics workspace in the portal -> New alert rule -> Add Custom log search and create it.
Ater create it, in the resource group, select the Show hidden types option, you will find the alert like below, then you can export the template.

You are using the legacy log analytics API and this doesn't support export for templates as they are not ARM tracked resources. The definition for those would be on the workspace itself (under savedsearch => schedule => action).
If you want to be able to export more easily, please consider using the newer ScheduledQueryRules API. Learn more on how to switch here:
https://learn.microsoft.com/azure/azure-monitor/platform/alerts-log-api-switch#process-of-switching-from-legacy-log-alerts-api
Please note this could be a big change due to API change, please review the complete article to understand what will happen after the switch.

Related

Azure API Management Developer Portal

I have a requirement to expose the APIM Developer Portal to external partners, I want the developer portal to be my one stop shop for these partners to access and learn everything they need to know about my APIs, in the main APIM Developer Portal satisfies that requirement but when I want to add new content e.g. specific design, architecture, user guide documentation etc about the API it starts to get very confusing, for a start it looks like the depreciated publisher portal (which still exists) is the only place that I can add new pages. The new pages seem very limited and clunky and cannot be amended in the new version of the portal. There is also very limited documentation outside the standard MS stuff and nearky all of that relates to amending the current pages and templates.
My site will go live at the end of the year and I don't want to find one day these new content pages missing from the portal and my supporting documentation removed.
Does anybody know where Microsoft is going with the developer portal for customizing outside outside the standard templates they offer or can anybody supply me with a link of documentation that addresses new content pages?
It looks like the depreciated publisher portal (which still exists) is the only place that I can add new pages
Yes, you need to use the publisher portal to add new pages.
The new pages seem very limited and clunky and cannot be amended in
the new version of the portal.
What do you mean by new version of the portal?
I am going live at the end of the year and I don't want to find one day these new content pages missing from the portal and my supporting documentation removed.
If your worry is that API Management will automatically remove your content because of publisher portal deprecation - you can rest assured this is not going to happen, especially without any previous notice.
Does anybody know where Microsoft is going with the developer portal for customizing outside the standard templates they offer?
There is some work planned to refresh the developer portal. Can you please elaborate more on what you are trying to achieve? What is your goal?
One can edit those pages in 2 places: Publisher Portal and Developer Portal.
In the Publisher portal you can add widgets to predefined areas on the page. For example you can add a HTML widget to the home page for authenticated and non-authenticated users. Rasmas Gude has a great article about that here.
In the Developer Portal you can change the information shown on each page by editing the template. There's a edit template icon available on the left for administrator. If you click that and then select the section you want to edit a split screen will appear below. The left have is DotLiquid markup and the right is the data model for that section. With that information you should be able to modify the page in the manner you wish.
If they are decommissioning the publisher portal, it will be enabled in the azure portal. Earlier we have the API, Products and users etc in the publisher portal. that are added in the other portal. The deprecation of the portal, dosnt mean the existing functionality will fail, which have the alternatives.

using new BigQuery UI to link to an external project

This page shows how to use the classic BigQuery UI to link to an external project. Can this be done with the new UI?
EDIT: To be more explicit, the new UI has a "pinning a project" functionality which seems to allow the user only to choose from their own list of projects, whereas the "classic" UI allows the user to Switch to Project > Display Project and then enter any project name, not just one that they have a membership role in.
There are some limitations for the new BQ UI listed here.
And one mentions what you asked:
Also note that the BigQuery public datasets are not displayed by default in the BigQuery web UI. To open the public datasets, enter the following URL in your browser.
https://console.cloud.google.com/bigquery?p=bigquery-public-data&page=project
Once you've opened the project, pin it.

Firebase dynamic links long version not firing automatic analytics events

The long version of a Firebase Dynamic Link is not firing the events First-opens, clicks, re-opens...
Is that a bug or is it on purpose, and in that case why?
Background:
I cannot use the short version because I am adding programmatically a parameter in the deep link associated, hence I need the long version to accomplish it.
As a work around: how can I add programmatically a url parameter in a short Firebase dynamic link? I don't want to generate programmatically a link, I want to have only one link which has dynamic value on it (e.g. productID for a link in my product detail page)
Thanks for your help!
Need your actual dynamic link to investigate this.
At the same time I can suggest that you can create short link programmatically. See iOS docs, Android docs and overview.
EDIT:
When you say analytics what of the following you are referring to:
Data shown in Firebase Analytics (accessible from Firebase Console
in Analytics section);
Data shown in Dynamic Links Analytics (accessible from Firebase Console in Dynamic Links section);
Data shown when in list of created dynamic links you clicking on specific link;
Data retrieved using Firebase Dynamic Links Analytics API;
I feel that we should account long links clicks in 1 and 2. I did not get yet confirmation from server side folks to be sure about this. I would trust Ian's comment for now.
In 3 will be shown only short links created in Firebase console. Short links created using API will not show up in 3.
In 4 you can access data related to short links.

New version import.io cannot create API

I have a number of APIs both authenticated and not authenticated, created in earlier versions of import.io.
With the new Windows app I can't create an API, or at least pick one up. The tutorial shows a whole bunch of options, but I only get "CONFIGURE" and "EXPORT". "Configure" only gives me the option of single URL, bulk extract and URLs from another API. But there is no link to give me the API address.
Similarly, EXPORT only provides "USE IN DATA SET".
I asked their support but got this:
Hi Glenn,
Thank you for reaching out.
As you may noticed, we made some changes to our interface.
We moved the into the Export tab (next to configure) and named it
simple API integration.
Let me know if you have any questions.
Thank you,
But when I replied that I don't have that option, I got no reply.
What am I doing wrong?
Glenn.
Import.io support got back t me after I sent a screen video (http://www.evernote.com/l/AAhMJsy7INVHFauEOGFQBgEgJq2IPRSA6AU/). There's a bug in the new Windows desktop app that prevents authenticated APIs from showing.

Titanium : access analytics via API?

I am using the Titanium mobile library (with the Alloy framework), and I have started tracking custom events by using the Ti.Analytics.FeatureEvent() function. I'd like to be able to retrieve the data that I have sent to Appcelerator via an API. is this possible? I wasn't able to find anything in the documentation about it.
As a Appcelerator Studio user you can use https://dashboard.appcelerator.com and there you can see all your analytics events in real time the only thing here is that you have to pay for this service you have to had a enterprise account, I wasn't able to retrieve any analytics data with my free account, also if you have some custom properties in the featureEvent() function like this:
analytics.featureEvent('Reservation.careType', {
type : careType
});
I'am still not able to see my "type" value in the ticket that i raised they've told me that they can send that data with an http://aws.amazon.com/s3/ account.
Hope this helps