Skip to content

[Feature-Request] Support customized Azure Environment in AzureCliCredential #673

@Flanker32

Description

@Flanker32

Description

AzureCliCredential only support regions defined in AzureEnvironment, for user defined environment, environment() will return null and cause NullPointException, refers here

Reproduce

  • Register Azure Environment with az cloud register
  • Switch Azure Environment with az cloud set -n
  • Execute below codes
    final Azure azure = Azure.configure().authenticate(AzureCliCredentials.create()).withDefaultSubscription();
    azure.subscriptions().list().forEach(subs -> System.out.println(subs.subscriptionId()));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions