func Example_createCommunicationService() {
	groupName := config.GenerateGroupName("communication")
	config.SetGroupName(groupName)
	ctx, cancel := context.WithTimeout(context.Background(), 6000*time.Second)
	defer cancel()
	defer resources.Cleanup(ctx)
	if _, err := resources.CreateGroup(ctx, groupName); err != nil {
		util.LogAndPanic(err)
	}
	util.PrintAndLog("created resource group")
	if _, err := CreateCommunicationService(ctx, groupName, serviceName); err != nil {
		util.LogAndPanic(err)
	}
	util.PrintAndLog("created communication service")
}
Example_createCommunicationService creates a group needed for a communication service, then
creates a communication service.
package communication
import (
	"context"
	"fmt"
	"log"
	"os"
	"strings"
	"testing"
	"time"
	"github.com/Azure-Samples/azure-sdk-for-go-samples/internal/config"
	"github.com/Azure-Samples/azure-sdk-for-go-samples/internal/util"
	"github.com/Azure-Samples/azure-sdk-for-go-samples/resources"
	"github.com/marstr/randname"
)
var (
	serviceName = generateName("comm-service1")
)