0

I want to create an Azure "Managed App" definition, in preparation for making an Azure Marketplace offering. I am following these MS instructions, and I had specifically been using this MS example managed app. There were was an error(s) in the documentation, which I posted to the MS team (along with my proposed fixes). Nevertheless, I did get the MS example working!

My next step was to replace the original MS sample deployment bundle...

https://raw.githubusercontent.com/Azure/azure-managedapp-samples/master/Managed%20Application%20Sample%20Packages/201-managed-storage-account/managedstorage.zip

...with my own deployment bundle...

https://github.com/brentarias/azureStaticEmpty/raw/master/baselinepocapp.zip

This didn't work. When issuing the az managedapp definition create command, I received the following error:

(DownloadItemFromBlobFailed) Download of the item from blob at 'https://github.com/brentarias/azureStaticEmpty/raw/master/baselinepocapp.zip' failed due to a failed connection. Code: DownloadItemFromBlobFailed Message: Download of the item from blob at 'https://github.com/brentarias/azureStaticEmpty/raw/master/baselinepocapp.zip' failed due to a failed connection.

It makes no sense to have a "connection" error, so I assumed that the REAL error was something inside of my deployment bundle. To test that theory, I copied the original MS sample bundle to a variety of places that I control, including Azure BLOB storage. One example location I placed the copied MS deployment file was here:

https://github.com/brentarias/azureStaticEmpty/raw/master/managedstorage.zip

When using this latter URL, I still received the same "connection" error.

In short, the only way for me to bypass the "connection" error is if I use the original sample MS deployment, from the original path that MS supplied. Incidentally, I also tried a variant URL of the original MS sample:

https://github.com/Azure/azure-managedapp-samples/raw/master/Managed%20Application%20Sample%20Packages/201-managed-storage-account/managedstorage.zip

Suddenly the deployment works! However, that location is still the original MS-owned repo "azure-managedapp-samples". This simply seems to confirm that if the deployment does not come from a MS-owned repo, I am then unable to make the deployment.

What am I doing wrong?

Update 2/3/2023

I finally found a way to make this work! When using an Azure storage account, simply having a publicly visible URL for the deployment bundle is insufficient. I need to have a "shared access signature" URL for that deployment bundle...and then the az managedapp definition create command works!

However, my overall question still is unanswered:

  • What are the valid file-share platforms that the az managedapp definition create supports? Besides github and Azure BLOB, what else?
  • What exact configuration do I need to make with a github raw link, before it is considered "kosher" by the managedapp definition create?
Brent Arias
  • 29,277
  • 40
  • 133
  • 234

0 Answers0