Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AzFilesHybrid/AzFilesHybrid.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -2665,7 +2665,7 @@ function Get-AzStorageAccountADObject {

if ($PSCmdlet.ParameterSetName -eq "ADObjectName") {
if ([System.String]::IsNullOrEmpty($Domain)) {
$domainInfo = Get-Domain
$domainInfo = Get-ADDomain -Current LocalComputer
$Domain = $domainInfo.DnsRoot
}
}
Expand Down Expand Up @@ -3749,7 +3749,7 @@ function Set-StorageAccountDomainProperties {
Write-Verbose "Set-StorageAccountDomainProperties: Enabling the feature on the storage account and providing the required properties to the storage service"

if ([System.String]::IsNullOrEmpty($Domain)) {
$domainInformation = Get-ADDomain
$domainInformation = Get-ADDomain -Current LocalComputer
$Domain = $domainInformation.DnsRoot
} else {
$domainInformation = Get-ADDomain -Server $Domain
Expand Down