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

Deployment Error Details: PublicAccessNotPermitted: Public access is not permitted on this storage account. #382

Open
phanthaiduong22 opened this issue Nov 20, 2024 · 1 comment

Comments

@phanthaiduong22
Copy link

Please provide us with the following information:

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

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

Minimal steps to reproduce

azd up

Any log messages given by the failure

{
"status": "Failed",
"error": {
"code": "DeploymentFailed",
"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": "Conflict",
"message": "{\r\n "status": "Failed",\r\n "error": {\r\n "code": "ResourceDeploymentFailure",\r\n "message": "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.",\r\n "details": [\r\n {\r\n "code": "DeploymentFailed",\r\n "target": "/subscriptions/[REDACTED]/resourceGroups/rg-dphan-env-v4/providers/Microsoft.Resources/deployments/storage",\r\n "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.",\r\n "details": [\r\n {\r\n "code": "PublicAccessNotPermitted",\r\n "message": "Public access is not permitted on this storage account.\nRequestId:[REDACTED]\nTime:2024-11-20T15:10:14.3137172Z"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}"
}
]
}
}
ERROR: error executing step command 'provision': deployment failed: error deploying infrastructure: deploying to subscription:
Deployment Error Details:
PublicAccessNotPermitted: Public access is not permitted on this storage account.
RequestId: [REDACTED]
Time:2024-11-20T15:10:14.3137172Z
TraceID: [REDACTED]

Expected/desired behavior

Can deploy the project normally

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful

I have owner permission in my subscription


Thanks! We'll be in touch soon.

@akshayvidap128
Copy link

Whenever we run azd up, the infrastructure is deployed with public access enabled by default. This means that all the resources, including storage accounts, are accessible publicly unless specified otherwise in the configuration.

If you're encountering the "PublicAccessNotPermitted" error, please double-check the infrastructure configuration.

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