Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUERY] Can't connect to Azure Government #967

Closed
diegopatinor opened this issue Jun 10, 2022 · 1 comment · Fixed by Azure/azure-sdk-for-java#29409
Closed

[QUERY] Can't connect to Azure Government #967

diegopatinor opened this issue Jun 10, 2022 · 1 comment · Fixed by Azure/azure-sdk-for-java#29409
Assignees
Labels
azure-spring All azure-spring related issues bug This issue requires a change to an existing behavior in the product in order to be resolved. client This issue points to a problem in the data-plane of the library.
Milestone

Comments

@diegopatinor
Copy link

I'm not sure if it's a question or an issue, so I'll try here first.

I have the following configuration to connect to a storage account queue in azure government

  cloud:
    azure:
      storage:
        queue:
          credential:
            client-id: <client-id>
            client-secret: <client-secret>
          profile:
            tenant-id: <tenant-id>
            cloud-type: AZURE_US_GOVERNMENT
            environment:
              active-directory-endpoint: https://login.microsoftonline.us
              active-directory-graph-endpoint: https://graph.microsoft.us
          endpoint: <endpoint>

But I am getting the following error

Azure Identity => ERROR in getToken() call for scopes [https://storage.azure.com/.default]: AADSTS900382: Confidential Client is not supported in Cross Cloud request

How can I change the authorization host?

The only solution I found so far is to set the following environment variable.

AZURE_AUTHORITY_HOST=https://login.microsoftonline.us/

I am using version 4.0.0, any suggestions?

Thanks in advance.

@diegopatinor diegopatinor added the azure-spring All azure-spring related issues label Jun 10, 2022
@diegopatinor diegopatinor changed the title [Query] Can't connect to Azure Government [QUERY] Can't connect to Azure Government Jun 10, 2022
@saragluna saragluna added this to the [2022] July milestone Jun 13, 2022
@saragluna saragluna self-assigned this Jun 13, 2022
@saragluna saragluna moved this to Todo in Spring Cloud Azure Jun 13, 2022
@saragluna
Copy link
Contributor

Thanks @diegopatinor for reaching out, we will look into this.

@saragluna saragluna added bug This issue requires a change to an existing behavior in the product in order to be resolved. client This issue points to a problem in the data-plane of the library. labels Jun 13, 2022
Repository owner moved this from Todo to Done in Spring Cloud Azure Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure-spring All azure-spring related issues bug This issue requires a change to an existing behavior in the product in order to be resolved. client This issue points to a problem in the data-plane of the library.
Projects
None yet
2 participants