Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve SQL security #33

Closed
rfrazier opened this issue Aug 15, 2022 · 0 comments
Closed

Improve SQL security #33

rfrazier opened this issue Aug 15, 2022 · 0 comments
Assignees

Comments

@rfrazier
Copy link
Contributor

# Step 7: Set managed identity only access
Enable-AzSqlServerActiveDirectoryOnlyAuthentication -ServerName $ServerName -ResourceGroupName $ResourceGroupName
#if ($IsProd) {
    # Step 8: Block public access
    Set-AzSqlServer -ServerName $ServerName -PublicNetworkAccess 'disabled' -ResourceGroupName $ResourceGroupName
#}

Issue

The intent is to have SQL server only allow Azure AD connections and, for production only, disable public network access.

These features were previously part of the bicep template and had to be removed as part of the SQL server user setup work item.

A deployment script is used to setup managed identity and it needs the ability to connect as SQL admin from Azure (0.0.0.0).

To address this issue we need another deploymentScript to run after SQL setup has been completed to enable these security features. The challenge will be providing enough credentials to the deploymentScript to be able to perform the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants