

Run the following commands to create an Azure Function and deploy the docker image from Azure Container Registry. Create Azure Function and deploy docker image # Push docker image to Azure Container Registry docker push $acr_id/selenium:latest B04.

# Variables $acr_id = ">.azurecr.io" # Create docker image using docker desktop docker login $acr_id -u > -p > docker build -tag $acr_id/selenium. For the >, >, you need to take the credentials of your container registry that can be found in the access key tabs. Commands can be run in Visual Studio terminal or PowerShell terminal. Run the following commands that installs chromium, chrome driver and selenium on top of the Azure Function base image. DockerFile: File that contains all commands to create Docker image that will be used in the next stepī03.HttpTrigger/_init_.py: Same as previous bullet, however, this is function HTTP triggered and can be run from a browser.TimeTrigger/_init_.py: Python file that contains all code to scrape websites.

In this project, the following files can be found: In case you did not install git, the zip file can also be downloaded and extracted. Run the command below to clone the project from git.
