jeffhollan / LogicAppTemplateCreator

Script to convert Logic Apps into templates for deployment
MIT License
143 stars 74 forks source link

Get-LogicAppTemplate - Aggregation Exception #107

Open dgroh opened 3 years ago

dgroh commented 3 years ago

I'm trying to import my template from my Logic App and I get the following exception:

Get-LogicAppTemplate : Aggregation Exception thrown, One or more errors occurred., first Exception message is: Object reference not set to an instance of an object., for more information read the output file. At line:1 char:1

  • Get-LogicAppTemplate -LogicApp logic-app-key-vault-test -ResourceGrou ...
  • CategoryInfo : NotSpecified: (:) [Get-LogicAppTemplate], Exception
  • FullyQualifiedErrorId : System.Exception,LogicAppTemplate.GeneratorCmdlet

I have double checked everything, Subscription Id is correct. Resource names are also correct. I would almost think that this happens because I have two active Subscriptions with the same name, because the same command works in another tenant with the same resource.

dgroh commented 3 years ago

The same error is ocurring for other logic apps, too where there is only one subscription...

MLogdberg commented 3 years ago

Could it be that you need to set the -tenant property? Since it will take one of them when logging in, and if it takes wrong you will get an issue.