你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Get-AzSphereCatalog

获取目录

语法

Get-AzSphereCatalog
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzSphereCatalog
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzSphereCatalog
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzSphereCatalog
   -InputObject <ISphereIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

说明

获取目录

示例

示例 1:列出给定资源组的所有目录

Get-AzSphereCatalog -ResourceGroupName test-sataneja-10

Location Name                   SystemDataCreatedAt    SystemDataCreatedBy    SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGroupName      
-------- ----                   -------------------    -------------------    ----------------------- ------------------------ ------------------------ ---------------------------- ----------- 
global   CAT43                  9/24/2022 12:54:16 PM  example@microsoft.com  User                    9/24/2022 12:54:16 PM    example@microsoft.com    User                         test-satan… 
global   CAT007                 9/26/2022 8:58:15 PM   example@microsoft.com  User                    9/26/2022 8:58:15 PM     example@microsoft.com    User                         test-satan… 
global   CAT10                  10/10/2022 4:23:53 PM  example@microsoft.com  User                    10/10/2022 4:23:53 PM    example@microsoft.com    User                         test-satan… 
global   TCAT01                 10/14/2022 12:12:22 AM example@microsoft.com  User                    10/14/2022 12:12:22 AM   example@microsoft.com    User                         test-satan… 
global   TestCatalog1x3         4/25/2023 10:00:52 PM  example@microsoft.com  User                    4/25/2023 10:00:52 PM    example@microsoft.com    User                         test-satan… 
global   TestCatalog1x3_Catalog 5/11/2023 6:12:50 PM   example@microsoft.com  User                    5/11/2023 6:12:50 PM     example@microsoft.com    User                         test-satan…

此命令列出给定资源组的所有目录。

示例 2:获取具有指定资源组的特定目录

Get-AzSphereCatalog -Name "testcat" -ResourceGroupName "goyedokun"

Id                           : /subscriptions/82f138e0-1c79-4708-bda1-5e224cd688b2/resourceGroups/goyedokun/providers/Microsoft.AzureSphere/catalogs/testcat
Location                     : global
Name                         : testcat
ProvisioningState            : Succeeded
ResourceGroupName            : goyedokun
RetryAfter                   : 
SystemDataCreatedAt          : 6/27/2023 6:49:50 PM
SystemDataCreatedBy          : example@microsoft.com
SystemDataCreatedByType      : User
SystemDataLastModifiedAt     : 6/27/2023 6:49:50 PM
SystemDataLastModifiedBy     : example@microsoft.com
SystemDataLastModifiedByType : User
Tag                          : {
                               }
Type                         : microsoft.azuresphere/catalogs

此命令获取具有指定资源组的特定目录。

示例 2:列出已连接订阅的所有目录

Get-AzSphereCatalog

Location Name                           SystemDataCreatedAt    SystemDataCreatedBy                  SystemDataCreatedByType SystemDataLastModifiedAt SystemData
                                                                                                                                                     LastModifi 
                                                                                                                                                     edBy       
-------- ----                           -------------------    -------------------                  ----------------------- ------------------------ ---------- 
global   MyCatalog3                     4/21/2021 9:32:32 PM   example@microsoft.com                User                    8/10/2023 3:21:08 PM     example@m… 
global   MyCatalog2                     5/20/2021 4:44:38 PM   example@microsoft.com                User                    5/20/2021 4:44:38 PM     example@m… 
global   MyCatalog1                     5/20/2021 4:45:44 PM   example@microsoft.com                User                    5/20/2021 4:45:44 PM     example@m… 
global   CatalogARMSetup_39f85f04       8/18/2021 8:28:11 PM   5223a8bc-448a-411c-bcd4-7d41745ed6ba Application             8/18/2021 8:28:11 PM     5223a8bc-… 
global   CatalogARMSetup_3b15f308       9/17/2021 6:41:41 PM   5223a8bc-448a-411c-bcd4-7d41745ed6ba Application             9/17/2021 6:41:41 PM     5223a8bc-… 
global   mrarmcatalog1                  9/21/2021 7:27:16 PM   example@microsoft.com                User                    9/21/2021 7:27:16 PM     example@m… 
global   CatalogARMSetup_eb5cca0a       9/21/2021 10:06:28 PM  5223a8bc-448a-411c-bcd4-7d41745ed6ba Application             9/21/2021 10:06:28 PM    5223a8bc-… 
global   CatalogARMSetup_f8c1fea7       9/21/2021 10:06:31 PM  5223a8bc-448a-411c-bcd4-7d41745ed6ba Application             9/21/2021 10:06:31 PM    5223a8bc-… 
global   CatalogARMSetup_f2d88f81       9/21/2021 10:06:38 PM  5223a8bc-448a-411c-bcd4-7d41745ed6ba Application             9/21/2021 10:06:38 PM    5223a8bc-… 
global   CatalogARMSetup_1711d4b8       9/21/2021 10:06:42 PM  5223a8bc-448a-411c-bcd4-7d41745ed6ba Application             9/21/2021 10:06:42 PM    5223a8bc-… 
global   CatalogARMSetup_04744136       10/1/2021 7:14:04 PM   5223a8bc-448a-411c-bcd4-7d41745ed6ba Application             10/1/2021 7:14:04 PM     5223a8bc-… 
global   CatalogARMSetup_bff4a3fe       10/5/2021 5:14:48 PM   5223a8bc-448a-411c-bcd4-7d41745ed6ba Application             10/5/2021 5:14:48 PM     5223a8bc-… 
global   CatalogARMSetup_e05ad6ac       10/5/2021 5:15:05 PM   5223a8bc-448a-411c-bcd4-7d41745ed6ba Application             10/5/2021 5:15:05 PM     5223a8bc-… 
global   newCatalog                     8/15/2023 3:06:31 AM   example@microsoft.com                User                    8/15/2023 3:10:39 AM     example@m…

此命令列出当前订阅的所有目录。

参数

-DefaultProfile

DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。

类型:PSObject
别名:AzureRMContext, AzureCredential
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-InputObject

标识参数

类型:ISphereIdentity
Position:Named
默认值:None
必需:True
接受管道输入:True
接受通配符:False

-Name

目录名称

类型:String
别名:CatalogName
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-ResourceGroupName

资源组的名称。 此名称不区分大小写。

类型:String
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-SubscriptionId

目标订阅的 ID。

类型:String[]
Position:Named
默认值:(Get-AzContext).Subscription.Id
必需:False
接受管道输入:False
接受通配符:False

输入

ISphereIdentity

输出

ICatalog