-
Notifications
You must be signed in to change notification settings - Fork 0
Get BapTenant
Retrieves information about the available azure tenant.
Get-BapTenant [-Upn <String>] [-TenantId <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-BapTenant [-Upn <String>] [-TenantId <String>] [-AsExcelOutput] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Get-BapTenant [-Upn <String>] [-TenantId <String>] [-AsHashTable] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
This function retrieves information about the available azure tenants based on cached credentials in the local Azure PowerShell context.
Get-BapTenant
This will retrieve all available tenants based on cached Azure PowerShell credentials.
Get-BapTenant -Upn "alex@contoso.com"
This will retrieve the tenant information for the specified UPN. It will only return results where the UPN matches "alex@contoso.com".
Get-BapTenant -TenantId "12345678-90ab-cdef-1234-567890abcdef"
This will retrieve the tenant information for the specified Tenant ID. It will only return results where the Tenant ID matches "12345678-90ab-cdef-1234-567890abcdef".
Get-BapTenant -AsExcelOutput
This will export the retrieved tenant information to an Excel file.
Get-BapTenant -AsHashTable
This will export the retrieved tenant information to a hashtable.
Specifies the User Principal Name (UPN) of the user account to filter the results.
Supports wildcard patterns.
Defaults to "*" which means all UPNs.
Type: String
Parameter Sets: (All)
Aliases: Username, User, Login
Required: False
Position: Named
Default value: *
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the Tenant ID to filter the results.
Supports wildcard patterns.
Defaults to "*" which means all Tenant IDs.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: *
Accept pipeline input: False
Accept wildcard characters: FalseInstructs the function to export the results to an Excel file.
Type: SwitchParameter
Parameter Sets: Excel
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseInstructs the function to export the results to a hashtable.
Type: SwitchParameter
Parameter Sets: HashTable
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Mötz Jensen (@Splaxi)