Skip to content

Commit 17b16c2

Browse files
authored
Merge pull request #260004 from MicrosoftDocs/main
12/1 11:00 AM IST Publish
2 parents 966f058 + 6b7754b commit 17b16c2

30 files changed

+272
-430
lines changed

articles/ai-services/speech-service/includes/quickstarts/openai-speech/csharp.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Follow these steps to create a new console application.
4141
```
4242
1. Replace the contents of `Program.cs` with the following code.
4343
44-
```csharp
44+
```csharp
4545
using System;
4646
using System.IO;
4747
using System.Threading.Tasks;
@@ -59,7 +59,7 @@ Follow these steps to create a new console application.
5959
static string openAIEndpoint = Environment.GetEnvironmentVariable("OPEN_AI_ENDPOINT");
6060
6161
// Enter the deployment name you chose when you deployed the model.
62-
static string engine = "text-davinci-003";
62+
static string engine = "gpt-35-turbo-instruct";
6363
6464
// This example requires environment variables named "SPEECH_KEY" and "SPEECH_REGION"
6565
static string speechKey = Environment.GetEnvironmentVariable("SPEECH_KEY");
@@ -189,7 +189,7 @@ Follow these steps to create a new console application.
189189
}
190190
}
191191
}
192-
```
192+
```
193193
194194
1. To increase or decrease the number of tokens returned by Azure OpenAI, change the `MaxTokens` property in the `CompletionsOptions` class instance. For more information tokens and cost implications, see [Azure OpenAI tokens](/azure/ai-services/openai/overview#tokens) and [Azure OpenAI pricing](https://azure.microsoft.com/pricing/details/cognitive-services/openai-service/).
195195
@@ -224,7 +224,7 @@ Now that you've completed the quickstart, here are some more considerations:
224224

225225
- To change the speech recognition language, replace `en-US` with another [supported language](~/articles/ai-services/speech-service/language-support.md). For example, `es-ES` for Spanish (Spain). The default language is `en-US` if you don't specify a language. For details about how to identify one of multiple languages that might be spoken, see [language identification](~/articles/ai-services/speech-service/language-identification.md).
226226
- To change the voice that you hear, replace `en-US-JennyMultilingualNeural` with another [supported voice](~/articles/ai-services/speech-service/language-support.md#prebuilt-neural-voices). If the voice doesn't speak the language of the text returned from Azure OpenAI, the Speech service doesn't output synthesized audio.
227-
- To use a different [model](/azure/ai-services/openai/concepts/models#model-summary-table-and-region-availability), replace `text-davinci-003` with the ID of another [deployment](/azure/ai-services/openai/how-to/create-resource?pivots=web-portal#deploy-a-model). Keep in mind that the deployment ID isn't necessarily the same as the model name. You named your deployment when you created it in [Azure OpenAI Studio](https://oai.azure.com/).
227+
- To use a different [model](/azure/ai-services/openai/concepts/models#model-summary-table-and-region-availability), replace `gpt-35-turbo-instruct` with the ID of another [deployment](/azure/ai-services/openai/how-to/create-resource?pivots=web-portal#deploy-a-model). Keep in mind that the deployment ID isn't necessarily the same as the model name. You named your deployment when you created it in [Azure OpenAI Studio](https://oai.azure.com/).
228228
- Azure OpenAI also performs content moderation on the prompt inputs and generated outputs. The prompts or responses may be filtered if harmful content is detected. For more information, see the [content filtering](/azure/ai-services/openai/concepts/content-filter) article.
229229

230230
## Clean up resources

articles/ai-services/speech-service/includes/quickstarts/openai-speech/python.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Follow these steps to create a new console application.
4848

4949
1. Copy the following code into `openai-speech.py`:
5050

51-
```Python
51+
```Python
5252
import os
5353
import azure.cognitiveservices.speech as speechsdk
5454
import openai
@@ -61,7 +61,7 @@ Follow these steps to create a new console application.
6161
openai.api_version = '2022-12-01'
6262
6363
# This will correspond to the custom name you chose for your deployment when you deployed a model.
64-
deployment_id='text-davinci-003'
64+
deployment_id='gpt-35-turbo-instruct'
6565
6666
# This example requires environment variables named "SPEECH_KEY" and "SPEECH_REGION"
6767
speech_config = speechsdk.SpeechConfig(subscription=os.environ.get('SPEECH_KEY'), region=os.environ.get('SPEECH_REGION'))
@@ -132,7 +132,7 @@ Follow these steps to create a new console application.
132132
chat_with_open_ai()
133133
except Exception as err:
134134
print("Encountered exception. {}".format(err))
135-
```
135+
```
136136

137137
1. To increase or decrease the number of tokens returned by Azure OpenAI, change the `max_tokens` parameter. For more information tokens and cost implications, see [Azure OpenAI tokens](/azure/ai-services/openai/overview#tokens) and [Azure OpenAI pricing](https://azure.microsoft.com/pricing/details/cognitive-services/openai-service/).
138138

@@ -167,7 +167,7 @@ Now that you've completed the quickstart, here are some more considerations:
167167

168168
- To change the speech recognition language, replace `en-US` with another [supported language](~/articles/ai-services/speech-service/language-support.md). For example, `es-ES` for Spanish (Spain). The default language is `en-US` if you don't specify a language. For details about how to identify one of multiple languages that might be spoken, see [language identification](~/articles/ai-services/speech-service/language-identification.md).
169169
- To change the voice that you hear, replace `en-US-JennyMultilingualNeural` with another [supported voice](~/articles/ai-services/speech-service/language-support.md#prebuilt-neural-voices). If the voice doesn't speak the language of the text returned from Azure OpenAI, the Speech service doesn't output synthesized audio.
170-
- To use a different [model](/azure/ai-services/openai/concepts/models#model-summary-table-and-region-availability), replace `text-davinci-003` with the ID of another [deployment](/azure/ai-services/openai/how-to/create-resource#deploy-a-model). Keep in mind that the deployment ID isn't necessarily the same as the model name. You named your deployment when you created it in [Azure OpenAI Studio](https://oai.azure.com/).
170+
- To use a different [model](/azure/ai-services/openai/concepts/models#model-summary-table-and-region-availability), replace `gpt-35-turbo-instruct` with the ID of another [deployment](/azure/ai-services/openai/how-to/create-resource#deploy-a-model). Keep in mind that the deployment ID isn't necessarily the same as the model name. You named your deployment when you created it in [Azure OpenAI Studio](https://oai.azure.com/).
171171
- Azure OpenAI also performs content moderation on the prompt inputs and generated outputs. The prompts or responses may be filtered if harmful content is detected. For more information, see the [content filtering](/azure/ai-services/openai/concepts/content-filter) article.
172172

173173
## Clean up resources

articles/ai-services/speech-service/openai-speech.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
title: "Azure OpenAI speech to speech chat - Speech service"
33
titleSuffix: Azure AI services
44
description: In this how-to guide, you can use Speech to converse with Azure OpenAI. The text recognized by the Speech service is sent to Azure OpenAI. The text response from Azure OpenAI is then synthesized by the Speech service.
5-
#services: cognitive-services
65
author: eric-urban
76
manager: nitinme
87
ms.service: azure-ai-speech
98
ms.custom: build-2023, build-2023-dataai, devx-track-python
109
ms.topic: how-to
11-
ms.date: 04/15/2023
10+
ms.date: 11/30/2023
1211
ms.author: eur
1312
zone_pivot_groups: programming-languages-csharp-python
1413
keywords: speech to text, openai

articles/azure-arc/vmware-vsphere/remove-vcenter-from-arc-vmware.md

Lines changed: 2 additions & 240 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: This article explains the steps to cleanly remove your VMware vCent
44
author: snehithm
55
ms.author: snmuvva
66
ms.topic: how-to
7-
ms.date: 11/06/2023
7+
ms.date: 11/30/2023
88
ms.service: azure-arc
99
ms.subservice: azure-arc-vmware-vsphere
1010
ms.custom: devx-track-azurecli
@@ -95,246 +95,8 @@ You can remove your VMware vSphere resources from Azure Arc using either the deb
9595

9696
### Remove VMware vSphere resources from Azure Arc using deboarding script
9797

98-
Use the deboarding script to do a full cleanup of all the Arc-enabled VMware resources. The script removes all the Azure resources, including vCenter, custom location, virtual machines, virtual templates, hosts, clusters, resource pools, datastores, virtual networks, Azure Resource Manager (ARM) resource of Appliance, and the appliance VM running on vCenter.
98+
Download the [deboarding script](https://aka.ms/arcvmwaredeboard) to do a full cleanup of all the Arc-enabled VMware resources. The script removes all the Azure resources, including vCenter, custom location, virtual machines, virtual templates, hosts, clusters, resource pools, datastores, virtual networks, Azure Resource Manager (ARM) resource of Appliance, and the appliance VM running on vCenter.
9999

100-
```powershell
101-
[CmdletBinding()]
102-
Param(
103-
[string] $vCenterId,
104-
[string] $AVSId,
105-
[string] $ApplianceConfigFilePath,
106-
[switch] $Force
107-
)
108-
109-
$DeleteFailedThreshold = 20
110-
$AVS_API_Version = "2022-05-01"
111-
112-
$logFile = Join-Path $PSScriptRoot "arcvmware-deboard.log"
113-
114-
function logText($msg) {
115-
$msgFull = "$(Get-Date -UFormat '%T') $msg"
116-
Write-Host $msgFull
117-
Write-Output $msgFull >> $logFile
118-
}
119-
120-
function fail($msg) {
121-
$msgFull = @"
122-
$(Get-Date -UFormat '%T') Script execution failed with error: $msg
123-
$(Get-Date -UFormat '%T') Debug logs have been dumped to $logFile
124-
$(Get-Date -UFormat '%T') The script will terminate shortly
125-
"@
126-
Write-Host -ForegroundColor Red $msgFull >> $logFile
127-
Write-Output $msgFull >> $logFile
128-
Start-Sleep -Seconds 5
129-
exit 1
130-
}
131-
132-
if (!($PSBoundParameters.ContainsKey('vCenterId') -xor $PSBoundParameters.ContainsKey('AVSId'))) {
133-
fail "Please specify either vCenterId or AVSId, not both."
134-
}
135-
136-
137-
logText "Writing debug logs to $logFile"
138-
139-
logText "Installing az cli extensions for Arc"
140-
az extension add --upgrade --name arcappliance
141-
az extension add --upgrade --name k8s-extension
142-
az extension add --upgrade --name customlocation
143-
$vmware_ext_ver = az version --query 'extensions.connectedvmware' -o tsv 2>> $logFile
144-
if ($vmware_ext_ver -and [System.Version]$vmware_ext_ver -gt [System.Version]"0.1.12") {
145-
logText "Removing the connectedvmware extension and pinning it to 0.1.12"
146-
az extension remove --name connectedvmware --debug 2>> $logFile
147-
}
148-
az extension add --upgrade --name connectedvmware --version 0.1.12
149-
az extension add --upgrade --name resource-graph
150-
151-
logText "Fetching some information related to the vCenter..."
152-
if ($PSBoundParameters.ContainsKey('AVSId')) {
153-
$vCenterId = az rest --method get --url "$AVSId/addons/arc?api-version=$AVS_API_Version" --query "properties.vCenter" -o tsv --debug 2>> $logFile
154-
if ($null -eq $vCenterId) {
155-
fail "Unable to find vCenter ID for AVS $AVSId"
156-
}
157-
logText "vCenterId is $vCenterId"
158-
}
159-
else {
160-
$exists = az connectedvmware vcenter show --ids $vCenterId --debug 2>> $logFile
161-
if ($null -eq $exists) {
162-
fail "Unable to find vCenter ID $vCenterId"
163-
}
164-
}
165-
166-
$customLocationID = az resource show --ids $vCenterId --query extendedLocation.name -o tsv --debug 2>> $logFile
167-
$customLocation = az resource show --ids $customLocationID --debug 2>> $logFile | ConvertFrom-Json
168-
169-
if ($null -ne $customLocation) {
170-
$clusterExtensionIds = $customLocation.properties.clusterExtensionIds
171-
$applianceId = $customLocation.properties.hostResourceId
172-
}
173-
174-
$otherCustomLocationsInAppliance = $(az graph query -q @"
175-
Resources
176-
| where type =~ 'Microsoft.ExtendedLocation/customLocations'
177-
| where id !~ '$customLocationID'
178-
| where properties.hostResourceId =~ '$applianceId'
179-
| project id
180-
"@.Replace("`r`n", " ").Replace("`n", " ") --debug 2>> $logFile | ConvertFrom-Json).data.id
181-
182-
$resourceTypes = [PSCustomObject]@(
183-
@{ Type = "Microsoft.ConnectedVMwareVsphere/VirtualMachines"; InventoryType = "VirtualMachine"; AzSubCommand = "vm"; AzArgs = @("--retain") },
184-
@{ Type = "Microsoft.ConnectedVMwareVsphere/VirtualMachineTemplates"; InventoryType = "VirtualMachineTemplate"; AzSubCommand = "vm-template" },
185-
@{ Type = "Microsoft.ConnectedVMwareVsphere/Hosts"; InventoryType = "Host"; AzSubCommand = "host" },
186-
@{ Type = "Microsoft.ConnectedVMwareVsphere/Clusters"; InventoryType = "Cluster"; AzSubCommand = "cluster" },
187-
@{ Type = "Microsoft.ConnectedVMwareVsphere/ResourcePools"; InventoryType = "ResourcePool"; AzSubCommand = "resource-pool" },
188-
@{ Type = "Microsoft.ConnectedVMwareVsphere/Datastores"; InventoryType = "Datastore"; AzSubCommand = "datastore" },
189-
@{ Type = "Microsoft.ConnectedVMwareVsphere/VirtualNetworks"; InventoryType = "VirtualNetwork"; AzSubCommand = "virtual-network" }
190-
)
191-
192-
foreach ($resourceType in $resourceTypes) {
193-
$resourceIds = @()
194-
$skipToken = $null
195-
$query = @"
196-
(
197-
Resources
198-
| where type =~ '$($resourceType.Type)'
199-
| where properties.vCenterId =~ '$vCenterId'
200-
| project id=tolower(id)
201-
| union (
202-
ConnectedVMwareVsphereResources
203-
| where type =~ 'Microsoft.ConnectedVMwareVsphere/VCenters/InventoryItems' and kind =~ '$($resourceType.InventoryType)'
204-
| where id startswith '$vCenterId/InventoryItems'
205-
| where properties.managedResourceId != ''
206-
| extend id=tolower(tostring(properties.managedResourceId))
207-
| project id
208-
)
209-
) | distinct id
210-
"@.Replace("`r`n", " ").Replace("`n", " ")
211-
logText "Searching $($resourceType.Type)..."
212-
$deleteFailed = @()
213-
while ($true) {
214-
if ($skipToken) {
215-
$page = az graph query --skip-token $skipToken -q $query --debug 2>> $logFile | ConvertFrom-Json
216-
}
217-
else {
218-
$page = az graph query -q $query --debug 2>> $logFile | ConvertFrom-Json
219-
}
220-
$page.data | ForEach-Object {
221-
$resourceIds += $_.id
222-
}
223-
if ($null -eq $page.skip_token) {
224-
break
225-
}
226-
$skipToken = $page.skip_token
227-
}
228-
logText "Found $($resourceIds.Count) $($resourceType.Type)"
229-
230-
$azArgs = $resourceType.AzArgs
231-
if ($Force) {
232-
$azArgs = @("--force")
233-
}
234-
$width = $resourceIds.Count.ToString().Length
235-
for ($i = 0; $i -lt $resourceIds.Count; $i++) {
236-
$resourceId = $resourceIds[$i]
237-
logText $("({0,$width}/$($resourceIds.Count)) Deleting $resourceId" -f $($i + 1))
238-
az connectedvmware $resourceType.AzSubCommand delete --debug --yes --ids $resourceId $azArgs 2>> $logFile
239-
if ($LASTEXITCODE -ne 0) {
240-
logText "Failed to delete $resourceId"
241-
$deleteFailed += $resourceId
242-
}
243-
if ($deleteFailed.Count -gt $DeleteFailedThreshold) {
244-
fail @"
245-
Failed to delete $($deleteFailed.Count) resources. Skipping the deletion of the rest of the resources in the vCenter.
246-
The resource ID of these resources are:
247-
`t$($deleteFailed -join "`n`t")
248-
249-
Skipping vCenter deletion.
250-
"@
251-
}
252-
}
253-
}
254-
255-
if ($deleteFailed.Count -gt 0) {
256-
fail @"
257-
Failed to delete $($deleteFailed.Count) resources. The resource ID of these resources are:
258-
`t$($deleteFailed -join "`n`t")
259-
260-
Skipping vCenter deletion.
261-
"@
262-
}
263-
264-
Write-Host ""
265-
logText "Successfully deleted all the resources in the vCenter"
266-
logText "Deleting the vCenter: $vCenterId"
267-
$azArgs = @()
268-
if ($Force) {
269-
$azArgs = @("--force")
270-
}
271-
az connectedvmware vcenter delete --debug --yes --ids $vCenterId $azArgs 2>> $logFile
272-
if ($LASTEXITCODE -ne 0) {
273-
fail "Failed to delete $vCenterId"
274-
}
275-
if ($PSBoundParameters.ContainsKey('AVSId')) {
276-
logText "Deleting the arc addon for the AVS $AVSId"
277-
az rest --method delete --debug --url "$AVSId/addons/arc?api-version=$AVS_API_Version" 2>> $logFile
278-
if ($LASTEXITCODE -ne 0) {
279-
fail "Failed to delete $AVSId/addons/arc"
280-
}
281-
}
282-
283-
function extractPartsFromID($id) {
284-
$id -match "/+subscriptions/+([^/]+)/+resourceGroups/+([^/]+)/+providers/+([^/]+)/+([^/]+)/+([^/]+)"
285-
return @{
286-
SubscriptionId = $Matches[1]
287-
ResourceGroup = $Matches[2]
288-
Provider = $Matches[3]
289-
Type = $Matches[4]
290-
Name = $Matches[5]
291-
}
292-
}
293-
294-
if ($null -ne $clusterExtensionIds -and $clusterExtensionIds.Count -gt 1) {
295-
logText "Skipping the deletion of custom location and appliance because there are multiple cluster extensions enabled in the custom location"
296-
logText "The cluster extension IDs are:"
297-
logText " $($clusterExtensionIds -join "`n ")"
298-
exit 0
299-
}
300-
if ($null -eq $customLocation) {
301-
logText "The custom location '$customLocationID' is not found. Skipping the deletion of the custom location."
302-
}
303-
else {
304-
logText "Deleting the custom location: $customLocationID"
305-
$clInfo = extractPartsFromID $customLocationID
306-
az customlocation delete --debug --yes --subscription $clInfo.SubscriptionId --resource-group $clInfo.ResourceGroup --name $clInfo.Name 2>> $logFile
307-
# The command above is returning error when the cluster is not reachable, so $LASTEXITCODE is not reliable.
308-
# Instead, check if resource is not found after delete, else throw error.
309-
$cl = az resource show --ids $customLocationID --debug 2>> $logFile
310-
if ($cl) {
311-
fail "Failed to delete $customLocationID"
312-
}
313-
}
314-
if ($otherCustomLocationsInAppliance.Count -gt 0) {
315-
logText "Skipping the deletion of the appliance because there are other custom locations in the appliance"
316-
logText "The custom location IDs of these custom locations are:"
317-
logText " $($otherCustomLocationsInAppliance -join "`n ")"
318-
exit 0
319-
}
320-
321-
if ($PSBoundParameters.ContainsKey('ApplianceConfigFilePath')) {
322-
logText "Deleting the appliance: $applianceId"
323-
az arcappliance delete vmware --debug --yes --config-file $ApplianceConfigFilePath 2>> $logFile
324-
if ($LASTEXITCODE -ne 0) {
325-
fail "Failed to delete $applianceId"
326-
}
327-
}
328-
else {
329-
logText "Skipping the deletion of the appliance VM on the VCenter because the appliance config file path is not provided"
330-
logText "Just deleting the ARM resource of the appliance: $applianceId"
331-
az resource delete --debug --ids $applianceId 2>> $logFile
332-
if ($LASTEXITCODE -ne 0) {
333-
fail "Failed to delete $applianceId"
334-
}
335-
}
336-
logText "Cleanup Complete!"
337-
```
338100
#### Run the script
339101
To run the deboarding script, follow these steps:
340102

articles/azure-maps/azure-maps-qps-rate-limits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The following list shows the QPS usage limits for each Azure Maps service by Pri
2626
| ----------------- | :--------------------------: | :------------------------------: | :------------------------: |
2727
| Copyright service | 10 | 10 | 10 |
2828
| Creator - Alias, TilesetDetails | 10 | Not Available | Not Available |
29-
| Creator - Conversion, Dataset, Feature State, WFS | 50 | Not Available | Not Available |
29+
| Creator - Conversion, Dataset, Feature State, Features, Map Configuration, Style, Routeset, Wayfinding | 50 | Not Available | Not Available |
3030
| Data service (Deprecated<sup>1</sup>) | 50 | 50 | Not Available |
3131
| Data registry service | 50 | 50 | Not Available |
3232
| Geolocation service | 50 | 50 | 50 |

0 commit comments

Comments
 (0)