Content-Length: 762 | pFad | https://github.com/oyuksektepeli/AzureChamp/raw/refs/heads/master/ConnectAzureAD.ps1
gth: 750 #Install Azure AD Module Find-Module AzureAD Install-Module -Name AzureAD Import-Module -Name AzureAD #Get credentials for Azure AD $cred = Get-Credential -Message "Username and Password for Azure AD" #Connect Azure AD Connect-AzureAD -Credential $cred #Get Session Info Get-AzureADCurrentSessionInfo #Get Information about Tenant Get-AzureADTenantDetail Get-AzureADDomain #To Connect Specific Tenant # login Login-AzureRmAccount # perform other Azure operations... Get-AzureRmContext Select-AzureRmSubscription -SubscriptionName "Microsoft Azure" $currentAzureContext = Get-AzureRmContext $tenantId = $currentAzureContext.Tenant.Id $accountId = $currentAzureContext.Account.Id Connect-AzureAD -TenantId $tenantId -AccountId $accountIdFetched URL: https://github.com/oyuksektepeli/AzureChamp/raw/refs/heads/master/ConnectAzureAD.ps1
Alternative Proxies: