Skip to content

Commit eaf9ba0

Browse files
Merge pull request #251785 from Naveenommi-MSFT/patch-73
(AzureCXP) fixes MicrosoftDocs/azure-docs#114786
2 parents 6bbfe04 + d4ec134 commit eaf9ba0

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)