In order to get all settings regardless of how many use listConfigurationSettings()
. You can either loop through results or get them by page. All the same key and label filters work.
There is a good example of using this in the test cases: https://github.com/Azure/azure-sdk-for-js/blob/3157a3d2e8c920c6d1cb6f4fe5f1882f647263a1/sdk/appconfiguration/app-configuration/test/index.spec.ts#L656
const client = new appConfig.AppConfigurationClient(
endpoint,
credential
);
async function getSettings() {
const settingList = await client.listConfigurationSettings();
//Either of the following methods will work (you don't need both)
//loop through settings
var settings = [];
for await (const setting of settingList) {
settings.push(setting);
}
console.log(settings.length);
//get by page
let settingsViaPageIterator= [];
for await (const page of settingList.byPage()) {
settingsViaPageIterator = settingsViaPageIterator.concat(page.items);
}
console.log(settingsViaPageIterator.length);
}