public virtual void DeleteApplicationPackage(string resourceGroupName, string accountName, string applicationId, string version) { if (string.IsNullOrEmpty(resourceGroupName)) { // use resource mgr to see if account exists and then use resource group name to do the actual lookup resourceGroupName = GetGroupForAccount(accountName); } BatchManagementClient.ApplicationPackage.Delete(resourceGroupName, accountName, applicationId, version); }
/// <summary> /// Deletes an application package used in a Scenario test. /// </summary> public static void DeleteApplicationPackage(BatchController controller, BatchAccountContext context, string applicationId, string version) { BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); client.DeleteApplicationPackage(context.ResourceGroupName, context.AccountName, applicationId, version); }