# Maintenance Windows based on Azure Tag Values

**URL:** <https://community.dynatrace.com/t/maintenance-windows-based-on-azure-tag-values/43039>\
**Category:** Cloud platforms\
**Tags:** azure\
**Created:** [December 5, 2023, 4:30pm UTC](https://community.dynatrace.com/t/maintenance-windows-based-on-azure-tag-values/43039 "2023-12-05T16:30:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GregOReilly](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gregoreilly/32/41879_2.png) [@GregOReilly](https://community.dynatrace.com/u/GregOReilly)\
**Post date:** [December 5, 2023, 4:30pm UTC](https://community.dynatrace.com/t/maintenance-windows-based-on-azure-tag-values/43039/1 "2023-12-05T16:30:23Z")

</div>

Hello community,

I have a customer use case which is pretty cool, but think it may result in an RFE, but thought I’d share.

In Azure, my customer has added a **ScheduledDowntime** TAG. The values are in **CET FRI2100-SUN0000** where Azure will detect the tag vaue and shutdown the VM’s during that time period. As you can imagine, with 50-60 subscriptions, the times are all over the place. It saves the customer a lot costs at weekends.

Anyway, we have been asked to apply automatic maintenance windows for these value pairs. ie

ScheduledDowntime=FRI2100-SUN0000

ApplicationName=SALES

If we detect any anomalies, DAVIS detects OneAgent issues for servers matching the TAG value that the problems are surpressed for the time period.

Is this possible? Is such feature in the solution already, and I cannot see it?

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [December 5, 2023, 7:00pm UTC](https://community.dynatrace.com/t/maintenance-windows-based-on-azure-tag-values/43039/2 "2023-12-05T19:00:10Z")

</div>

Hi&nbsp;[@GregOReilly](https://community.dynatrace.com/user/47954)

I think that you should develop a custom integration using Dynatrace API and Azure API. This script or application would periodically check Azure for VMs with the ScheduledDowntime tag and then use Dynatrace API to set maintenance windows for the corresponding time frames.

Radek

---

<div class="post-metadata">

**Author:** ![GregOReilly](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gregoreilly/32/41879_2.png) [@GregOReilly](https://community.dynatrace.com/u/GregOReilly)\
**Post date:** [December 6, 2023, 8:36am UTC](https://community.dynatrace.com/t/maintenance-windows-based-on-azure-tag-values/43039/3 "2023-12-06T08:36:00Z")

</div>

This is exactly what I was thinking. In fact, we could also extend to AWS, GCP, VMWARE and others based on a TAG value.

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [December 6, 2023, 9:10am UTC](https://community.dynatrace.com/t/maintenance-windows-based-on-azure-tag-values/43039/4 "2023-12-06T09:10:14Z")

</div>

Exactly, yes 👍
