2017-07-07 26 views
0

我的密鑰保管庫位於北歐地區。使用下面的代碼訪問密碼時。我間歇性地收到404錯誤。它正在早上和晚上工作,但在中午404錯誤即將到來。它與任何流量問題有關嗎?從後面的代碼訪問時,Azure密鑰保險庫祕密URL返回404錯誤;

Dictionary<string, object> dictCredentials = _dataManager.LoadAzureVaultCredentials(this._storageKey); 

this._azureADApplicationClientID = dictCredentials["Azure_AD_Application_Client_ID"].ToString(); 
this._azureADCertiicateThumprint = dictCredentials["Azure_Certificate_Thumprint"].ToString(); 
this._keyVaultUrl = dictCredentials["Key_Vault_Url"].ToString(); 
int.TryParse(dictCredentials["Max_Azure_Retry_Attempts"].ToString(), out this._maxAzureRetryAttempts); 
int.TryParse(dictCredentials["Azure_Retry_Attempts"].ToString(), out this._azureRetryAttempts); this.GetCert(); 

var kvConnectionString = new KeyVaultClient(new KeyVaultClient.AuthenticationCallback(GetToken)); 

var retryPolicy = new RetryPolicy<ServerErrorDetectionStrategy(this._maxAzureRetryAttempts,TimeSpan.FromSeconds(this._azureRetryAttempts)); 
kvConnectionString.SetRetryPolicy(retryPolicy); 

this._storageConnectionString = kvConnectionString.GetSecretAsync(this._keyVaultUrl).Result.Value; 

回答

0

如果您知道代碼工作在這一天,它不可能涉及到你的代碼中的某些時段 - 打開門戶支持請求或鳴叫@AzureSupport,它們可以潛得更深一些。

相關問題