Get-AzSecurityCompliance
Mendapatkan kepatuhan keamanan langganan dari waktu ke waktu
Sintaks
Get-AzSecurityCompliance
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzSecurityCompliance
-Name <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzSecurityCompliance
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Mendapatkan kepatuhan keamanan langganan berdasarkan rasio sumber daya yang sehat dan tidak aman saat ini pada langganan ini. Kepatuhan keamanan dihitung setiap hari dan riwayat disimpan.
Contoh
Contoh 1
Get-AzSecurityCompliance
Id : /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/compliances/2018-08-20Z
Name : 2018-08-20Z
ResourceCount : 18
AssessmentTimestampUtcDate : 20/08/2018 00:00:00
AssessmentResult : {Microsoft.Azure.Commands.Security.Models.Compliances.PSSecurityComplianceSegment}
Id : /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/compliances/2018-08-19Z
Name : 2018-08-19Z
ResourceCount : 18
AssessmentTimestampUtcDate : 19/08/2018 00:00:00
AssessmentResult : {Microsoft.Azure.Commands.Security.Models.Compliances.PSSecurityComplianceSegment}
Id : /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/compliances/2018-08-18Z
Name : 2018-08-18Z
ResourceCount : 18
AssessmentTimestampUtcDate : 18/08/2018 00:00:00
AssessmentResult : {Microsoft.Azure.Commands.Security.Models.Compliances.PSSecurityComplianceSegment}
Id : /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/compliances/2018-08-17Z
Name : 2018-08-17Z
ResourceCount : 18
AssessmentTimestampUtcDate : 17/08/2018 00:00:00
AssessmentResult : {Microsoft.Azure.Commands.Security.Models.Compliances.PSSecurityComplianceSegment}
Id : /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/compliances/2018-08-16Z
Name : 2018-08-16Z
ResourceCount : 18
AssessmentTimestampUtcDate : 16/08/2018 00:00:00
AssessmentResult : {Microsoft.Azure.Commands.Security.Models.Compliances.PSSecurityComplianceSegment}
Id : /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/compliances/2018-08-15Z
Name : 2018-08-15Z
ResourceCount : 18
AssessmentTimestampUtcDate : 15/08/2018 00:00:00
AssessmentResult : {Microsoft.Azure.Commands.Security.Models.Compliances.PSSecurityComplianceSegment}
Id : /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/compliances/2018-08-14Z
Name : 2018-08-14Z
ResourceCount : 18
AssessmentTimestampUtcDate : 14/08/2018 00:00:00
AssessmentResult : {Microsoft.Azure.Commands.Security.Models.Compliances.PSSecurityComplianceSegment}
Id : /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/compliances/2018-08-13Z
Name : 2018-08-13Z
ResourceCount : 18
AssessmentTimestampUtcDate : 13/08/2018 00:00:00
AssessmentResult : {Microsoft.Azure.Commands.Security.Models.Compliances.PSSecurityComplianceSegment}
Id : /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/compliances/2018-08-12Z
Name : 2018-08-12Z
ResourceCount : 18
AssessmentTimestampUtcDate : 12/08/2018 00:00:00
AssessmentResult : {Microsoft.Azure.Commands.Security.Models.Compliances.PSSecurityComplianceSegment}
Id : /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/compliances/2018-08-11Z
Name : 2018-08-11Z
ResourceCount : 18
AssessmentTimestampUtcDate : 11/08/2018 00:00:00
AssessmentResult : {Microsoft.Azure.Commands.Security.Models.Compliances.PSSecurityComplianceSegment}
Id : /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/compliances/2018-08-10Z
Name : 2018-08-10Z
ResourceCount : 18
AssessmentTimestampUtcDate : 10/08/2018 00:00:00
AssessmentResult : {Microsoft.Azure.Commands.Security.Models.Compliances.PSSecurityComplianceSegment}
Id : /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/compliances/2018-08-09Z
Name : 2018-08-09Z
ResourceCount : 18
AssessmentTimestampUtcDate : 09/08/2018 00:00:00
AssessmentResult : {Microsoft.Azure.Commands.Security.Models.Compliances.PSSecurityComplianceSegment}
Id : /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/compliances/2018-08-08Z
Name : 2018-08-08Z
ResourceCount : 18
AssessmentTimestampUtcDate : 08/08/2018 00:00:00
AssessmentResult : {Microsoft.Azure.Commands.Security.Models.Compliances.PSSecurityComplianceSegment}
Id : /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/compliances/2018-08-07Z
Name : 2018-08-07Z
ResourceCount : 18
AssessmentTimestampUtcDate : 07/08/2018 00:00:00
AssessmentResult : {Microsoft.Azure.Commands.Security.Models.Compliances.PSSecurityComplianceSegment}
Mendapatkan kepatuhan keamanan langganan selama 14 hari terakhir
Contoh 2
Get-AzSecurityCompliance -Name "2018-08-20Z"
Id : /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/compliances/2018-08-20Z
Name : 2018-08-20Z
ResourceCount : 18
AssessmentTimestampUtcDate : 20/08/2018 00:00:00
AssessmentResult : {Microsoft.Azure.Commands.Security.Models.Compliances.PSSecurityComplianceSegment}
Mendapatkan kepatuhan keamanan langganan pada tanggal tertentu
Parameter
-DefaultProfile
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan Azure.
Jenis: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Name
Nama sumber daya.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-ResourceId
ID Sumber Daya.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | True |
Terima karakter wildcard: | False |
Input
Output
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.
Azure PowerShell