From 561a04c41a6debf1f6b57df922c149b2f4fd0eb3 Mon Sep 17 00:00:00 2001 From: Justin Dyer Date: Tue, 11 Feb 2025 16:56:27 -0500 Subject: [PATCH] deployToAzure button to use raw files from github --- docs/layouts/partials/templates/template-tabs.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/layouts/partials/templates/template-tabs.html b/docs/layouts/partials/templates/template-tabs.html index 82abc6832..1d346164a 100644 --- a/docs/layouts/partials/templates/template-tabs.html +++ b/docs/layouts/partials/templates/template-tabs.html @@ -5,6 +5,9 @@ {{ $filename := printf "%s.json" $alert_name | printf "%s"}} {{ $file := path.Join "services" $category $type "templates/arm" $filename }} {{ $file2 := path.Join "services" $category $type "templates/policy-arm" $filename }} +{{ $urlprefix := "https://raw.githubusercontent.com/Azure/azure-monitor-baseline-alerts/refs/heads/main/services" }} +{{ $fileURL := printf "%s/%s/%s/%s/%s" $urlprefix $category $type "templates/arm" $filename }} +{{ $fileURL2 := printf "%s/%s/%s/%s/%s" $urlprefix $category $type "templates/policy-arm" $filename }}
Deploy Alert

- + - +

@@ -33,10 +36,10 @@