title: Microsoft.ApiManagement/service/diagnostics/loggers in Azure API Manager ARM template
body: <p>This is how the chunk of the ARM template looks:</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;type&quot;: &quot;Microsoft.ApiManagement/service/diagnostics/loggers&quot;,
      &quot;apiVersion&quot;: &quot;2018-01-01&quot;,
      &quot;name&quot;: &quot;[concat(variables('gatewayName'), '/applicationinsights/', variables('gatewayName'))]&quot;,
      &quot;dependsOn&quot;: [
          &quot;[resourceId('Microsoft.ApiManagement/service/diagnostics', variables('gatewayName'), 'applicationinsights')]&quot;,
          &quot;[resourceId('Microsoft.ApiManagement/service', variables('gatewayName'))]&quot;
      ],
      &quot;properties&quot;: {
          &quot;loggerType&quot;: &quot;applicationInsights&quot;,
          &quot;credentials&quot;: {
              &quot;instrumentationKey&quot;: &quot;[reference(resourceId('Microsoft.Insights/components', variables('appInsights')), '2014-04-01').InstrumentationKey]&quot;
          },
          &quot;isBuffered&quot;: true,
          &quot;resourceId&quot;: &quot;[variables('appInsights')]&quot;
      }
  },
  </code></pre>
  <p>For two days our ARM template deployment is failing with the error:<br />
  <code>{&quot;status&quot;:&quot;Failed&quot;,&quot;error&quot;:{&quot;code&quot;:&quot;DeploymentFailed&quot;,&quot;message&quot;:&quot;At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.&quot;,&quot;details&quot;:[{&quot;code&quot;:&quot;BadRequest&quot;,&quot;message&quot;:&quot;{\r\n  \&quot;error\&quot;: {\r\n    \&quot;code\&quot;: \&quot;MethodNotAllowedInPricingTier\&quot;,\r\n    \&quot;message\&quot;: \&quot;Method not allowed in this pricing tier\&quot;,\r\n    \&quot;details\&quot;: null\r\n  }\r\n}&quot;}]}}</code></p>
  <p>Although the error states the pricing tier, there were no changes in the template.
  Verbatim google search <a href="https://www.google.com/search?q=%22Microsoft.ApiManagement%2Fservice%2Fdiagnostics%2Floggers%22&amp;oq=%22Microsoft.ApiManagement%2Fservice%2Fdiagnostics%2Floggers%22&amp;aqs=chrome..69i57j35i39l2j0i30j0i8i30.1301j0j7&amp;sourceid=chrome&amp;ie=UTF-8" rel="nofollow noreferrer">result</a> shows that the resource existed before as the first result <a href="https://docs.microsoft.com/en-us/azure/templates/microsoft.apimanagement/service/diagnostics/loggers" rel="nofollow noreferrer">item</a>.
  The documentation does not mention it anymore in the <a href="http://%20https://docs.microsoft.com/en-us/azure/templates/microsoft.apimanagement/2018-01-01/service/diagnostics?tabs=bicep" rel="nofollow noreferrer"><code>diagnostics</code></a> section.</p>
  <p>GitHub, though, <a href="https://github.com/Azure/azure-resource-manager-schemas/blob/26b9266b19373f37faf25a9a07dfc42418ee94fa/schemas/2018-01-01/Microsoft.ApiManagement.json#L1130" rel="nofollow noreferrer">remembers</a> the resource but mentions different properties within the object:</p>
  <pre class="lang-json prettyprint-override"><code>&quot;service_diagnostics_loggers&quot;: {
        &quot;type&quot;: &quot;object&quot;,
        &quot;properties&quot;: {
          &quot;apiVersion&quot;: {
            &quot;type&quot;: &quot;string&quot;,
            &quot;enum&quot;: [
              &quot;2018-01-01&quot;
            ]
          },
          &quot;name&quot;: {
            &quot;oneOf&quot;: [
              {
                &quot;type&quot;: &quot;string&quot;,
                &quot;pattern&quot;: &quot;(^[\\w]+$)|(^[\\w][\\w\\-]+[\\w]$)&quot;,
                &quot;maxLength&quot;: 80
              },
              {
                &quot;$ref&quot;: &quot;https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression&quot;
              }
            ],
            &quot;description&quot;: &quot;Logger identifier. Must be unique in the API Management service instance.&quot;
          },
          &quot;type&quot;: {
            &quot;type&quot;: &quot;string&quot;,
            &quot;enum&quot;: [
              &quot;Microsoft.ApiManagement/service/diagnostics/loggers&quot;
            ]
          }
        },
        &quot;required&quot;: [
          &quot;apiVersion&quot;,
          &quot;name&quot;,
          &quot;type&quot;
        ],
        &quot;description&quot;: &quot;Microsoft.ApiManagement/service/diagnostics/loggers&quot;
      }
  </code></pre>
  <p>It looks like the resource was removed from the ARM template infrastructure silently. What is wrong my analysis?</p>