你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzSecurityPricing
获取 Azure 安全中心 中订阅的 Azure Defender 计划。
语法
Get-AzSecurityPricing
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzSecurityPricing
-Name <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzSecurityPricing
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
可以使用此 cmdlet 查看每个 Azure Defender 计划(每个订阅)。
有关 Azure Defender 和可用计划的详细信息,请参阅 Azure Defender 简介。
示例
示例 1
Get-AzSecurityPricing
Id Name PricingTier SubPlan FreeTrialRemainingTime Deprecated ReplacedBy
-- ---- ----------- ------- ---------------------- ---------- ----------
/subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/providers/Microsoft.Security/pricings/VirtualMachines VirtualMachines Standard P2 00:00:00
/subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/providers/Microsoft.Security/pricings/SqlServers SqlServers Standard 00:00:00
/subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/providers/Microsoft.Security/pricings/AppServices AppServices Standard 00:00:00
/subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/providers/Microsoft.Security/pricings/StorageAccounts StorageAccounts Standard PerStorageAccount 00:00:00
/subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/providers/Microsoft.Security/pricings/SqlServerVirtualMachines SqlServerVirtualMachines Standard 00:00:00
/subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/providers/Microsoft.Security/pricings/KubernetesService KubernetesService Free 00:00:00 True [Containers]
/subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/providers/Microsoft.Security/pricings/ContainerRegistry ContainerRegistry Free 00:00:00 True [Containers]
/subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/providers/Microsoft.Security/pricings/KeyVaults KeyVaults Standard 00:00:00
/subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/providers/Microsoft.Security/pricings/Dns Dns Standard 00:00:00
/subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/providers/Microsoft.Security/pricings/Arm Arm Standard 00:00:00
/subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/providers/Microsoft.Security/pricings/OpenSourceRelationalDatabases OpenSourceRelationalDatabases Standard 00:00:00
/subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/providers/Microsoft.Security/pricings/CosmosDbs CosmosDbs Standard 00:00:00
/subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/providers/Microsoft.Security/pricings/Containers Containers Standard 00:00:00
/subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/providers/Microsoft.Security/pricings/CloudPosture CloudPosture Free 00:00:00
获取订阅的每个 Azure Defender 计划的状态。
示例 2
Get-AzSecurityPricing -ResourceId '/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/VirtualMachines'
获取特定资源 ID 的定价详细信息。 其中 ResourceId 是返回的 Get-AzSecurityPricing
ID 之一。
示例 3
Get-AzSecurityPricing -Name 'VirtualMachines'
Id : /subscriptions/10329fc1-5a3b-443c-9054-83d13abd64db/providers/Microsoft.Security/pricings/VirtualMachines
Name : VirtualMachines
PricingTier : Standard
FreeTrialRemainingTime : 00:00:00
SubPlan : P2
Extensions : [{"name":"MdeDesignatedSubscription","isEnabled":"False","additionalExtensionProperties":null,"operationStatus":null},{"name":"AgentlessVmScanning","isEnabled":"True","additionalExtensionProperties":{"ExclusionTags":"[{\"key\":\"Microsoft\",\"value\":\"Defender\"},{\"key\":\"For\",\"value\":\"Cloud\"}]"},"operationStatus":null}]
获取命名的 Azure Defender 计划的定价详细信息。 其中返回 name
的名称之一 Get-AzSecurityPricing
。
参数
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Name
资源名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceId
资源 ID。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |