Get-AzCloudServiceOSFamily
取得客體操作系統系列的屬性,該系列可在雲端服務的 XML 服務組態 (.cscfg) 中指定。
語法
Get-AzCloudServiceOSFamily
-Location <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzCloudServiceOSFamily
-Location <String>
-OSFamilyName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzCloudServiceOSFamily
-InputObject <ICloudServiceIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
取得客體操作系統系列的屬性,該系列可在雲端服務的 XML 服務組態 (.cscfg) 中指定。
範例
範例 1:取得位置中的所有 OS 系列
Get-AzCloudServiceOSFamily -location 'westus2'
Name Label
---- -----
5 Windows Server 2016
4 Windows Server 2012 R2
6 Windows Server 2019
3 Windows Server 2012
2 Windows Server 2008 R2
此命令會取得 westus2 位置中的所有 OS 系列
範例 2:取得 OS 系列
Get-AzCloudServiceOSFamily -location 'westus2' -OSFamilyName 5
Name Label
---- -----
5 Windows Server 2016
此命令會取得位於 westus2 中名為 5 的 OS 系列。
參數
-DefaultProfile
DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。
類型: | PSObject |
別名: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
類型: | ICloudServiceIdentity |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Location
OS 系列所屬位置的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-OSFamilyName
OS 系列的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-SubscriptionId
可唯一識別Microsoft Azure 訂用帳戶的訂用帳戶認證。 訂用帳戶標識碼會形成每個服務呼叫 URI 的一部分。
類型: | String[] |
Position: | Named |
預設值: | (Get-AzContext).Subscription.Id |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |