Get-AzSecurityPricing
Ottiene i piani di Azure Defender per una sottoscrizione nel Centro sicurezza di Azure.
Sintassi
Get-AzSecurityPricing
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzSecurityPricing
-Name <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzSecurityPricing
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Descrizione
È possibile visualizzare ogni piano di Azure Defender, per sottoscrizione, usando questo cmdlet.
Per informazioni dettagliate su Azure Defender e sui piani disponibili, vedere Introduzione ad Azure Defender.
Esempio
Esempio 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
Ottiene lo stato di ogni piano di Azure Defender per la sottoscrizione.
Esempio 2
Get-AzSecurityPricing -ResourceId '/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/VirtualMachines'
Ottiene i dettagli dei prezzi dell'ID risorsa specifico. Dove ResourceId è uno degli ID restituiti da Get-AzSecurityPricing
.
Esempio 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}]
Ottiene i dettagli dei prezzi del piano denominato Azure Defender. Dove name
è uno dei nomi restituiti da Get-AzSecurityPricing
.
Parametri
-DefaultProfile
Credenziali, account, tenant e sottoscrizione usati per la comunicazione con Azure.
Tipo: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Posizione: | Named |
Valore predefinito: | None |
Necessario: | False |
Accettare l'input della pipeline: | False |
Accettare caratteri jolly: | False |
-Name
Nome risorsa.
Tipo: | String |
Posizione: | Named |
Valore predefinito: | None |
Necessario: | True |
Accettare l'input della pipeline: | False |
Accettare caratteri jolly: | False |
-ResourceId
ID risorsa.
Tipo: | String |
Posizione: | Named |
Valore predefinito: | None |
Necessario: | True |
Accettare l'input della pipeline: | True |
Accettare caratteri jolly: | False |