webapplication/foodapp/remove-from-azure.sh

17 lines
435 B
Bash
Raw Normal View History

2024-05-14 18:33:32 +00:00
#!/bin/bash
# Check if logged in to Azure CLI
az account show > /dev/null 2>&1
if [ $? != 0 ]; then
echo "Not logged in to Azure. Please log in and try again."
az login
fi
# Continue with the script...
resourceGroup="myResourceGroup"
containerGroupName="myContainerGroup"
echo "Removing Azure resources..."
az container delete --name $containerGroupName --resource-group $resourceGroup --yes
echo "Azure resources removed."