Skip to content

Commit 92e470a

Browse files
committed
Resolved PR comments
1 parent 5cfabb5 commit 92e470a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

articles/communication-services/samples/email-resource-management.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ Automate domain creation, configuration, and DNS record setup (including Domain,
142142
```azurepowershell-interactive
143143
# Loop through each domain in the predefined list of domains to create and configure them
144144
foreach ($domainName in $domains){
145-
# Extract the base domain name from the full domain name (e.g., "sales" from "sales.contoso.net")
146-
$baseDomain = $domainName.split('.')[0]
145+
# Extract the subdomain prefix from the fully qualified domain name (e.g., "sales" from "sales.contoso.net")
146+
$subdomainPrefix = $domainName.split('.')[0]
147147
148148
# Output the domain name that is being created
149149
Write-Host "Creating domain: $domainName"
@@ -162,6 +162,7 @@ foreach ($domainName in $domains){
162162
Start-Sleep -Seconds 30
163163
164164
# Retrieve the domain details after creation
165+
# The domain details will be used during the DNS record setting request
165166
$domainDetailsJson = Get-AzEmailServiceDomain -ResourceGroupName $resourceGroup -EmailServiceName $emailServiceName -Name $domainName
166167
$domainDetails = $domainDetailsJson | ConvertFrom-Json
167168

0 commit comments

Comments
 (0)