diff --git a/Identity/AzureStack.Identity.psm1 b/Identity/AzureStack.Identity.psm1 index 1188d6f..9c44cbc 100644 --- a/Identity/AzureStack.Identity.psm1 +++ b/Identity/AzureStack.Identity.psm1 @@ -369,7 +369,7 @@ function Register-AzsWithMyDirectoryTenant { $refreshToken = Get-AzureRmUserRefreshToken -azureEnvironment $azureEnvironment -directoryTenantId $azureStackEnvironment.AdTenant -AutomationCredential $AutomationCredential # Initialize the Graph PowerShell module to communicate with the correct graph service - $graphEnvironment = ResolveGraphEnvironment $azureEnvironment + $graphEnvironment = Resolve-GraphEnvironment $azureEnvironment Initialize-GraphEnvironment -Environment $graphEnvironment -DirectoryTenantId $DirectoryTenantName -RefreshToken $refreshToken # Initialize the service principal for the Azure Stack Resource Manager application (allows us to acquire a token to ARM). If not specified, the sign-up flow must be completed via the Azure Stack portal first. @@ -455,4 +455,4 @@ Export-ModuleMember -Function @( "Get-AzsDirectoryTenantidentifier", "New-AzsADGraphServicePrincipal" -) \ No newline at end of file +)