<?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: Installing OneAgent VM Extension in Azure via PowerShell in Infra Only mode in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/Installing-OneAgent-VM-Extension-in-Azure-via-PowerShell-in/m-p/224397#M1041</link>
    <description>&lt;P&gt;Nice one Jonathan, do I require admin privileges to the VM to be able to carry out the installation? Also must I log in to the VMs be able to carry out the installation&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Oct 2023 16:28:32 GMT</pubDate>
    <dc:creator>Ados1234</dc:creator>
    <dc:date>2023-10-02T16:28:32Z</dc:date>
    <item>
      <title>Installing OneAgent VM Extension in Azure via PowerShell in Infra Only mode</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Installing-OneAgent-VM-Extension-in-Azure-via-PowerShell-in/m-p/185070#M688</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recently did a OneAgent deployment to a large volume of Virtual Machines in Azure via PowerShell and noticed that the Dynatrace Documentation doesnt cover how to install the Dynatrace OneAgent VM Extension in Infrastructure Only Mode. (The Documentation uses the depreciated AzureRM Module and doesnt cover the syntax for the settings to enable Infrastructure Only mode on installation). Thought i would drop this here in case anyone runs into the same issue, hopefully it makes someone's life a little easier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This script can be modified to suit any specific situation, in this example you can simply export the VM's from the Virtual Machine blade in Azure into a csv (in this case i targeted windows VM's) and change the column header "Resource Group" to "ResourceGroup". Good for large deployments where you only want to target a single subscription at a time for a rollout. Simply fill in the &amp;lt; &amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remember to Import the .Az module and use Get-AzSubscription to find the correct subscription ID and then Set-AzContext -Subscription &amp;lt;Subscription ID Here&amp;gt; to set the context to the desired subscription&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PowerShell Script:&lt;/P&gt;
&lt;P&gt;$Importfile=Import-csv &amp;lt;File Path Here&amp;gt;&lt;/P&gt;
&lt;P&gt;Foreach ($Import in $Imports) {&lt;/P&gt;
&lt;P&gt;$ResourceGroup=$Import.ResourceGroup&lt;/P&gt;
&lt;P&gt;$VMName=$Import.Name&lt;/P&gt;
&lt;P&gt;$Location=$Import.Location&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Set-AzVmExtension -Name Dynatrace.OneAgent -Publisher dynatrace.ruxit -ResourceGroupName $ResourceGroup -Location $Location -VMName $Name -ExtensionType "oneAgentwindows" -TypeHandlerVersion "1.0" -NoWait -Settings @{ "tenantId"="&amp;lt;TenantID Here&amp;gt;"; "token"="&amp;lt;Token Here&amp;gt;"; "enableLogAnalytics"="yes"; “installerArguments”=”--set-infra-only=true --set-host-group=&amp;lt;Host Group Name Here&amp;gt;” } -erroraction continue }&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 14:17:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Installing-OneAgent-VM-Extension-in-Azure-via-PowerShell-in/m-p/185070#M688</guid>
      <dc:creator>JonathanV</dc:creator>
      <dc:date>2022-04-19T14:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Installing OneAgent VM Extension in Azure via PowerShell in Infra Only mode</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Installing-OneAgent-VM-Extension-in-Azure-via-PowerShell-in/m-p/202264#M689</link>
      <description>&lt;P&gt;Great Tip&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/49372"&gt;@JonathanV&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 15:55:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Installing-OneAgent-VM-Extension-in-Azure-via-PowerShell-in/m-p/202264#M689</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2023-01-11T15:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Installing OneAgent VM Extension in Azure via PowerShell in Infra Only mode</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Installing-OneAgent-VM-Extension-in-Azure-via-PowerShell-in/m-p/224397#M1041</link>
      <description>&lt;P&gt;Nice one Jonathan, do I require admin privileges to the VM to be able to carry out the installation? Also must I log in to the VMs be able to carry out the installation&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 16:28:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Installing-OneAgent-VM-Extension-in-Azure-via-PowerShell-in/m-p/224397#M1041</guid>
      <dc:creator>Ados1234</dc:creator>
      <dc:date>2023-10-02T16:28:32Z</dc:date>
    </item>
  </channel>
</rss>

