<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Select Services based on AZ subscription UUID in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Select-Services-based-on-AZ-subscription-UUID/m-p/247046#M32563</link>
    <description>&lt;P&gt;So you should create a tag called "Subscription:&amp;lt;value&amp;gt;". Then your only option is the entity selector with a from relationship to the Azure subscription included (I assume these services will have the relationship but please check &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ).&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;type(CUSTOM_DEVICE),fromRelationships.belongsTo(type("AZURE_SUBSCRIPTION"),azureSubscriptionUuid("&amp;lt;entertheIDhere&amp;gt;"))&amp;nbsp;&lt;/P&gt;&lt;P&gt;A list of all entity types for Azure can be found at the end of this page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-cloud-platforms/microsoft-azure-services/azure-integrations/azure-cloud-services-metrics#expand--list-of-azure-services-with-entities-and-tags" target="_blank"&gt;All Azure cloud services - Dynatrace Docs&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2024 12:58:32 GMT</pubDate>
    <dc:creator>marina_pollehn</dc:creator>
    <dc:date>2024-05-31T12:58:32Z</dc:date>
    <item>
      <title>Select Services based on AZ subscription UUID</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Select-Services-based-on-AZ-subscription-UUID/m-p/247030#M32562</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;We want to filter the services that are created by Azure Entities (AZ Funtions, App Services etc.) for a specific subscription.&lt;/P&gt;&lt;P&gt;By filtering, we mean either with a tagging rule or management zone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone ever done something like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 12:13:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Select-Services-based-on-AZ-subscription-UUID/m-p/247030#M32562</guid>
      <dc:creator>Theodore_x86</dc:creator>
      <dc:date>2024-05-31T12:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select Services based on AZ subscription UUID</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Select-Services-based-on-AZ-subscription-UUID/m-p/247046#M32563</link>
      <description>&lt;P&gt;So you should create a tag called "Subscription:&amp;lt;value&amp;gt;". Then your only option is the entity selector with a from relationship to the Azure subscription included (I assume these services will have the relationship but please check &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ).&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;type(CUSTOM_DEVICE),fromRelationships.belongsTo(type("AZURE_SUBSCRIPTION"),azureSubscriptionUuid("&amp;lt;entertheIDhere&amp;gt;"))&amp;nbsp;&lt;/P&gt;&lt;P&gt;A list of all entity types for Azure can be found at the end of this page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-cloud-platforms/microsoft-azure-services/azure-integrations/azure-cloud-services-metrics#expand--list-of-azure-services-with-entities-and-tags" target="_blank"&gt;All Azure cloud services - Dynatrace Docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 12:58:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Select-Services-based-on-AZ-subscription-UUID/m-p/247046#M32563</guid>
      <dc:creator>marina_pollehn</dc:creator>
      <dc:date>2024-05-31T12:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select Services based on AZ subscription UUID</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Select-Services-based-on-AZ-subscription-UUID/m-p/247051#M32565</link>
      <description>&lt;P&gt;Hi Marina. Actually we want a Service entity and not a custom device. Services are not directly linked to Azure metadata such as Subscription UUID. So basically the query is:&lt;/P&gt;&lt;P&gt;Services that run to Azure App Services that belong to a specific subscription.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 13:21:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Select-Services-based-on-AZ-subscription-UUID/m-p/247051#M32565</guid>
      <dc:creator>Theodore_x86</dc:creator>
      <dc:date>2024-05-31T13:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select Services based on AZ subscription UUID</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Select-Services-based-on-AZ-subscription-UUID/m-p/247093#M32572</link>
      <description>&lt;P&gt;&amp;nbsp;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/50066"&gt;@Theodore_x86&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I think the easiest way to get services into in your Azure App Services for subscription, is configure Services Principal with only one Subscription.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;but if is not possible, this can useful.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;It is important to install OneAgent in the Azure application service (each service in Azure application service).&lt;/LI&gt;&lt;LI&gt;Configurate Tag "Subscription &lt;SPAN&gt;UUID&lt;/SPAN&gt;":"XXXXXX" and Tag for "identify Azure app Services" in the services&lt;/LI&gt;&lt;LI&gt;Filter the Services by Tag in the section "Services"&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This way it will be much more manageable for you to achieve what you need. In addition, you will have much more information on very useful metrics for each of your services and you will be able to take advantage of it all with Dynatrace.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PierreGutierrez_0-1717260997328.png" style="width: 500px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20243i6A7A8D88B60FB698/image-dimensions/500x250?v=v2" width="500" height="250" role="button" title="PierreGutierrez_0-1717260997328.png" alt="PierreGutierrez_0-1717260997328.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;That way you can get the list of services running in Azure App Services filtered by subscription&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope it's helpful &lt;span class="lia-unicode-emoji" title=":flexed_biceps:"&gt;💪&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2024 17:01:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Select-Services-based-on-AZ-subscription-UUID/m-p/247093#M32572</guid>
      <dc:creator>PierreGutierrez</dc:creator>
      <dc:date>2024-06-01T17:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Select Services based on AZ subscription UUID</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Select-Services-based-on-AZ-subscription-UUID/m-p/247173#M32581</link>
      <description>&lt;P&gt;Hello Pierre.&lt;/P&gt;&lt;P&gt;I am not sure I understand completely. If I manage to put a tag in the OneAgent installation will this be attached to the service or to the host running the App Service? And why are you using 2 tags? Shouldn't the first tag with the subscriptionID be enough?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 10:47:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Select-Services-based-on-AZ-subscription-UUID/m-p/247173#M32581</guid>
      <dc:creator>Theodore_x86</dc:creator>
      <dc:date>2024-06-03T10:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select Services based on AZ subscription UUID</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Select-Services-based-on-AZ-subscription-UUID/m-p/247231#M32592</link>
      <description>&lt;P&gt;We just discovered the following page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/tags-and-management-zones-azure#entity-selector-examples" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/shortlink/tags-and-management-zones-azure#entity-selector-examples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It basically explains everything and it can be proven quite handy for entity selectors.&lt;/P&gt;&lt;P&gt;For this case the expression should be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;type(SERVICE), fromRelationships.runsOnOsi(type(HOST), toRelationships.isPgAppOf(type(AZURE_FUNCTION_APP),fromRelationships.isAccessibleBy(type(AZURE_SUBSCRIPTION),entityName("Cloud Dev Subcription"))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all for your replies!&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 15:02:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Select-Services-based-on-AZ-subscription-UUID/m-p/247231#M32592</guid>
      <dc:creator>Theodore_x86</dc:creator>
      <dc:date>2024-06-03T15:02:01Z</dc:date>
    </item>
  </channel>
</rss>

