Azure / bicep

Bicep is a declarative language for describing and deploying Azure resources
MIT License
3.25k stars 753 forks source link

`brm generate` throws exception on bicep-registry-modules/modules/app/app-configuration #13330

Closed StephenWeatherford closed 8 months ago

StephenWeatherford commented 8 months ago

1) cd to repos/bicep-registry-modules/modules/compute/event-hub 2) "brm generate"

[14:12:55 FTL] Unexpected exception.
System.Collections.Generic.KeyNotFoundException: The given key 'location' was not present in the dictionary.
   at System.Collections.Immutable.ImmutableDictionary`2.get_Item(TKey key)
   at Bicep.RegistryModuleTool.ModuleFiles.MainArmTemplateFile.ToParameter(JsonProperty parameterProperty)
   at System.Linq.Utilities.<>c__DisplayClass2_0`3.<CombineSelectors>b__0(TSource x)
   at System.Linq.Utilities.<>c__DisplayClass2_0`3.<CombineSelectors>b__0(TSource x)
   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
   at System.Linq.Enumerable.UnionIterator`1.MoveNext()
   at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
   at Bicep.RegistryModuleTool.Extensions.EnumerableExtensions.ToMarkdownTable[T](IEnumerable`1 enumerable, Func`2 columnAlignmentSelector)
   at Bicep.RegistryModuleTool.ModuleFiles.ReadmeFile.BuildParametersTable(StringBuilder builder, IEnumerable`1 parameters)
   at Bicep.RegistryModuleTool.ModuleFiles.ReadmeFile.Generate(IFileSystem fileSystem, MainArmTemplateFile mainArmTemplateFile)
   at Bicep.RegistryModuleTool.Commands.GenerateCommand.CommandHandler.<>c__DisplayClass3_0.<InvokeInternal>b__4()
   at Bicep.RegistryModuleTool.Commands.GenerateCommand.CommandHandler.GenerateFileAndLogInformation[T](String fileFriendlyName, Func`1 fileGenerator)
   at Bicep.RegistryModuleTool.Commands.GenerateCommand.CommandHandler.InvokeInternal(InvocationContext context)
   at Bicep.RegistryModuleTool.Commands.BaseCommandHandler.InvokeAsync(InvocationContext context)
----------------------------------------------------------------------------------------------------------------------------------------------------------------
StephenWeatherford commented 8 months ago

Apparently fixed with 0.26