add DeleteResourceGroup function in ArmHelpers
@@ -2,6 +2,7 @@ package armhelpers
import (
"github.com/Azure/azure-sdk-for-go/arm/resources/resources"
+ "github.com/Azure/go-autorest/autorest"
"github.com/prometheus/common/log"
)
@@ -18,3 +19,8 @@ func (az *AzureClient) EnsureResourceGroup(name, location string) (resourceGroup
return &response, nil
}
+
+// DeleteResourceGroup delete the named resource group
+func (az *AzureClient) DeleteResourceGroup(name string, cancel chan struct{}) (<-chan autorest.Response, <-chan error) {
+ return az.groupsClient.Delete(name, cancel)
+}
