Skip to content

Commit 93c1261

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
authored andcommitted
Merging changes synced from https://github.com/MicrosoftDocs/azure-ai-docs-pr (branch live)
2 parents f75f2a6 + 6214423 commit 93c1261

File tree

5 files changed

+88
-13
lines changed

5 files changed

+88
-13
lines changed

articles/ai-services/openai/how-to/quota.md

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: mrbullwinkle
77
manager: nitinme
88
ms.service: azure-ai-openai
99
ms.topic: how-to
10-
ms.date: 06/18/2024
10+
ms.date: 11/04/2024
1111
ms.author: mbullwin
1212
---
1313

@@ -233,6 +233,73 @@ This command runs in the context of the currently active subscription for Azure
233233

234234
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)
235235

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.
264+
265+
```azurepowershell-interactive
266+
$cognitiveServicesDeploymentParams = @{
267+
ResourceGroupName = 'test-resource-group'
268+
AccountName = 'test-resource-name'
269+
Name = 'test-deployment-name'
270+
Properties = @{
271+
Model = @{
272+
Name = 'gpt-35-turbo'
273+
Version = '0613'
274+
Format = 'OpenAI'
275+
}
276+
}
277+
Sku = @{
278+
Name = 'Standard'
279+
Capacity = '10'
280+
}
281+
}
282+
New-AzCognitiveServicesAccountDeployment @cognitiveServicesDeploymentParams
283+
```
284+
285+
### Usage
286+
287+
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/).
302+
236303
# [Azure Resource Manager](#tab/arm)
237304

238305
```json

articles/ai-studio/how-to/create-azure-ai-resource.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ If your organization is using [Azure Policy](/azure/governance/policy/overview),
4040

4141
:::image type="content" source="~/reusable-content/ce-skilling/azure/media/ai-studio/resource-create-basics.png" alt-text="Screenshot of the option to set hub basic information." lightbox="~/reusable-content/ce-skilling/azure/media/ai-studio/resource-create-basics.png":::
4242

43-
1. Select the **Storage** tab to specify storage account settings.
43+
1. Select the **Storage** tab to specify storage account settings. For storing credentials, either provide your Azure Key Vault or use the [Microsoft-managed credential store (preview)](#choose-how-credentials-are-stored).
4444

45-
:::image type="content" source="~/reusable-content/ce-skilling/azure/media/ai-studio/resource-create-resources.png" alt-text="Screenshot of the Create a hub with the option to set storage resource information." lightbox="~/reusable-content/ce-skilling/azure/media/ai-studio/resource-create-resources.png":::
45+
:::image type="content" source="../media/how-to/hubs/resource-create-resources.png" alt-text="Screenshot of the Create a hub with the option to set storage resource information." lightbox="../media/how-to/hubs/resource-create-resources.png":::
4646

4747
1. Select the **Networking** tab to set up Network isolation. Read more on [network isolation](configure-managed-network.md). For a walkthrough of creating a secure hub, see [Create a secure hub](create-secure-ai-hub.md).
4848

@@ -90,7 +90,7 @@ Hub networking settings can be set during resource creation or changed in the **
9090

9191
At hub creation, select between the networking isolation modes: **Public**, **Private with Internet Outbound**, and **Private with Approved Outbound**. To secure your resource, select either **Private with Internet Outbound** or **Private with Approved Outbound** for your networking needs. For the private isolation modes, a private endpoint should be created for inbound access. For more information on network isolation, see [Managed virtual network isolation](configure-managed-network.md). To create a secure hub, see [Create a secure hub](create-secure-ai-hub.md).
9292

93-
At hub creation in the Azure portal, creation of associated Azure AI services, Storage account, Key vault, Application insights, and Container registry is given. These resources are found on the Resources tab during creation.
93+
At hub creation in the Azure portal, creation of associated Azure AI services, Storage account, Key vault (optional), Application insights (optional), and Container registry (optional) is given. These resources are found on the Resources tab during creation.
9494

9595
To connect to Azure AI services (Azure OpenAI, Azure AI Search, and Azure AI Content Safety) or storage accounts in Azure AI Studio, create a private endpoint in your virtual network. Ensure the public network access (PNA) flag is disabled when creating the private endpoint connection. For more about Azure AI services connections, follow documentation [here](../../ai-services/cognitive-services-virtual-networks.md). You can optionally bring your own (BYO) search, but this requires a private endpoint connection from your virtual network.
9696

@@ -143,20 +143,28 @@ az ml workspace update -n "myexamplehub" -g "{MY_RESOURCE_GROUP}" -a "APPLICATIO
143143
```
144144
---
145145

146-
## Delete an Azure AI Studio hub
146+
### Choose how credentials are stored
147+
148+
Select scenarios in AI Studio store credentials on your behalf. For example when you create a connection in AI Studio to access an Azure Storage account with stored account key, access Azure Container Registry with admin password, or when you create a compute instance with enabled SSH keys. No credentials are stored with connections when you choose EntraID identity-based authentication.
147149

148-
To delete a hub, use the [Azure portal](https://portal.azure.com). To quickly get to the Azure portal from the Azure AI Studio, go to the **Hub overview** for your hub and then select **Manage in Azure portal**.
150+
You can choose where credentials are stored:
149151

150-
:::image type="content" source="../media/how-to/hubs/manage-hub-azure-portal.png" alt-text="Screenshot of the manage in Azure portal link in Azure AI Studio.":::
152+
1. **Your Azure Key Vault**: This requires you to manage your own Azure Key Vault instance and configure it per hub. It gives you additional control over secret lifecycle e.g. to set expiry policies. You can also share stored secrets with other applications in Azure.
153+
154+
1. **Microsoft-managed credential store (preview)**: In this variant Microsoft manages an Azure Key Vault instance on your behalf per hub. No resource management is needed on your side and the vault does not show in your Azure subscription. Secret data lifecycle follows the resource lifecycle of your hubs and projects. For example, when a project's storage connection is deleted, its stored secret is deleted as well.
151155

152-
From the portal page for your hub, select **Overview** along the left side of the page and then select **Delete** from the top of the page.
156+
After your hub is created, it is not possible to switch between Your Azure Key Vault and using a Microsoft-managed credential store.
157+
158+
## Delete an Azure AI Studio hub
153159

154-
:::image type="content" source="../media/how-to/hubs/delete-hub-button.png" alt-text="Screenshot of the delete button for the Azure AI Studio hub in the Azure portal.":::
160+
To delete a hub from Azure AI Studio, select the hub and then select **Delete hub** from the **Hub properties** section of the page.
155161

156-
You can also find your hub in the Azure portal by entering the hub name in the search field at the top of the Azure portal. Select the hub from the **Resources** list to navigate to the **Overview** page for the hub.
162+
:::image type="content" source="../media/how-to/hubs/studio-delete-hub.png" alt-text="Screenshot of the delete hub link in hub properties." lightbox="../media/how-to/hubs/studio-delete-hub.png":::
157163

158-
:::image type="content" source="../media/how-to/hubs/search-in-portal.png" alt-text="Screenshot of using the search field in the Azure portal to find a hub.":::
164+
> [!NOTE]
165+
> You can also delete the hub from the Azure portal.
159166
167+
Deleting a hub deletes all associated projects. When a project is deleted, all nested endpoints for the project are also deleted. You can optionally delete connected resources; however, make sure that no other applications are using this connection. For example, another Azure AI Studio deployment might be using it.
160168

161169

162170
## Related content
57.2 KB
Loading
164 KB
Loading

docfx.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,8 @@
384384
"ms.collection": {
385385
"articles/ai-services/**/*.md": "ce-skilling-ai-copilot",
386386
"articles/ai-services/**/*.yml": "ce-skilling-ai-copilot",
387-
"articles/ai-studio/**/*.md": "ce-skilling-fresh-tier0",
388-
"articles/ai-studio/**/*.yml": "ce-skilling-fresh-tier0",
387+
"articles/ai-studio/**/*.md": "ce-skilling-ai-copilot, ce-skilling-fresh-tier0",
388+
"articles/ai-studio/**/*.yml": "ce-skilling-ai-copilot, ce-skilling-fresh-tier0",
389389
"articles/search/**/*.md": "ce-skilling-ai-copilot",
390390
"articles/search/**/*.yml": "ce-skilling-ai-copilot",
391391
"articles/machine-learning/*.md": "ce-skilling-fresh-tier2, ce-skilling-ai-copilot",

0 commit comments

Comments
 (0)