Skip to content

Commit 01377d1

Browse files
authored
Merge pull request #256788 from MicrosoftDocs/main
10/31/2023 AM Publish
2 parents e4a27b2 + fe6ab70 commit 01377d1

File tree

58 files changed

+1193
-693
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1193
-693
lines changed

.openpublishing.redirection.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24661,6 +24661,16 @@
2466124661
"redirect_url": "/azure/load-balancer/upgrade-basic-standard-with-powershell",
2466224662
"redirect_document_id": false
2466324663
},
24664+
{
24665+
"source_path_from_root": "/articles/energy-data-services/reliability-energy-data-services.md",
24666+
"redirect_url": "/azure/reliability/reliability-energy-data-services",
24667+
"redirect_document_id": false
24668+
},
24669+
{
24670+
"source_path_from_root": "/articles/deployment-environments/concept-environments-reliability-availability.md",
24671+
"redirect_url": "/azure/reliability/reliability-deployment-environments",
24672+
"redirect_document_id": false
24673+
},
2466424674
{
2466524675
"source_path_from_root": "/articles/spring-apps/how-to-enable-redundancy-and-disaster-recovery.md",
2466624676
"redirect_url": "/azure/reliability/reliability-spring-apps",
@@ -24835,6 +24845,6 @@
2483524845
"source_path_from_root": "/articles/orbital/delete-contact.md",
2483624846
"redirect_url": "/azure/orbital/spacecraft-object",
2483724847
"redirect_document_id": false
24838-
},
24848+
}
2483924849
]
2484024850
}
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
22
"redirections": [
3-
{
4-
"source_path_from_root": "/articles/reliability/reliability-energy-data-services.md",
5-
"redirect_url": "/azure/energy-data-services/reliability-energy-data-services",
6-
"redirect_document_id": true
7-
}
3+
84
]
95
}

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ To install the necessary tools, follow the instructions for [Install content aut
2020

2121
## License
2222

23-
Please refer to [LICENSE](LICENSE), [LICENSE-CODE](LICENSE-CODE), and [ThirdPartyNotices](ThirdPartyNotices.md) for all Licensing information.
23+
For all licensing information, refer to:
24+
25+
- [LICENSE](LICENSE)
26+
- [LICENSE-CODE](LICENSE-CODE)
27+
- [ThirdPartyNotices](ThirdPartyNotices.md)
2428

2529
## Code of Conduct
2630

articles/active-directory-b2c/custom-domain.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ zone_pivot_groups: b2c-policy-type
2222
This article describes how to enable custom domains in your redirect URLs for Azure Active Directory B2C (Azure AD B2C). By using a verified custom domain, you've benefits such as:
2323

2424
- It provides a more seamless user experience. From the user's perspective, they remain in your domain during the sign in process rather than redirecting to the Azure AD B2C default domain *<tenant-name>.b2clogin.com*.
25+
- By staying in the same domain for your application during sign-in, you mitigate the impact of [third-party cookie blocking](/azure/active-directory/develop/reference-third-party-cookies-spas).
2526

2627
- You increase the number of objects (user accounts and applications) you can create in your Azure AD B2C tenant from the default 1.25 million to 5.25 million.
2728

articles/active-directory-b2c/faq.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ metadata:
88
ms.service: active-directory
99
ms.workload: identity
1010
ms.topic: faq
11-
ms.date: 07/13/2023
11+
ms.date: 10/31/2023
1212
ms.author: godonnell
1313
ms.subservice: B2C
14-
ms.custom: b2c-support, has-azure-ad-ps-ref
14+
ms.custom: b2c-support, has-azure-ad-ps-ref,azure-ad-ref-level-one-done
1515
title: 'Azure AD B2C: Frequently asked questions (FAQ)'
1616
summary: This page answers frequently asked questions about the Azure Active Directory B2C (Azure AD B2C). Keep checking back for updates.
1717

articles/active-directory-b2c/force-password-reset.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ manager: CelesteDG
99
ms.service: active-directory
1010
ms.workload: identity
1111
ms.topic: how-to
12-
ms.date: 06/26/2023
12+
ms.date: 10/31/2023
1313
ms.author: kengaderdus
1414
ms.subservice: B2C
15-
ms.custom: b2c-support, has-azure-ad-ps-ref
15+
ms.custom: b2c-support, has-azure-ad-ps-ref,azure-ad-ref-level-one-done
1616
zone_pivot_groups: b2c-policy-type
1717
---
1818

@@ -171,3 +171,4 @@ Update-MgDomain -DomainId $domainId -BodyParameter $params
171171
## Next steps
172172

173173
Set up a [self-service password reset](add-password-reset-policy.md).
174+

articles/ai-services/openai/concepts/content-filter.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ When annotations are enabled as shown in the code snippet below, the following i
294294

295295
Annotations are currently in preview for Completions and Chat Completions (GPT models); the following code snippet shows how to use annotations in preview:
296296

297+
# [Python](#tab/python)
298+
299+
297300
```python
298301
# Note: The openai-python library support for Azure OpenAI is in preview.
299302
# os.getenv() for the endpoint and key assumes that you are using environment variables.
@@ -413,6 +416,72 @@ except openai.error.InvalidRequestError as e:
413416

414417
```
415418

419+
# [JavaScript](#tab/javascrit)
420+
421+
[Azure OpenAI JavaScript SDK source code & samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/openai/openai)
422+
423+
```javascript
424+
425+
import { OpenAIClient, AzureKeyCredential } from "@azure/openai";
426+
427+
// Load the .env file if it exists
428+
import * as dotenv from "dotenv";
429+
dotenv.config();
430+
431+
// You will need to set these environment variables or edit the following values
432+
const endpoint = process.env["ENDPOINT"] || "<endpoint>";
433+
const azureApiKey = process.env["AZURE_API_KEY"] || "<api key>";
434+
435+
const messages = [
436+
{ role: "system", content: "You are a helpful assistant. You will talk like a pirate." },
437+
{ role: "user", content: "Can you help me?" },
438+
{ role: "assistant", content: "Arrrr! Of course, me hearty! What can I do for ye?" },
439+
{ role: "user", content: "What's the best way to train a parrot?" },
440+
];
441+
442+
export async function main() {
443+
console.log("== Get completions Sample ==");
444+
445+
const client = new OpenAIClient(endpoint, new AzureKeyCredential(azureApiKey));
446+
const deploymentId = "text-davinci-003";
447+
const events = await client.listChatCompletions(deploymentId, messages, { maxTokens: 128 });
448+
449+
for await (const event of events) {
450+
for (const choice of event.choices) {
451+
console.log(choice.message);
452+
if (!choice.contentFilterResults) {
453+
console.log("No content filter is found");
454+
return;
455+
}
456+
if (choice.contentFilterResults.error) {
457+
console.log(
458+
`Content filter ran into the error ${choice.contentFilterResults.error.code}: ${choice.contentFilterResults.error.message}`
459+
);
460+
} else {
461+
const { hate, sexual, selfHarm, violence } = choice.contentFilterResults;
462+
console.log(
463+
`Hate category is filtered: ${hate?.filtered} with ${hate?.severity} severity`
464+
);
465+
console.log(
466+
`Sexual category is filtered: ${sexual?.filtered} with ${sexual?.severity} severity`
467+
);
468+
console.log(
469+
`Self-harm category is filtered: ${selfHarm?.filtered} with ${selfHarm?.severity} severity`
470+
);
471+
console.log(
472+
`Violence category is filtered: ${violence?.filtered} with ${violence?.severity} severity`
473+
);
474+
}
475+
}
476+
}
477+
}
478+
479+
main().catch((err) => {
480+
console.error("The sample encountered an error:", err);
481+
});
482+
```
483+
---
484+
416485
For details on the inference REST API endpoints for Azure OpenAI and how to create Chat and Completions please follow [Azure OpenAI Service REST API reference guidance](../reference.md). Annotations are returned for all scenarios when using `2023-06-01-preview`.
417486
418487
### Example scenario: An input prompt containing content that is classified at a filtered category and severity level is sent to the completions API

articles/ai-services/openai/reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ POST https://{your-resource-name}.openai.azure.com/openai/deployments/{deploymen
5959
- `2023-06-01-preview` [Swagger spec](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-06-01-preview/inference.json)
6060
- `2023-07-01-preview` [Swagger spec](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-07-01-preview/inference.json)
6161
- `2023-08-01-preview` [Swagger spec](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-08-01-preview/inference.json)
62+
- `2023-09-01-preview` [Swagger spec](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-09-01-preview/inference.json)
6263

6364
**Request body**
6465

articles/aks/concepts-security.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Node authorization is a special-purpose authorization mode that specifically aut
6262

6363
### Node deployment
6464

65-
Nodes are deployed onto a private virtual network subnet, with no public IP addresses assigned. For troubleshooting and management purposes, SSH is enabled by default and only accessible using the internal IP address. Disabling SSH is during cluster and node pool creation, or for an existing cluster or node pool is in preview. See [Manage SSH access][manage-ssh-access] for more information.
65+
Nodes are deployed onto a private virtual network subnet, with no public IP addresses assigned. For troubleshooting and management purposes, SSH is enabled by default and only accessible using the internal IP address. Disabling SSH during cluster and node pool creation, or for an existing cluster or node pool, is in preview. See [Manage SSH access][manage-ssh-access] for more information.
6666

6767
### Node storage
6868

@@ -172,4 +172,4 @@ For more information on core Kubernetes and AKS concepts, see:
172172
[network-policy]: use-network-policies.md
173173
[microsoft-vulnerability-management-aks]: concepts-vulnerability-management.md
174174
[aks-vulnerability-management-nodes]: concepts-vulnerability-management.md#worker-nodes
175-
[manage-ssh-access]: manage-ssh-node-access.md
175+
[manage-ssh-access]: manage-ssh-node-access.md

articles/application-gateway/for-containers/troubleshooting-guide.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ Logs can be collected from the ALB Controller by using the _kubectl logs_ comman
7171
You should see the following if the pod is primary: `successfully acquired lease azure-alb-system/alb-controller-leader-election`
7272

7373
2. Collect the logs
74-
Logs from ALB Controller will be returned in JSON format.
74+
75+
Logs from ALB Controller will be returned in JSON format.
7576

7677
Execute the following kubectl command, replacing the name with the pod name returned in step 1:
7778
```bash

0 commit comments

Comments
 (0)