Skip to content

add libicu dependecy - https://aka.ms/dotnet-missing-libicu #29928

Description

@cforce

Describe the bug

Process terminated. Couldn't find a valid ICU package installed on the system. Please install libicu (or icu-libs) using your package manager and try again. Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. Please see https://aka.ms/dotnet-missing-libicu for more information.

Related command

az deployment group create

Errors

$ az deployment group create
ERROR: Process terminated. Couldn't find a valid ICU package installed on the system. Please install libicu (or icu-libs) using your package manager and try again. Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. Please see https://aka.ms/dotnet-missing-libicu for more information.
at System.Environment.FailFast(System.String)
at System.Globalization.GlobalizationMode+Settings..cctor()
at System.Globalization.GlobalizationMode+Settings.get_Invariant()
at System.Globalization.GlobalizationMode.get_Invariant()
at System.Globalization.CultureData.CreateCultureWithInvariantData()
at System.Globalization.CultureData.get_Invariant()
at System.Globalization.CultureInfo..cctor()
at System.Globalization.CultureInfo.get_InvariantCulture()
at System.Globalization.NumberFormatInfo.get_InvariantInfo()
at System.Reflection.AssemblyNameParser.ParseVersion(System.String)
at System.Reflection.AssemblyNameParser.Parse()
at System.Reflection.AssemblyNameParser.Parse(System.String)
at System.Reflection.AssemblyName..ctor(System.String)
at System.Reflection.TypeNameParser.ResolveAssembly(System.String)
at System.Reflection.TypeNameParser.GetType(System.String, System.ReadOnlySpan1<System.String>, System.String) at System.Reflection.TypeNameParser+NamespaceTypeName.ResolveType(System.Reflection.TypeNameParser ByRef, System.String) at System.Reflection.TypeNameParser.Parse() at System.Reflection.TypeNameParser.GetTypeReferencedByCustomAttribute(System.String, System.Reflection.RuntimeModule) at System.Reflection.CustomAttributeTypedArgument.ResolveType(System.Reflection.RuntimeModule, System.String) at System.Reflection.CustomAttributeTypedArgument..ctor(System.Reflection.RuntimeModule, System.Reflection.CustomAttributeEncodedArgument) at System.Reflection.RuntimeCustomAttributeData.get_ConstructorArguments() at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetDynamicallyAccessedMemberTypes(System.Type) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.ValidateTrimmingAnnotations(System.Type, System.Type[], System.Type, System.Type[]) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.Populate() at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory..ctor(System.Collections.Generic.ICollection1<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>)
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(System.Collections.Generic.ICollection1<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>, Microsoft.Extensions.DependencyInjection.ServiceProviderOptions) at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection, Microsoft.Extensions.DependencyInjection.ServiceProviderOptions) at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection) at Microsoft.Extensions.Logging.LoggerFactory.Create(System.Action1<Microsoft.Extensions.Logging.ILoggingBuilder>)
at Bicep.Cli.Program.CreateLoggerFactory(Bicep.Cli.IOContext)
at Bicep.Cli.Program.ConfigureServices(Bicep.Cli.IOContext)
at Bicep.Cli.Program..ctor(Bicep.Cli.IOContext, System.Action1<Microsoft.Extensions.DependencyInjection.IServiceCollection>) at Bicep.Cli.Program+<>c__DisplayClass3_0+<<Main>b__0>d.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Bicep.Cli.Program+<>c__DisplayClass3_0+<<Main>b__0>d, bicep, Version=0.30.0.0, Culture=neutral, PublicKeyToken=null]](<<Main>b__0>d ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Bicep.Cli.Program+<>c__DisplayClass3_0+<

b__0>d, bicep, Version=0.30.0.0, Culture=neutral, PublicKeyToken=null]](<b__0>d ByRef)
at Bicep.Cli.Program+<>c__DisplayClass3_0.b__0(System.Threading.CancellationToken)
at Bicep.Cli.Program+d__6.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Bicep.Cli.Program+d__6, bicep, Version=0.30.0.0, Culture=neutral, PublicKeyToken=null]](d__6 ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7[79](https://gitlab.com/XXXXXXXXX/YYYYYYYYY/ZZZZZZ/-/jobs/7857693608#L79)8e]].Start[[Bicep.Cli.Program+<RunWithCancellationAsync>d__6, bicep, Version=0.30.0.0, Culture=neutral, PublicKeyToken=null]](<RunWithCancellationAsync>d__6 ByRef) at Bicep.Cli.Program.RunWithCancellationAsync(System.Func2<System.Threading.CancellationToken,System.Threading.Tasks.Task1<Int32>>) at Bicep.Cli.Program+<Main>d__3.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Bicep.Cli.Program+<Main>d__3, bicep, Version=0.30.0.0, Culture=neutral, PublicKeyToken=null]](<Main>d__3 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Bicep.Cli.Program+d__3, bicep, Version=0.30.0.0, Culture=neutral, PublicKeyToken=null]](d__3 ByRef)
at Bicep.Cli.Program.Main(System.String[])
at Bicep.Cli.Program.(System.String[])
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: exit code 1

Issue script & Debug output

missing dep

Expected behavior

dep included

Environment Summary

azure-cli-2.64.0

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botAzure Deploymentsaz deployment/bicep/stack/deployment-scripts/ts/group exportService AttentionThis issue is responsible by Azure service team.Similar-Issueact-codegen-extensibility-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions