共用方式為


Get-AzOperationalInsightsAvailableServiceTier

此命令會取得指定 worksapce 的所有可用服務層級。

語法

Get-AzOperationalInsightsAvailableServiceTier
   [-ResourceGroupName] <String>
   [-WorkspaceName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

此命令會取得指定 worksapce 的所有可用服務層級。

範例

範例 1

Get-AzOperationalInsightsAvailableServiceTier -ResourceGroupName ContosoResourceGroup -WorkspaceName MyWorkspace

ServiceTier              : PerGB2018
Enabled                  : True
MinimumRetention         : 30
MaximumRetention         : 730
DefaultRetention         : 30
CapacityReservationLevel :
LastSkuUpdate            :

ServiceTier              : CapacityReservation
Enabled                  : True
MinimumRetention         : 30
MaximumRetention         : 730
DefaultRetention         : 31
CapacityReservationLevel :
LastSkuUpdate            : Tue, 16 Nov 2021 13:20:32 GMT

此命令會取得指定 worksapce 的所有可用服務層級。

參數

-DefaultProfile

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

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ResourceGroupName

資源組名。

類型:String
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-WorkspaceName

包含數據表的工作區名稱。

類型:String
Position:1
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

輸入

String

輸出

PSAvailableServiceTier