Get-AzureRmSqlServerAdvancedThreatProtectionPolicy
Hämtar advanced threat protection-principen för en server.
Varning
AzureRM PowerShell-modulen är officiellt inaktuell från och med den 29 februari 2024. Användare rekommenderas att migrera från AzureRM till Az PowerShell-modulen för att säkerställa fortsatt support och uppdateringar.
Även om AzureRM-modulen fortfarande kan fungera, underhålls den inte längre eller stöds, vilket gör att användaren kan välja och riskera fortsatt användning. Se våra migreringsresurser för vägledning om övergången till Az-modulen.
Syntax
Get-AzureRmSqlServerAdvancedThreatProtectionPolicy
[-InputObject <AzureSqlServerModel>]
-ServerName <String>
[-ResourceGroupName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Cmdleten Get-AzureRmSqlServerAdvancedThreatProtectionPolicy gör om advanced threat protection-principen för en server.
Exempel
Exempel 1 – Hämtar servern Advanced Threat Protection
PS C:\> Get-AzureRmSqlServerAdvancedThreatProtectionPolicy `
-ResourceGroupName "ResourceGroup01" `
-ServerName "Server01"
ResourceGroupName : ResourceGroup01
ServerName : Server01
IsEnabled : True
Exempel 2 – Hämtar servern Advanced Threat Protection från serverresursen
PS C:\> Get-AzureRmSqlServer `
-ResourceGroupName "ResourceGroup01" `
-ServerName "Server01" `
| Get-AzureRmSqlServerAdvancedThreatProtectionPolicy
ResourceGroupName : ResourceGroup01
ServerName : Server01
IsEnabled : True
Parametrar
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Type: | IAzureContextContainer |
Aliases: | AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Serverobjektet som ska användas med principåtgärden Advanced Threat Protection
Type: | AzureSqlServerModel |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
Namnet på resursgruppen.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ServerName
SQL Database-servernamn.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Indata
Parametrar: InputObject (ByValue)
Utdata
Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ServerAdvancedThreatProtectionPolicyModel