You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/openai/how-to/quota.md
+68-1Lines changed: 68 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author: mrbullwinkle
7
7
manager: nitinme
8
8
ms.service: azure-ai-openai
9
9
ms.topic: how-to
10
-
ms.date: 06/18/2024
10
+
ms.date: 11/04/2024
11
11
ms.author: mbullwin
12
12
---
13
13
@@ -233,6 +233,73 @@ This command runs in the context of the currently active subscription for Azure
233
233
234
234
For more details on `az cognitiveservices account` and `az cognitivesservices usage` consult the [Azure CLI reference documentation](/cli/azure/cognitiveservices/account/deployment?view=azure-cli-latest&preserve-view=true)
235
235
236
+
# [Azure PowerShell](#tab/powershell)
237
+
238
+
Install the latest version of the [Az PowerShell module](/powershell/azure/install-azure-powershell). If you already have the Az PowerShell module installed locally, run `Update-Module -Name Az` to update to the latest version.
239
+
240
+
To check which version of the Az PowerShell module you are running, use `Get-InstalledModule -Name Az`. Azure Cloud Shell is currently running a version of Azure PowerShell that can take advantage of the latest Azure OpenAI features.
241
+
242
+
### Deployment
243
+
244
+
```azurepowershell
245
+
New-AzCognitiveServicesAccountDeployment
246
+
[-ResourceGroupName] <String>
247
+
[-AccountName] <String>
248
+
[-Name] <String>
249
+
[-Properties] <DeploymentProperties>
250
+
[-Sku] <Sku>
251
+
[-DefaultProfile <IAzureContextContainer>]
252
+
[-WhatIf]
253
+
[-Confirm]
254
+
[<CommonParameters>]
255
+
```
256
+
257
+
To sign into your local installation of Azure PowerShell, run the [Connect-AzAccount](/powershell/module/az.accounts/connect-azaccount) command:
258
+
259
+
```azurepowershell
260
+
Connect-AzAccount
261
+
```
262
+
263
+
By setting Sku Capacity to 10 in the command below, this deployment is set to a 10K TPM limit.
To [query your quota usage](/powershell/module/az.cognitiveservices/get-azcognitiveservicesusage) in a given region for a specific subscription:
288
+
289
+
```azurepowershell
290
+
Get-AzCognitiveServicesUsage -Location <location>
291
+
```
292
+
293
+
### Example
294
+
295
+
```azurepowershell-interactive
296
+
Get-AzCognitiveServicesUsage -Location eastus
297
+
```
298
+
299
+
This command runs in the context of the currently active subscription for Azure PowerShell. Use `Set-AzContext` to [modify the active subscription](/powershell/azure/manage-subscriptions-azureps#change-the-active-subscription).
300
+
301
+
For more details on `New-AzCognitiveServicesAccountDeployment` and `Get-AzCognitiveServicesUsage`, consult the [Azure PowerShell reference documentation](/powershell/module/az.cognitiveservices/).
0 commit comments