Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| azure:azure_powerpipe [2025/05/29 23:05] – mmuze | azure:azure_powerpipe [2026/02/04 15:42] (current) – [Azure] mmuze | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Azure Steampipe/ | ====== Azure Steampipe/ | ||
| + | * Details on installing are here, [[https:// | ||
| + | |||
| + | |||
| + | ====== Installation ====== | ||
| + | - Install Powerpipe | ||
| + | - Install Steampipe | ||
| + | - Install Steampipe Azure Compliance Mod | ||
| + | |||
| + | |||
| + | < | ||
| + | sudo /bin/sh -c " | ||
| + | |||
| + | sudo /bin/sh -c " | ||
| + | |||
| + | |||
| + | mkdir dashboards | ||
| + | cd dashboards | ||
| + | powerpipe mod init | ||
| + | powerpipe mod install github.com/ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | az login --tenant cfc.avertium.com --use-device-code | ||
| + | </ | ||
| + | |||
| ====== Azure ====== | ====== Azure ====== | ||
| For Azure modules I provide authentication using the Azure CLI. Below is an example logging into a tenant. | For Azure modules I provide authentication using the Azure CLI. Below is an example logging into a tenant. | ||
| Line 6: | Line 31: | ||
| </ | </ | ||
| + | Run CIS Benchmark checks and output the results to HTML. | ||
| < | < | ||
| powerpipe benchmark run azure_compliance.benchmark.cis_v300 --export html | powerpipe benchmark run azure_compliance.benchmark.cis_v300 --export html | ||
| </ | </ | ||
| + | |||
| + | |||
| + | |||
| + | To install and run **Powerpipe** and **Steampipe** for Azure CIS benchmarks, you will follow a four-stage process: installing the binaries, configuring Azure authentication, | ||
| + | |||
| + | === 1. Install Steampipe and Powerpipe === | ||
| + | Run these commands in your bash terminal to install the latest versions using the official install scripts. | ||
| + | |||
| + | <code bash> | ||
| + | # Install Steampipe | ||
| + | sudo /bin/sh -c " | ||
| + | # Install Powerpipe | ||
| + | sudo /bin/sh -c " | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === 2. Authenticate with Azure === | ||
| + | Steampipe uses your existing Azure CLI credentials by default. Ensure you are logged in and have the correct subscription active. | ||
| + | |||
| + | <code bash> | ||
| + | # Log in to Azure | ||
| + | az login | ||
| + | # (Optional) Set the specific subscription you want to scan | ||
| + | az account set --subscription " | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === 3. Install Plugins and Compliance Mod === | ||
| + | Steampipe needs the **Azure** and **Azure AD** plugins to fetch data, while Powerpipe needs the **Azure Compliance** mod to run the CIS checks. | ||
| + | |||
| + | <code bash> | ||
| + | # Install required Steampipe plugins | ||
| + | steampipe plugin install azure | ||
| + | steampipe plugin install azuread | ||
| + | # Create a directory for your compliance checks and initialize a mod | ||
| + | mkdir azure-compliance | ||
| + | cd azure-compliance | ||
| + | powerpipe mod init | ||
| + | # Install the Azure Compliance mod | ||
| + | powerpipe mod install github.com/ | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === 4. Run the CIS Benchmark === | ||
| + | You must start the Steampipe service so Powerpipe can query it, then run the benchmark command. | ||
| + | |||
| + | <code bash> | ||
| + | # Start the Steampipe service in the background | ||
| + | steampipe service start | ||
| + | # Run the CIS v3.0.0 benchmark (or choose your preferred version) | ||
| + | powerpipe benchmark run azure_compliance.benchmark.cis_v300 --export cis_300.html | ||
| + | </ | ||
| + | |||
| + | <WRAP tip> | ||
| + | **Prefer a visual dashboard? | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === Summary of Common Benchmarks === | ||
| + | |||
| + | ^ Framework ^ Command ^ | ||
| + | | **CIS v3.0.0** | ``powerpipe benchmark run azure_compliance.benchmark.cis_v300`` | | ||
| + | | **CIS v2.1.0** | ``powerpipe benchmark run azure_compliance.benchmark.cis_v210`` | | ||
| + | | **NIST SP 800-53** | ``powerpipe benchmark run azure_compliance.benchmark.nist_sp_800_53_rev_5`` | | ||
| + | `` | ||