共用方式為


Get-AzGalleryInVMAccessControlProfileVersion

取得資源庫的指定版本 inVMAccessControlProfile 或來自指定資源庫 inVMAccessControlProfile 的版本清單。

語法

DefaultParameter (預設值)

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

ResourceIdParameter

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

Description

當提供選擇性參數 GalleryInVMAccessControlProfileVersionName 時,Get-AzGalleryInVMAccessControlProfileVersion Cmdlet 會擷取 VMAccessControlProfile 中資源庫的指定版本。 否則,它會傳回來自 VMAccessControlProfile 中指定資源庫的版本清單。

範例

範例 1

Get-AzGalleryInVMAccessControlProfileVersion -ResourceGroupName "myResourceGroup" -GalleryName "myGallery" -GalleryInVMAccessControlProfileName "myProfile" -GalleryInVMAccessControlProfileVersionName "myProfileVersion"

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

範例 2

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

從資源群組 「myResourceGroup」 中的資源庫 「myGallery」 取得資源庫 inVMAccessControlProfile 中所有版本的清單。

參數

-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
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-GalleryInVMAccessControlProfileVersionName

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

輸出

PSGalleryInVMAccessControlProfileVersion