Normally, the image build CICD (ihs CICD, twas-base CICD and twas-nd CICD) workflow will provision the source VM, install software package, execute integration test and finally generate SAS urls for OS disk and data disk VHD files which will be used for creating/updating Azure virtual machine offer(s) in Azure Partner Center.
These VHD files are stored in a storage account in Azure, and you should get it deleted to reduce Azure cost after image is successfully published and available in the Partner Center.
Follow steps below to find out where the storage account is from Azure Portal.
- Go to Actions.
- Find out the workflow you kicked off before. Click to open.
- Copy URL from browser address bar, which looks like
https://github.com/WASdev/azure.websphere-traditional.image/actions/runs/<run-id>
. Copy<run-id>
. - Go to Azure Portal > Type "Resource groups" in the search bar > Select "Resource groups" from the list of service.
- In the page of "Resource groups", paste copied
<run-id>
into the filter box. Wait a few seconds and click the resource group listed in the page. Log down the resource group name. - In the page of selected resource group, you should be able to see the storage account resource.
Now you can delete the resource group of the storage account, which will delete all resources inside the resource group.
- In the page of selected resource group, click "Delete resource group".
- Type the resource group name and click "Delete".
- The deletion operation is handled asychronously, the UI will notify you once it completes.
Alternatively, you can also execute the following command to delete the resource group:
az group delete --name <resource-group-of-storage-account> --yes