共用方式為


Get-AzsDirectoryTenant

Lists all the directory tenants under the current subscription and given resource group name.

Syntax

Get-AzsDirectoryTenant
   [-ResourceGroupName <String>]
   [-Top <Int32>]
   [-Skip <Int32>]
   [<CommonParameters>]
Get-AzsDirectoryTenant
   -Name <String>
   [-ResourceGroupName <String>]
   [<CommonParameters>]
Get-AzsDirectoryTenant
   -ResourceId <String>
   [<CommonParameters>]

Description

Lists all the directory tenants under the current subscription and given resource group name.

Examples

-------------------------- EXAMPLE 1 --------------------------

Get-AzsDirectoryTenant -ResourceGroupName "System.Local"

Lists all the directory tenants under the current subscription and given resource group name.

Parameters

-Name

Directory tenant name.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

{{Fill ResourceGroupName Description}}

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

The resource id.

Type:String
Aliases:id
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Skip

Skip the first N items as specified by the parameter value.

Type:Int32
Position:Named
Default value:-1
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Top

Return the top N items as specified by the parameter value. Applies after the -Skip parameter.

Type:Int32
Position:Named
Default value:-1
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.AzureStack.Management.Subscriptions.Admin.Models.DirectoryTenant