Skip to content

Commit d4ec134

Browse files
(AzureCXP) fixes MicrosoftDocs/azure-docs#114786
We made changes in line no: 145, 146 From: HttpPipelinePolicy authPolicy = new AzureKeyCredentialPolicy(key,new AzureKeyCredential(key)); To: HttpPipelinePolicy authPolicy = new AzureKeyCredentialPolicy("Ocp-Apim-Subscription-Key", new AzureKeyCredential(key));
1 parent f7b8058 commit d4ec134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/ai-services/Anomaly-Detector/includes/quickstarts/anomaly-detector-client-library-java-multivariate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ Instantiate a `anomalyDetectorClient` object with your endpoint and credentials.
142142
HttpHeaders headers = new HttpHeaders()
143143
.put("Accept", ContentType.APPLICATION_JSON);
144144

145-
HttpPipelinePolicy authPolicy = new AzureKeyCredentialPolicy(key,
146-
new AzureKeyCredential(key));
145+
HttpPipelinePolicy authPolicy = new AzureKeyCredentialPolicy("Ocp-Apim-Subscription-Key",
146+
new AzureKeyCredential(key));
147147
AddHeadersPolicy addHeadersPolicy = new AddHeadersPolicy(headers);
148148

149149
HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(HttpClient.createDefault())

0 commit comments

Comments
 (0)