什么是国家云上Azure存储的ResourceId?

时间:2018-11-29 05:44:53

标签: azure-active-directory azure-storage

我想使用authContext.AcquireTokenAsync方法从Azure AD获取访问令牌以访问存储帐户。

// Acquire an access token from Azure AD. 
    AuthenticationResult result = authContext.AcquireTokenAsync(ResourceId, 
                                                                "<client-id>", 
                                                                new Uri(@"<client-redirect-uri>"), 
                                                                new PlatformParameters(PromptBehavior.Auto)).Result;

请参见Authenticate with Azure Active Directory from an application for access to blobs and queues (Preview)

根据doc,我知道对于公共云,ResourceIdhttps://storage.azure.com/。对于国家云来说,它们是否有所不同?

0 个答案:

没有答案