I'm having trouble creating and deploying an ARM template

Edward Danganan 0 Reputation points
2025-06-25T22:56:42.0733333+00:00

When I tried to export an ARM template, I get the following:

{"code":"ExportTemplateCompletedWithErrors","message":"Export template operation completed with errors. Some resources were not exported. Please see details for more information.","details":[{"code":"ResourceTypeSchemaNotFound","target":"Microsoft.DataFactory/factories","message":"The schema of resource type 'Microsoft.DataFactory/factories' is not available. Resources of this type will not be exported to the template."},{"code":"ExportTemplateProviderError","target":"microsoft.insights/components/pricingPlans","message":"Could not get resources of the type 'microsoft.insights/components/pricingPlans'. Resources of this type will not be exported."},{"code":"ExportTemplateProviderError","target":"microsoft.insights/components/myanalyticsItems","message":"Could not get resources of the type 'microsoft.insights/components/myanalyticsItems'. Resources of this type will not be exported."},{"code":"ExportTemplateProviderError","target":"Microsoft.Web/sites/functions","message":"Could not get resources of the type 'Microsoft.Web/sites/functions'. Resources of this type will not be exported."},{"code":"ExportTemplateProviderError","target":"Microsoft.Web/sites/extensions","message":"Could not get resources of the type 'Microsoft.Web/sites/extensions'. Resources of this type will not be exported."},{"code":"ExportTemplateProviderError","target":"Microsoft.Web/sites/siteextensions","message":"Could not get resources of the type 'Microsoft.Web/sites/siteextensions'. Resources of this type will not be exported."},{"code":"ExportTemplateProviderError","target":"Microsoft.Web/sites/sitecontainers","message":"Could not get resources of the type 'Microsoft.Web/sites/sitecontainers'. Resources of this type will not be exported."},{"code":"ExportTemplateProviderError","target":"Microsoft.Web/sites/hybridconnection","message":"Could not get resources of the type 'Microsoft.Web/sites/hybridconnection'. Resources of this type will not be exported."},{"code":"ExportTemplateProviderError","target":"Microsoft.DocumentDB/databaseAccounts/graphs","message":"Could not get resources of the type 'Microsoft.DocumentDB/databaseAccounts/graphs'. Resources of this type will not be exported."},{"code":"ExportTemplateProviderError","target":"Microsoft.DocumentDB/databaseAccounts/mongodbRoleDefinitions","message":"Could not get resources of the type 'Microsoft.DocumentDB/databaseAccounts/mongodbRoleDefinitions'. Resources of this type will not be exported."},{"code":"ExportTemplateProviderError","target":"Microsoft.DocumentDB/databaseAccounts/mongodbUserDefinitions","message":"Could not get resources of the type 'Microsoft.DocumentDB/databaseAccounts/mongodbUserDefinitions'. Resources of this type will not be exported."},{"code":"ExportTemplateProviderError","target":"Microsoft.ContainerService/managedClusters/privateEndpointConnections","message":"Could not get resources of the type 'Microsoft.ContainerService/managedClusters/privateEndpointConnections'. Resources of this type will not be exported."},{"code":"ExportTemplateProviderError","target":"Microsoft.RecoveryServices/vaults/certificates","message":"Could not get resources of the type 'Microsoft.RecoveryServices/vaults/certificates'. Resources of this type will not be exported."},{"code":"ExportTemplateProviderError","target":"Microsoft.RecoveryServices/vaults/extendedInformation","message":"Could not get resources of the type 'Microsoft.RecoveryServices/vaults/extendedInformation'. Resources of this type will not be exported."}]}

Please advise. Thanks.

Azure Resource Mover
Azure Resource Mover
An Azure service used for moving multiple resources between Azure regions.
{count} votes

1 answer

Sort by: Most helpful
  1. Divyesh Govaerdhanan 8,345 Reputation points
    2025-06-25T23:38:32.6266667+00:00

    Hello,

    Welcome to Microsoft Q&A,

    ARM Template is attempting to export a full template of your resource group, but several resource types are not currently supported for template export. This results in a partial template and the error message you’re seeing.

    Some resource types and providers (like Microsoft.Web, Microsoft.DataFactory, etc.) do not return enough metadata for ARM to export reliably.

    You can manually script the resources that are not supported for export.

    az resource show --ids <resourceId> --api-version <latest>
    

    The recommended approach is to use Bicep instead of the raw ARM template as it supports modularization and better tooling.

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/overview?tabs=bicep

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/export-template-portal

    Please Upvote and accept the answer if it helps!!

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.