-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[KeyVault] Update @azure/ms-rest-azure-js to 2.0.0 in @azure/keyvault #4530
Comments
@schaabs - can you take a look here? |
Hi @kepikoi, I tried to reproduce this issue with Also, we've deprecated this library in favor of the |
Hi @daviwil strange, I cannot reproduce it anymore... I will close the issue then. I'm also looking into @azure/keyvault-keys but as far as I can see there seems no way to get the continuation token or URL from the |
Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment. |
Could you tell me a little more about what you're trying to accomplish by using the nextLink or continuationToken directly? It does look like we don't expose that directly anymore so it'd be helpful to understand whether there's another use case we could account for. |
@kepikoi - you can get access to the continuationToken via the page settings object. Something like: let pageSettings: PageSettings = {continuationToken: undefined, maxPageSize: 2};
const page = client.listPropertiesOfSecrets().byPage(pageSettings);
const secretProperties = (await page.next()).value;
for (const secretProperty of secretProperties) {
const secret = await client.getSecret(secretProperty.name);
console.log("secret: ", secret);
}
console.log("continuation: ", pageSettings.continuationToken); |
@daviwil I employ a lots of keys per Key Vault and need to return key properties to my client's management frontend swiftly. Iterating over almost 2000 keys takes right now ~2 minutes that is why I pass the continuationToken to the frontend allowing to fetch results incrementally. @jonathandturner works for me! thank you very much |
Describe the bug
@azure/keyvault throws a known serialization bug from #911 due to an outdated version of @azure/ms-rest-js when calling:
To Reproduce
await client.getKeys(this.vaultUrl);
on the empty vault (no Keys)The text was updated successfully, but these errors were encountered: