Select Page

This Microsoft Azure OpenAI post will show you how to deploy a DALL-E resource and model using Azure CLI.

Estimated reading time: 2 minutes

Azure OpenAI is an OpenAI implementation inside Microsoft Azure and allows customers to use OpenAI within the Azure cloud infrastructure.

The upside of using the Azure OpenAI service is that it allows organizations to use their existing investment in Azure and add AI capabilities using a single infrastructure.

DALL-E

The OpenAI DALL-E AI model allows us to generate images in a high-definition format using text prompts. We simply ask the model in natural language to create an image, and it returns a URL with the generated image.

Generated images are available to download immediately and for 60 minutes from the generated URL. After 60 minutes, the image is deleted from the Azure OpenAI.

We can access the DALL-E 3 AI model from the following Azure regions.

  • EastUS
  • AustraliaEast
  • SwedenCentral

Deploy DALL-E Resource and Model with Azure CLI

Before we can access the DALL-E service, we must create the following. Azure OpenAI resource that is available via the Azure Portal. Azure OpenAI deployment with an AI model.

This is a two-way process: first, we create an Azure resource and then attach a deployment that contains an AI model.

For this deployment to work, make sure you have Azure CLI installed on your machine.

Azure CLI Code

The following Azure CLI code will create DALL-E deployment and Azure OpenAI resource in SwedenCentral.