<?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: Deploying the agent to Azure using ARM/Terraform in Cloud platforms</title>
    <link>https://community.dynatrace.com/t5/Cloud-platforms/Deploying-the-agent-to-Azure-using-ARM-Terraform/m-p/214919#M1210</link>
    <description>&lt;P&gt;Was able to install it using a mixture of API calls in powershell called in a yaml pipeline.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2023 09:18:36 GMT</pubDate>
    <dc:creator>pjk2003</dc:creator>
    <dc:date>2023-06-14T09:18:36Z</dc:date>
    <item>
      <title>Deploying the agent to Azure using ARM/Terraform</title>
      <link>https://community.dynatrace.com/t5/Cloud-platforms/Deploying-the-agent-to-Azure-using-ARM-Terraform/m-p/203418#M1062</link>
      <description>&lt;P&gt;Hi, I am trying to deploy the agent to an existing function app in azure using terraform and the guide at:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-cloud-platforms/microsoft-azure-services/integrate-oneagent-on-azure-functions" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-cloud-platforms/microsoft-azure-services/integrate-oneagent-on-azure-functions&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Has anyone got this working? It runs to plan but then fails in apply with this errot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;resources.DeploymentsClient#Validate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidRequestContent" Message="The request content was invalid and could not be deserialized: 'Could not find member 'apiVersion' on object of type 'Template'. Path 'properties.template.apiVersion', line 1, position 132.'."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here's my json&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;{&lt;BR /&gt;      "apiVersion": "2016-08-01",&lt;BR /&gt;      "name": "[parameters('resourceName')]",&lt;BR /&gt;      "type": "Microsoft.Web/sites",&lt;BR /&gt;      "properties": {&lt;BR /&gt;          "name": "[parameters('resourceName')]",&lt;BR /&gt;          "siteConfig": {&lt;BR /&gt;              "alwaysOn": true,&lt;BR /&gt;              "appSettings": [&lt;BR /&gt;                { "Name": "DT_TENANT", "Value": "[parameters('environmentID')]" },&lt;BR /&gt;                { "Name": "DT_API_TOKEN", "Value": "[parameters('APIToken')]" },&lt;BR /&gt;                { "Name": "DT_API_URL", "Value": "[parameters('APIUrl')]" },&lt;BR /&gt;                { "Name": "DT_SSL_MODE", "Value": "default" }&lt;BR /&gt;              ]&lt;BR /&gt;          },&lt;BR /&gt;          "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('resourceName'))]"&lt;BR /&gt;      },&lt;BR /&gt;      "dependsOn": [&lt;BR /&gt;          "[concat('Microsoft.Web/serverfarms/', parameters('resourceName'))]"&lt;BR /&gt;      ],&lt;BR /&gt;      "location": "[parameters('location')]",&lt;BR /&gt;      "resources": [&lt;BR /&gt;          {&lt;BR /&gt;              "apiVersion": "2016-08-01",&lt;BR /&gt;              "name": "Dynatrace",&lt;BR /&gt;              "type": "siteextensions",&lt;BR /&gt;              "dependsOn": [&lt;BR /&gt;                  "[resourceId('Microsoft.Web/sites', parameters('resourceName'))]"&lt;BR /&gt;              ],&lt;BR /&gt;              "properties": { }&lt;BR /&gt;          }&lt;BR /&gt;      ]&lt;BR /&gt;  }&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Jun 2023 08:51:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Cloud-platforms/Deploying-the-agent-to-Azure-using-ARM-Terraform/m-p/203418#M1062</guid>
      <dc:creator>pjk2003</dc:creator>
      <dc:date>2023-06-14T08:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying the agent to azure using ARM/Terraform</title>
      <link>https://community.dynatrace.com/t5/Cloud-platforms/Deploying-the-agent-to-Azure-using-ARM-Terraform/m-p/203422#M1063</link>
      <description>&lt;P&gt;Ive been able to get it to deploy, with some new json, but its now killing the app and overwriting the settings.... I am specifying incremental mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New JSON&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;resource &lt;/SPAN&gt;&lt;SPAN&gt;"azurerm_resource_group_template_deployment" &lt;/SPAN&gt;&lt;SPAN&gt;"this" &lt;/SPAN&gt;{&lt;BR /&gt;  &lt;SPAN&gt;#count        = lookup(var.env_deployent, terraform.workspace, false) == true ? 1 : 0 # *** Is this resource required? ***&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;name                &lt;/SPAN&gt;= &lt;SPAN&gt;"OneAgent-Deployment"&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;resource_group_name &lt;/SPAN&gt;= var.&lt;SPAN&gt;resource_group&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;  deployment_mode     &lt;/SPAN&gt;= &lt;SPAN&gt;"Incremental"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;template_content &lt;/SPAN&gt;= &amp;lt;&amp;lt;TEMPLATE&lt;BR /&gt;{&lt;BR /&gt;"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",&lt;BR /&gt;  "contentVersion": "1.0.0.0",&lt;BR /&gt;      "parameters": {"siteName": {&lt;BR /&gt;            "type": "string",&lt;BR /&gt;            "metadata": {&lt;BR /&gt;                "description": "Web app name where you would like to install extension."&lt;BR /&gt;            }&lt;BR /&gt;        },&lt;BR /&gt;        "location": {&lt;BR /&gt;            "type": "string",&lt;BR /&gt;            "metadata": {&lt;BR /&gt;                "description": "Region of your web app."&lt;BR /&gt;            }&lt;BR /&gt;        },&lt;BR /&gt;        "environmentID": {&lt;BR /&gt;           "type": "string",&lt;BR /&gt;            "metadata": {&lt;BR /&gt;                "description": "The environment ID."&lt;BR /&gt;            }&lt;BR /&gt;        },&lt;BR /&gt;        "APIToken": {&lt;BR /&gt;            "type": "string",&lt;BR /&gt;            "metadata": {&lt;BR /&gt;                "description": "The PaaS token."&lt;BR /&gt;            }&lt;BR /&gt;        },&lt;BR /&gt;        "APIUrl": {&lt;BR /&gt;            "type": "string",&lt;BR /&gt;            "metadata": {&lt;BR /&gt;                "description": "The server URL, if you want to configure an alternative communication endpoint."&lt;BR /&gt;            }&lt;BR /&gt;        },&lt;BR /&gt;        "SSLMode": {&lt;BR /&gt;            "type": "string",&lt;BR /&gt;            "metadata": {&lt;BR /&gt;                "description": "To automatically accept all self-signed TLS certificates, set the value to all."&lt;BR /&gt;            },&lt;BR /&gt;            "allowedValues": [&lt;BR /&gt;                "default", "all"&lt;BR /&gt;            ],&lt;BR /&gt;            "defaultValue": "default"&lt;BR /&gt;        },&lt;BR /&gt;        "networkZone": {&lt;BR /&gt;            "type": "string",&lt;BR /&gt;            "metadata": {&lt;BR /&gt;                "description": "Your network zone. Set the value you want for your App Service instance. See network zones for more information."&lt;BR /&gt;            },&lt;BR /&gt;            "defaultValue": ""&lt;BR /&gt;        }&lt;BR /&gt;},&lt;BR /&gt;       "resources": [&lt;BR /&gt;        {&lt;BR /&gt;            "apiVersion": "2020-12-01",&lt;BR /&gt;            "name": "[parameters('siteName')]",&lt;BR /&gt;            "type": "Microsoft.Web/sites",&lt;BR /&gt;            "properties": {&lt;BR /&gt;                "name": "[parameters('siteName')]",&lt;BR /&gt;                "siteConfig": {&lt;BR /&gt;                    "appSettings": [&lt;BR /&gt;                        { "Name": "DT_TENANT", "Value": "[parameters('environmentID')]" },&lt;BR /&gt;                        { "Name": "DT_API_TOKEN", "Value": "[parameters('APIToken')]" },&lt;BR /&gt;                        { "Name": "DT_API_URL", "Value": "[parameters('APIUrl')]" },&lt;BR /&gt;                        { "Name": "DT_SSL_MODE", "Value": "[parameters('SSLMode')]" },&lt;BR /&gt;                        { "Name": "DT_NETWORK_ZONE", "Value": "[parameters('networkZone')]"}&lt;BR /&gt;                    ]&lt;BR /&gt;                }&lt;BR /&gt;            },&lt;BR /&gt;            "dependsOn": [],&lt;BR /&gt;            "location": "[parameters('location')]",&lt;BR /&gt;            "resources": [&lt;BR /&gt;                {&lt;BR /&gt;                    "apiVersion": "2020-12-01",&lt;BR /&gt;                    "name": "Dynatrace",&lt;BR /&gt;                    "type": "siteextensions",&lt;BR /&gt;                    "dependsOn": [&lt;BR /&gt;                        "[resourceId('Microsoft.Web/sites/', parameters('siteName'))]"&lt;BR /&gt;                    ]&lt;BR /&gt;                }&lt;BR /&gt;            ]&lt;BR /&gt;        }&lt;BR /&gt;    ],&lt;BR /&gt;  "outputs": {}&lt;BR /&gt;}&lt;BR /&gt;TEMPLATE&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jan 2023 17:46:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Cloud-platforms/Deploying-the-agent-to-Azure-using-ARM-Terraform/m-p/203422#M1063</guid>
      <dc:creator>pjk2003</dc:creator>
      <dc:date>2023-01-25T17:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying the agent to azure using ARM/Terraform</title>
      <link>https://community.dynatrace.com/t5/Cloud-platforms/Deploying-the-agent-to-Azure-using-ARM-Terraform/m-p/203424#M1064</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like there's an option to install it via the Azure portal. Would you be able to try it that way and see if you're getting the same errors?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 18:18:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Cloud-platforms/Deploying-the-agent-to-Azure-using-ARM-Terraform/m-p/203424#M1064</guid>
      <dc:creator>danielD</dc:creator>
      <dc:date>2023-01-25T18:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying the agent to azure using ARM/Terraform</title>
      <link>https://community.dynatrace.com/t5/Cloud-platforms/Deploying-the-agent-to-Azure-using-ARM-Terraform/m-p/203475#M1065</link>
      <description>&lt;P&gt;It installs fine manually.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 09:19:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Cloud-platforms/Deploying-the-agent-to-Azure-using-ARM-Terraform/m-p/203475#M1065</guid>
      <dc:creator>pjk2003</dc:creator>
      <dc:date>2023-01-26T09:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying the agent to Azure using ARM/Terraform</title>
      <link>https://community.dynatrace.com/t5/Cloud-platforms/Deploying-the-agent-to-Azure-using-ARM-Terraform/m-p/214919#M1210</link>
      <description>&lt;P&gt;Was able to install it using a mixture of API calls in powershell called in a yaml pipeline.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 09:18:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Cloud-platforms/Deploying-the-agent-to-Azure-using-ARM-Terraform/m-p/214919#M1210</guid>
      <dc:creator>pjk2003</dc:creator>
      <dc:date>2023-06-14T09:18:36Z</dc:date>
    </item>
  </channel>
</rss>

