Exemplo n.º 1
0
        public async Task SetUp()
        {
            ArmClient      = GetArmClient();
            _resourceGroup = await ArmClient.GetResourceGroupResource(_resourceGroupIdentifier).GetAsync();

            _emailService = await _resourceGroup.GetEmailServiceResourceAsync(_emailServiceName);
        }
Exemplo n.º 2
0
        internal async Task <CommunicationDomainResource> CreateDefaultDomain(string domainName, EmailServiceResource emailService)
        {
            CommunicationDomainResourceData data = new CommunicationDomainResourceData(ResourceLocation)
            {
                DomainManagement     = DomainManagement.CustomerManaged,
                ValidSenderUsernames = { { "username", "displayName" } }
            };
            var domainLro = await emailService.GetCommunicationDomainResources().CreateOrUpdateAsync(WaitUntil.Completed, domainName, data);

            return(domainLro.Value);
        }