0

我正在尝试使用检索保存在我的密钥保管库中的所有密钥

keyVaultClient.GetKeyAsync(keyVaultVaultAddress).GetAwaiter().GetResult();

但低于错误

403 - Forbidden: Access is denied.
You do not have permission to view this directory or page using the credentials that you supplied.

但是我可以使用下面的代码通过 KeyURI 获取密钥详细信息

keyVaultClient.GetKeyAsync(keyURI).GetAwaiter().GetResult();

有人可以帮助我检索保存在我的 Key Vault 中的所有密钥。

谢谢

4

1 回答 1

1

只是为了重述评论中的答案(以帮助其他人将来找到):

不要使用用于获取单个密钥的 keyVaultClient.GetKeyAsync(),而是使用 keyVaultClient.GetKeysAsync() - 注意 Key 之后的“s”,以获取密钥列表。

于 2016-05-17T13:42:40.740 回答