Log in to the Azure Portal
Access the Azure Marketplace
Start the deployment process
Configure the deployment options
Set up the load balancer
Finalize and deploy
Post-deployment: additional load balancer configuration
Post-deployment: get the deployed endpoint URL
Post-deployment: set API environment variables
sudo docker container ls
.
CONTAINER ID
value for the running container.
<CONTAINER ID>
with the CONTAINER ID
value:
sudo docker image ls
.
REPOSITORY
and TAG
value for the Docker image.
<REPOSITORY>
and <TAG>
with the REPOSITORY
and TAG
values for the Docker image, and replacing
<VAR1>=<value1>
, <VAR2>=<value2>
and so on with the environment variable name and value pairs:
CONTAINER ID
value for the running container.
<CONTAINER ID>
with the CONTAINER ID
value:
Call the Unstructured API
UNSTRUCTURED_API_URL
to http://
, followed by your load balancer’s public IP address, followed by /general/v0/general
.LOCAL_FILE_INPUT_DIR
to the path on your local machine to the files for the Unstructured API to process. If you do not have any input files available, you can download any of the ones from the example-docs folder in GitHub.LOCAL_FILE_OUTPUT_DIR
to the path on your local machine for Unstructured API to send the processed output in JSON format.Ingest CLI
--api-key
Or, for better code portability, it is recommended that you first set the environment variable UNSTRUCTURED_API_KEY
to an empty string and then include the command-line option --api-key
.Ingest Python library
api_key
. Or, for better code portability, it is recommended that you first set the environment variable UNSTRUCTURED_API_KEY
to an empty string and then include the parameter api_key
.80
or 443
(this can be any port that the backend VMs are listening on)/healthcheck
5
443
for HTTPS, or 80
for HTTP443
for HTTPS, or 80
for HTTP60
443
for HTTPS, or 80
for HTTP443
for HTTPS, or 80
for HTTP60
ALLOW_ORIGINS
: CORS-allowed origins.UNSTRUCTURED_ALLOWED_MIMETYPE
: The list of allowed MIME types, if you want to limit the file types that can be processed.UNSTRUCTURED_API_KEY
: The default Unstructured API key to use.UNSTRUCTURED_MEMORY_FREE_MINIMUM_MB
: The minimum amount of free memory in MB to allow for processing a file. If this memory is too low, the server will return a 503
error.UNSTRUCTURED_PDF_HI_RES_MAX_PAGES
: The maximum number of pages in a PDF file that the Unstructured API will not reject, if the hi_res
strategy is used. The default is 300
.UNSTRUCTURED_REDIRECT_ROOT_URL
: If this is set, redirect a GET
request to the Unstructured API to use this URL instead.