Provisioning AI services in Azure

This Microsoft Azure AI blog post will show how Provisioning AI services in Azure.

Azure AI services include many AI products and services, including the popular AI service ChatGPT under the Azure OpenAI service.

This post will focus on creating a multi-service resource that allows us to access multiple AI services under a single endpoint and a security key.

Provisioning AI services in Azure

To create a multi-service AI account, open the Azure AI Services console from the Azure portal by searching for Azure AI Services.

At the end of this post, you will find PowerShell code that can provision the service.

From the main screen, locate the Azure AI services multi-service account.

Click Create

To create your service, fill in the project details and create the resource.

Access AI Services

Once the resource is provisioned, we can access it programmatically using a service endpoint and a security key.

To access the above, open the AI services console. Click on the newly created service from the All Azure AI Services link.

From the account details, click on Key and Endpoint.

Copy the endpoint URL to your access key.

PowerShell Code

If you’re looking to set up a new service, the following PowerShell code can be used to provision it quickly and easily. With this code, you can create a new service with just a few simple commands.

# Import the AzureRM module
Import-Module Az

# Set the subscription ID
$subscriptionId = "YOUR_SUBSCRIPTION_ID"

# Set the resource group name and location
$resourceGroupName = "YOUR_RESOURCE_GROUP_NAME"
$location = "YOUR_LOCATION"

# Set the name and SKU of the multi-service resource
$sku = "YOUR_SKU"

# Create the resource group
New-AzResourceGroup -Name $resourceGroupName -Location $location

# Create the multi-service resource
New-AzCognitiveServicesAccount -ResourceGroupName $resourceGroupName -Name $resourceName -Location $location -Sku $sku -Kind "CognitiveServices" -ApiProperties @{"MultiServiceAccessEnabled"="true"} -Tags @{"key1"="value1";"key2"="value2"} -SubscriptionId $subscriptionId

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.