我有相同的代码可以很好地返回所有值,但是现在我看到它没有返回所有值。我的一个Azure Web应用程序中大约有61个证书,但是当前下面的代码仅返回30个证书。 NextPageLink 为空,所以我也不能要求更多(这很明显,因为页面大小通常为100)。
string tenantId = "<tenantIdValue>" ;
string clientId = "<clientIdValue>" ;
string clientSecret = "<clientSecretValue>" ;
string subscriptionId = "<subscriptionIdValue>" ;
string resourceGroup = "<resourceGroupValue>" ;
AzureCredentials credentials = SdkContext
.AzureCredentialsFactory
.FromServicePrincipal(
clientId,
clientSecret,
tenantId,
AzureEnvironment.AzureGlobalCloud)
.WithDefaultSubscription(subscriptionId);
RestClient restClient = RestClient
.Configure()
.WithEnvironment(AzureEnvironment.AzureGlobalCloud)
.WithLogLevel(HttpLoggingDelegatingHandler.Level.Basic)
.WithCredentials(credentials)
.Build();
var websiteManagementClient = new WebSiteManagementClient(restClient)
{
SubscriptionId = subscriptionId
};
var webappCertificates = await websiteManagementClient
.Certificates
.ListByResourceGroupAsync(resourceGroup);
我正在使用Azure Management Fluent API客户端:
有人遇到过类似的问题吗?感谢您的帮助,谢谢!