Skip to content

Files

Latest commit

 

History

History

infra

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Deploy Azure Resources for the Document Intelligence Accelerator

The 1_infra folder contains the Bicep code and modules for deploying the resources needed for this Document Intelligence Solution. After creating a Resource Group and running the Bicep deployments, your resource group will contain the following resources: deployed-resources

Prerequisites:

  1. Install latest version of Azure CLI
  2. Install latest version of Bicep
  3. Install latest version Azure Functions Core Tools
  4. Clone this repo

Deploy Azure Resources

  1. Make sure you are in the \1_infra directory in bash

  2. Login to your Azure account:

         az login
  3. Set your Azure subscription ID:

    az account set --subscription <subscription id>
  4. Create an Azure Resource group:

     az group create --name <your resource group name> --location <your resource group location>
  5. Run command to get the object id for your email address. This is to give you access needed for deployed resources:

    az ad user show --id 'your email' --query id
  6. Copy the objectid value returned from the above command.

  7. Open the main.bicepparam and paste the object for the parameter value for spObjectId. = 'your-object-id'. Also add the values for resourceLocation, resourceGroupName, prefix, and uniqueSuffix.

  8. Save the main.bicepparam file.

    az deployment group create --resource-group <your resource group name>  --template-file main.bicep --parameters main.bicepparam --name Doc-intelligence-in-a-Box --query 'properties.outputs' 
  9. Deploy code to function app (the name should be yourprefix-funcapp):

     cd ..
     cd code
     func azure functionapp publish <your funcapp name> --python