CompositionalIT / farmer

Repeatable Azure deployments with ARM templates - made easy!
https://compositionalit.github.io/farmer
MIT License
523 stars 157 forks source link

Adds missing network and security configuration for storage accounts #986

Closed BlakeWills closed 1 year ago

BlakeWills commented 1 year ago

Adds the following options for configuring storage account network/security settings.

This PR closes #

The changes in this PR are as follows:

I have read the contributing guidelines and have completed the following:

If I haven't completed any of the tasks above, I include the reasons why here: N/A

Below is a minimal example configuration that includes the new features, which can be used to deploy to Azure:

let storageAcc = storageAccount {
    name "myaccount"

    // Creates the storage account using the azure dns endpoint, this cannot be used with private endpoints.
    //use_azure_dns_zone

    // completely disable public access
    disable_public_network_access

    disable_blob_public_access
    disable_shared_key_access
    default_to_oauth_authentication

    // restrict to private link + azure services - do not call disable_public_network_access
    //restrict_to_azure_services [NetworkRuleSetBypass.AzureServices]
}