@@ -18,7 +18,27 @@ Template-based Markdown output with:
1818- Summary statistics
1919- Resource changes
2020- Detailed attribute changes (if enabled)
21- - Timestamp and metadata
21+ + Timestamp and metadata
22+
23+ ## AI Analysis with Azure
24+ When Azure integration is enabled via the ` --azure ` flag, tfsumpy will retrieve Azure resource details before performing AI summarization.
25+ Ensure your Azure credentials (e.g., via Azure CLI login or environment variables) and subscription ID are configured.
26+
27+ Example:
28+ ``` bash
29+ tfsumpy plan.json \
30+ --output markdown \
31+ --ai openai YOUR_API_KEY \
32+ --azure
33+ ```
34+
35+ For JSON output with AI and Azure:
36+ ``` bash
37+ tfsumpy plan.json \
38+ --output json \
39+ --ai openai YOUR_API_KEY \
40+ --azure
41+ ```
2242
2343### JSON Output
2444``` bash
@@ -89,7 +109,7 @@ This enables:
89109
90110# ## Deprecated Options
91111The following options are deprecated and will be removed in a future version :
92- - ` --changes` → Use `--hide- changes=false` instead
112+ - `--changes` : (deprecated; attribute changes are shown by default)
93113- ` --details` → Use `--detailed` instead
94114- ` --markdown` → Use `--output markdown` instead
95115
@@ -98,19 +118,20 @@ The following options are deprecated and will be removed in a future version:
98118- `--plugin-dir` : Directory to load plugins from
99119- `--debug` : Enable debug logging
100120
101- # # Markdown Output (Beta)
121+ # # Markdown Output
102122
103- You can generate a Markdown summary of your Terraform plan with :
123+ Generate a Markdown summary of your Terraform plan with :
104124
105125` ` ` bash
106- tfsumpy plan.json --markdown > plan_summary.md
126+ tfsumpy plan.json --output markdown > plan_summary.md
107127` ` `
108128
109- This will create a Markdown file with :
110- - A summary section
111- - Sections for created, updated, and destroyed resources
112- - JSON code blocks for each resource change
113-
114- For updates, both before and after states are shown. For creates and deletes, only the relevant state is shown.
129+ You can further control the content with :
130+ - `--detailed` : Show detailed resource information and attribute changes
131+ - `--hide-changes` : Hide detailed attribute changes
115132
116- > **Note:** Markdown output is a beta feature. Please report any issues or suggestions!
133+ The generated Markdown includes :
134+ - Summary statistics
135+ - Resource changes formatted as HCL code blocks
136+ - Replacement enforcement attributes (for recreate operations)
137+ - Timestamp and metadata
0 commit comments