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

Feature Request: Support Storage Account Firewall and Network Rules #1110

Closed
HighwayofLife opened this issue Apr 10, 2018 · 6 comments
Closed

Comments

@HighwayofLife
Copy link

HighwayofLife commented Apr 10, 2018

Feature Request: Add support for Storage Account Firewall and Network Rules.

Affected Resource(s)

  • azurerm_storage_account
  • azurerm_subnet

Subnets need to be able to create service endpoints. (see below ARM snippet)

References

ARM Template snippet - Storage

"kind": "Storage",
"name": "[parameters('storageAccounts_devworkdiag410_name')]",
"apiVersion": "2017-10-01",
"location": "eastus2",
"tags": {},
"scale": null,
"properties": {
    "networkAcls": {
        "bypass": "AzureServices",
        "virtualNetworkRules": [
            {
                "id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworks_DevWork_vnet_name'), parameters('subnets_default_name'))]",
                "action": "Allow",
                "state": "Succeeded"
            }
        ],
        "ipRules": [],
        "defaultAction": "Deny"
    },

ARM Template snippet - Subnet

"type": "Microsoft.Network/virtualNetworks/subnets",
"name": "[concat(parameters('virtualNetworks_DevWork_vnet_name'), '/', parameters('subnets_default_name'))]",
"apiVersion": "2018-01-01",
"scale": null,
"properties": {
    "provisioningState": "Succeeded",
    "addressPrefix": "10.0.0.0/24",
    "serviceEndpoints": [
        {
            "provisioningState": "Succeeded",
            "service": "Microsoft.Storage",
            "locations": [
                "eastus2",
                "centralus"
            ]
        }
    ]
}
@tombuildsstuff tombuildsstuff changed the title Support Storage Account Firewall and Network Rules Feature Request: Support Storage Account Firewall and Network Rules Apr 11, 2018
@tombuildsstuff
Copy link
Contributor

hey @HighwayofLife

Thanks for opening this issue

Support for this functionality has been previously requested in #1110 - rather than having multiple issues tracking the same thing I'm going to close this issue in favour of that one.

Thanks!

@hafizullah
Copy link

Hi @tombuildsstuff the link you have provided to the previously requested functionality references this issue. Could you please update the link so we can track that issue?

@tombuildsstuff
Copy link
Contributor

@hafizullah @HighwayofLife apologies for the incorrect issue number - this is duplicate of #416

@HighwayofLife
Copy link
Author

Ok, thanks... although that ticket doesn't contain any useful information. I'll copy it over there.

@xelor81
Copy link

xelor81 commented Jun 25, 2018

Can someone print a small sippet how to use this this feature in tf file please?
I am completely green in reading go lang code but I have a big need to implement this in my tf plans.

@tombuildsstuff
Copy link
Contributor

@hashicorp hashicorp locked as resolved and limited conversation to collaborators Jun 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants