Azure / Azure/PSRule.Rules.Azure

[RULE] Disable public network access on file shares

Open
#3,735 7 comments 0 reactions 1 assignee Claimed by @mathieusouflis View on GitHub
good first issue lifecycle: preview pillar: security rule: storage-account
Dominant language
PowerShell
Stars
447
Forks
109
Avg merge
2d 19h
Merged PRs (30d)
23

Description

### Existing rule

_No response_

### Suggested rule

Azure file shares `Microsoft.FileShares/fileShares` is a new (preview) resource separate from `Microsoft.Storage`.

A new separate rule should be created to ensure that public access is disabled by setting `properties.publicNetworkAccess` to `Disabled`.

Similar to: https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.ADX.PublicAccess/

### Pillar

Security

### Additional context

- https://learn.microsoft.com/azure/templates/microsoft.fileshares/fileshares
- https://learn.microsoft.com/azure/storage/files/create-file-share#networking

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.