Skip to content

Cannot add the subnet to the storage account #5

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

Open
Yvand opened this issue Oct 7, 2024 · 1 comment
Open

Cannot add the subnet to the storage account #5

Yvand opened this issue Oct 7, 2024 · 1 comment

Comments

@Yvand
Copy link

Yvand commented Oct 7, 2024

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

My goal is to configure the storage account to allow traffic only from the virtual network of the function.
I forked this project to achieve this: https://github.com/Yvand/functions-quickstart-typescript-azd/tree/allow-subnet-in-storage
But whatever syntax I try, the creation of the storage account always fails.

Any log messages given by the failure

Command azd provision always fails to provision the storage account. In the ARM deployment I get this error:

{"code":"DeploymentFailed","target":"/subscriptions/SUB_ID/resourceGroups/rg-funcs-quickstart-test/providers/Microsoft.Resources/deployments/storage","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"ResourceDeploymentFailure","target":"/subscriptions/SUB_ID/resourceGroups/rg-funcs-quickstart-test/providers/Microsoft.Storage/storageAccounts/stadvdgvdhfhwdg","message":"The response for resource had empty or invalid content."}]}

Expected/desired behavior

Have the storage account allow traffic only from the virtual network of the function (and a few specific IPs)

OS and Version?

Ubuntu WSL 22.04

Versions

azd version 1.10.1 (commit 31409a33266fb4a5fdbb644bc83988e725d6c7c9)

Mention any other details that might be useful


Thanks! We'll be in touch soon.

@Yvand
Copy link
Author

Yvand commented Oct 9, 2024

Finally I successfully implemented this feature, and submitted PR #6

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

1 participant