DavidOlsson-4985 avatar image
1 Vote"
DavidOlsson-4985 asked DavidOlsson-4985 answered

Azure Marketplace: Update apiVersion for "Microsoft.Resources/deployments" resource

Trying to publish an Azure Application to the Azure Marketplace. The solutions template is working but it is failing a best practices test when I attempt to make it live (Go Live button in the Partner Center portal).

The best practice failure:
`##[error] Api versions must be the latest or under 2 years old (730 days) - API version 2018-05-01 of Microsoft.Resources/deployments is 1057 days old

So I updated the apiVersion for the resource in question and attempted to upload it via the Partner Center portal and I get this error message:
Package acceptance validation error: AzureAppTrackingIdFound The uploaded package has an additional resource in the mainTemplate.json. The resource - "name": "pid-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxx" should not be present. Error code: PAC-AzureAppTrackingIdFound

Strange error since I'm only changing the apiVersion.

When I remove that resource from maintemplate.json I do not see the error in Partner Center. However, the package still fails the same best practice test since it seems there is no way to update the apiVersion for that resource.

Does anybody have experience with this? I'm certain I'm doing something wrong but I don't see where.

I've also created a support case via the Partner Center for this but hoping somebody can point me in the right direction.


David Olsson

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Currently, Microsoft Q&A supports the products listed over here: supported topics (more to be added later on).

Your question about Azure Marketplace is not supported. You might need to ask Azure support about this:

0 Votes 0 ·

Hey @DavidOlsson-4985 . I'm having this same exact problem all the sudden. This was working when I began development a few weeks ago and now getting this error when uploading the final product. Did you find a solve?

0 Votes 0 ·

1 Answer

DavidOlsson-4985 avatar image
1 Vote"
DavidOlsson-4985 answered


It is "solved" but I'm not sure what I did or if this was even caused by me.

I opened a ticket in the Partner Center, waited 2 days for a response, tested this again before I had a scheduled meeting with MS support and it worked. Worked meaning I submitted the solutions template via Partner Center and saw the changes reflected in the pull request.

Before I opened the ticket I tried many different iterations of the "Microsoft.Resources/deployments" resource section. This had no immediate impact and I noticed that many of my submissions never showed up in the pull request ( Also, this seems like a moving target right now given this note I found in the doc (

"For existing Azure apps, a one-time migration began in March 2021 to update the tracking IDs in each plan's technical configuration. Usage from past deployments of those offers will remain tracked in Microsoft systems.

As you update your offers, you no longer need to add the Microsoft.Resources/deployments resource type in your main template file."

Eventually this updated and I now submit the solutions template without the "Microsoft.Resources/deployments" resource in mainTemplate.json. I believe the Partner Center adds this section as I now see this in repo (
" {
"name": "pid-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-partnercenter",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-10-01",
"properties": {
"mode": "Incremental",
"template": {
"$schema": "",
"contentVersion": "",
"resources": []

Hope this helps and hope this post is not deleted as it's off topic for these forums.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.