- Microsoft Azure account with an active subscription
- Python 3,6+
- Azure CLI
-
Log in via Azure CLI:
az login
-
Clone the repository:
git clone https://github.com/anthonybartczak/azure-project
-
Open your terminal in the designated folder and run:
py integration.py
-
When prompted, enter the requested details
-
Wait for the job to finish - you should receive the generated JSON response
-
Connect to your app's SSH:
https://<app-name>.scm.azurewebsites.net/webssh/host
-
Run the following commands:
# Change to the app folder
cd $APP_PATH
# Activate the venv
source /antenv/bin/activate
# Install requirements
pip install -r requirements.txt
# Run database migrations
python manage.py migrate
# Create the super user (follow prompts)
python manage.py createsuperuser
-
Log in the admin section of your app:
https://<app-name>.azurewebsites.net/admin
-
You can now create blog posts using the
Add post
button placed inside the side menu.