Skip to content

Commit

Permalink
Logic Apps for securing storage accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
tdtheautomator committed Dec 16, 2022
1 parent 6e76064 commit 2ccfc02
Show file tree
Hide file tree
Showing 8 changed files with 1,771 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## Introduction
Use this deployment template to create a Logic App to set Deny as DefaultAction for storage acocunt NACLs.
```json
"networkAcls": {
"defaultAction": "Deny"
}
```
The Logic App iterates through all storage account in enabled subscriptions.
The Logic App is configured as scheduled trigger with frequency of once per day.

## Post Deployment
- Enable Logic App
- Enable System Manged Identity
- Assign System Managed Identity **Storage Account Contributor** role at subscription level

## Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Introduction
Use this deployment template to create a Logic App to Disable as public acces for blobs.

```json
{
"allowBlobPublicAccess": false
}
```
The Logic App iterates through all storage account in enabled subscriptions.
The Logic App is configured as scheduled trigger with frequency of once per day.

## Post Deployment
- Enable Logic App
- Enable System Manged Identity
- Assign System Managed Identity **Storage Account Contributor** role at subscription level

## Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Introduction
Use this deployment template to create a Logic App to Disable as public acces for storage account.

```json
{
"publicNetworkAccess": "Disabled"
}
```
The Logic App iterates through all storage account in enabled subscriptions.
The Logic App is configured as scheduled trigger with frequency of once per day.

## Post Deployment
- Enable Logic App
- Enable System Manged Identity
- Assign System Managed Identity **Storage Account Contributor** role at subscription level

## Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Introduction
Use this deployment template to create a Logic App to enable secure transfer for storage acocunt and set's the protocol as TLS 1.2.

```json
{
"minimumTlsVersion": "TLS1_2",
"supportsHttpsTrafficOnly": true
}
```
The Logic App iterates through all storage account in enabled subscriptions.
The Logic App is configured as scheduled trigger with frequency of once per day.

## Post Deployment
- Enable Logic App
- Enable System Manged Identity
- Assign System Managed Identity **Storage Account Contributor** role at subscription level

## Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
Loading

0 comments on commit 2ccfc02

Please sign in to comment.