SV-255338r961095_rule
V-255338
SRG-APP-000211-DB-000122
ASQL-00-008900
CAT II
10
To remove an Azure RBAC role assignment, use Remove-AzRoleAssignment PowerShell command.
Example:
Remove-AzRoleAssignment `
-SignInName "myAADIdenity" `
-ResourceGroupName "myResourceGroup" `
-ResourceName "myServerName" `
-ResourceType "Microsoft.Sql/servers" `
-RoleDefinitionName "myRole" `
To validate Azure role-based access controls (RBAC) for a specific resource, use the PowerShell script below:
$LogicalServerName = "myServer"
$ResourceScope = Get-AzResource -name $LogicalServerName | Where-Object {$_.ResourceType -eq "Microsoft.Sql/servers"} | Select-Object -ExpandProperty ResourceID
Get-AzRoleAssignment | Where-Object {$_.Scope -eq $ResourceScope}
If a user not assigned information system management responsibilities has membership in any of the following roles, this is a finding:
##SQL DB Contributor
##SQL Security Manager
##SQL Server Contributor
##User Access Administrator
##Owner
##Contributor
##Reader
V-255338
False
ASQL-00-008900
To validate Azure role-based access controls (RBAC) for a specific resource, use the PowerShell script below:
$LogicalServerName = "myServer"
$ResourceScope = Get-AzResource -name $LogicalServerName | Where-Object {$_.ResourceType -eq "Microsoft.Sql/servers"} | Select-Object -ExpandProperty ResourceID
Get-AzRoleAssignment | Where-Object {$_.Scope -eq $ResourceScope}
If a user not assigned information system management responsibilities has membership in any of the following roles, this is a finding:
##SQL DB Contributor
##SQL Security Manager
##SQL Server Contributor
##User Access Administrator
##Owner
##Contributor
##Reader
M
5500