SOLVED

Hide Connection Established message with Connect-AzureAD

Copper Contributor

Hi there,

 

in my script i am writing "connect-AzureAD"

 

This asks for me a authentication. Once authentication completes, it shows me a message like below with my details.

 

Account Environment TenantId TenantDomain AccountType
------- ----------- -------- ------------ -----------

xxxxxx      xxxxx        xxxxxxx    xxxx    xxxx

 

i would like to hide this from my script output. Is that possible ?

2 Replies
best response confirmed by venka91 (Copper Contributor)
Solution

@venka91 

You can use 

$null = connect-AzureAD

if you want to dispose of the output from the connection or

$var = connect-AzureAD

 if you want to have the output available for later processing

@Jonathan_Allen 

 

Thank you so much. This is worked great.

1 best response

Accepted Solutions
best response confirmed by venka91 (Copper Contributor)
Solution

@venka91 

You can use 

$null = connect-AzureAD

if you want to dispose of the output from the connection or

$var = connect-AzureAD

 if you want to have the output available for later processing

View solution in original post