共用方式為


Get-AzGalleryInVMAccessControlProfile

從指定的資源庫中取得指定的資源庫 inVMAccessControlProfile 或資源庫 inVMAccessControlProfiles 清單。

語法

DefaultParameter (預設值)

Get-AzGalleryInVMAccessControlProfile
    -ResourceGroupName <String>
    -GalleryName <String>
    [-GalleryInVMAccessControlProfileName <String>]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

ResourceIdParameter

Get-AzGalleryInVMAccessControlProfile
    [-ResourceId] <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

Get-AzGalleryInVMAccessControlProfile Cmdlet 會在提供選擇性參數 GalleryInVMAccessControlProfileName 時擷取指定的資源庫 inVMAccessControlProfile。 否則,它會從指定的資源庫傳回資源庫 inVMAccessControlProfiles 的清單。

範例

範例 1

Get-AzGalleryInVMAccessControlProfile -ResourceGroupName "myResourceGroup" -GalleryName "myGallery" -GalleryInVMAccessControlProfileName "myProfile"

從資源群組 “myResourceGroup” 中的資源庫 “myGallery” 取得名為 “myProfile” 的指定資源庫 inVMAccessControlProfile。

範例 2

Get-AzGalleryInVMAccessControlProfile -ResourceGroupName "myResourceGroup" -GalleryName "myGallery"

從資源群組 “myResourceGroup” 中的資源庫 “myGallery” 取得 VMAccessControlProfiles 中所有資源庫的清單。

參數

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

參數屬性

類型:IAzureContextContainer
預設值:None
支援萬用字元:False
不要顯示:False
別名:AzContext, AzureRmContext, AzureCredential

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-GalleryInVMAccessControlProfileName

VM 存取控制設定檔中的資源庫名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False
別名:名稱

參數集

DefaultParameter
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-GalleryName

圖庫的名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

DefaultParameter
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-ResourceGroupName

資源群組的名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

DefaultParameter
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-ResourceId

{{ Fill ResourceId 描述 }}

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

ResourceIdParameter
Position:0
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

CommonParameters

此 Cmdlet 支援常見參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters

輸入

String

輸出

PSGalleryInVMAccessControlProfile