Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
The Bicep file used in this article is specific to a Foundry project, and doesn't apply for a hub based project. For a template that creates a hub based project, see Create an Azure AI Foundry hub using a template.
Use a Microsoft Bicep file (template) to create an Azure AI Foundry resource. A template makes it easy to create resources as a single, coordinated operation. A Bicep file is a text document that defines the resources that are needed for a deployment. It might also specify deployment parameters. Parameters are used to provide input values when using the file to deploy resources.
Prerequisites
An Azure subscription. If you don't have one, create a free account.
A copy of the files from the GitHub repo. To clone the GitHub repo to your local machine, you can use Git. Use the following command to clone the quickstart repository to your local machine and navigate to the
aifoundry-basics
directory.git clone https://github.com/Azure-AI-Foundry/foundry-samples cd foundry-samples/samples/microsoft/infrastructure-setup/00-basic
The Bicep command-line tools. To install the Bicep command-line tools, use the Install the Bicep CLI article.
Review the Bicep file
The Bicep file used in this article can be found at https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/infrastructure-setup/00-basic.
This template creates the following resources:
Deploy the Bicep file
Deploy the Bicep file using either the Azure CLI or Azure PowerShell.
az group create --name exampleRG --___location eastus
az deployment group create --resource-group exampleRG --template-file main.bicep --parameters aiServicesName=myai aiProjectName=myai-proj
Note
Replace myai
with the name of your resource.
When the deployment finishes, you should see a message indicating the deployment succeeded.
Review deployed resources
Use the Azure AI Foundry portal to view the created resources. You can also use the Azure CLI or Azure PowerShell to list the resources.
az resource list --name exampleRG
Clean up resources
If you plan to continue working with subsequent quickstarts and tutorials, you can leave the resources created in this quickstart. If you want to remove the resources, use the following command.
az group delete --name exampleRG
Security configurations samples
See the Azure AI Foundry Samples repository with example Bicep template configurations for the most common enterprise security configurations. Template examples include network isolation, customer-managed key encryption, advanced identity options and Agents standard setup with your resources for storing data.