Closed saragluna closed 4 years ago
Please ping us for Azurestack environment access
@saragluna , Thank you for reporting this issue. This might be connected to this issue. https://github.com/Azure/azure-sdk-for-java/issues/11830#issuecomment-640859500
I'll investigate further and will update you.
@g2vinay Could you please let us know when azure-identity will be supported for Azure Stack (ADFS)?
@vishsram We will be looking to add support for Azure Stack in azure-identity in this semester.
Related #13460
@saragluna To authenticate against Azure Stack, you'll need to specify tenantId and authority host of the Azure Stack in the credential correctly.
ClientCertificateCredential certificateCredential = new ClientCertificateCredentialBuilder()
.authorityHost("<Az-Stack-Auth-host")
.tenantId("Az-Stack-Tenant-Id") // "adfs" if the Az stack is backed by ADFS.
...
.build();
if your Azure Stack is backed by ADFS then the tenantId you need to use is adfs
and the authority host can bed asked from the Azure Stack operator / administrator.
@g2vinay thanks for the update! @bganapa we may need your help on the authority host part.
@saragluna AuthorityHost will be different for each AzureStack Instance. This can be obtained from accessing the ARM metadata endpoint.
@bganapa could you elaborate more on the ARM metadata endpoint since I've never heard that before. If we access an AzureStack instance, with you helping provide the info, could this metadata be found on the portal?
@g2vinay has this support of Azure Stack been released yet?
@saragluna , based on our Investigation, all of our credentials except the Interactive Browser Credential in the Identity SDK already support Azure Stack. You just need to provide the correct parameters to the credentials for them to work against Azure Stack. You can use the latest stable release:
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<version>1.1.2</version>
</dependency>
So, in your case, ClientCertificateCredential should work, assuming correct parameters are passed in as indicated below:
ClientCertificateCredential certificateCredential = new ClientCertificateCredentialBuilder()
.authorityHost("<Az-Stack-Auth-host")
.tenantId("Az-Stack-Tenant-Id") // "adfs" if the Az stack is backed by ADFS.
...
.build();
To figure out the authority host for your Azure stack, you can run this command if you have access to the Azure Stack else have your Azure Stack Administrator run this command:
Get-AzEnvironment -Name <NameOfAzureStack>
The beta release going out this week will also support InteractiveBrowserCredential
against Azure Stack.
@g2vinay Thanks for the explanation!
Closing this issue, as it has been resolved on the spring team's end.
Query/Question Does the
azure-identity
support Azure Stack now?Why is this not a Bug or a feature Request? When I build a Key Vault secret client with
ClientCertificateCredential
and try to access a key vault provisioned on Azure Stack, I got the error message:And when I tried version 1.1.0-beta.5, the application hung with no output.
Setup (please complete the following information if applicable):
Version of the Library used: 1.0.7
Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report