Skip to content

Latest commit

 

History

History
89 lines (50 loc) · 4.93 KB

tutorial-containerize-deploy-python-web-app-azure-05.md

File metadata and controls

89 lines (50 loc) · 4.93 KB
title description ms.devlang ms.topic ms.date ms.custom
Clean up Azure resources used in Python container tutorial
How to clean up resources used in a tutorial showing how to containerize a Python web app (Django or Flask) and deploy it to App Service.
python
tutorial
10/09/2023
devx-track-python

Containerize tutorial cleanup and next steps

This article is part of a tutorial about how to containerize and deploy a Python web app to Azure App Service. In this article, you'll clean up resources used in Azure so you don't incur other charges and help keep your Azure subscription uncluttered. You can leave the Azure resources running if you want to use them for further development work.

Clean up resources

In this tutorial, all the Azure resources were created in the same resource group. Removing the resource group removes all resources in the resource group and is the fastest way to remove all Azure resources used for your app.

Azure CLI commands can be run in the Azure Cloud Shell or on a workstation with the Azure CLI installed.

Delete the resource group by using the az group delete command.

az group delete \
    --name $RESOURCE_GROUP_NAME 

You can optionally add the --no-wait argument to allow the command to return before the operation is complete.

To work with Azure resources in VS Code, you must have the Azure Tools extension pack installed and be signed into Azure from VS Code.

  1. In the Azure Tools extension for Visual Studio Code, expand RESOURCES and find your subscription.

  2. Make sure you're filtering by Group by Resource Group

  3. Find your resource group, right-click, and select Delete Resource Group.

    :::image type="content" source="./media/tutorial-container-web-app/remove-resource-group-visual-studio-code.png" lightbox="./media/tutorial-container-web-app/remove-resource-group-visual-studio-code.png" alt-text="A screenshot that shows how to delete a resource group in Visual Studio Code." :::

  4. Enter the name of the resource group in the dialog box to confirm deletion.

  1. Navigate to your resource group in the Azure portal. For example, you can search for the name of your resource group and select it under Resource Groups in the results.

  2. Select Overview on the service menu, then select Delete Resource Group in the top menu.

  3. In the Delete a resource group confirmation dialog, enter the name of your resource group to confirm deletion, then select Delete.


Next steps

After completing this tutorial, here are some next steps you can take to build upon what you learned and move the tutorial code and deployment closer to production ready:

Related Learn modules

The following are some Learn modules that explore the technologies and themes covered in this tutorial: