From b92f2c81e32b06eef2587a79d76065be93d3cb50 Mon Sep 17 00:00:00 2001 From: ZelinWang Date: Tue, 18 Nov 2025 10:08:18 +0800 Subject: [PATCH 1/4] [What-If] Add GitHub issue template for What-If feature --- .github/ISSUE_TEMPLATE/what_if.yml | 80 ++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/what_if.yml diff --git a/.github/ISSUE_TEMPLATE/what_if.yml b/.github/ISSUE_TEMPLATE/what_if.yml new file mode 100644 index 00000000000..140552f7b65 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/what_if.yml @@ -0,0 +1,80 @@ +name: "What-If Feature Issue" +description: Report issues or request enhancements for Azure CLI What-If feature +labels: ["what-if"] +body: + - type: markdown + id: intro + attributes: + value: | + Thank you for reporting a What-If feature issue! Please provide as much detail as possible. + + - type: dropdown + id: issue-type + attributes: + label: Issue Type + description: What type of issue are you reporting? + options: + - Bug Report + - Feature Request + - Documentation Issue + validations: + required: true + + - type: textarea + id: description + attributes: + label: Description + description: Provide a clear description of the issue or feature request + placeholder: Describe what happened or what you'd like to see + validations: + required: true + + - type: textarea + id: command + attributes: + label: Command or Script + description: Provide the command or script that demonstrates the issue + placeholder: | + az vm create --what-if --export-bicep ... + render: shell + validations: + required: true + + - type: textarea + id: expected + attributes: + label: Expected Behavior + description: What did you expect to happen? + placeholder: Describe the expected outcome + validations: + required: true + + - type: textarea + id: actual + attributes: + label: Actual Behavior + description: What actually happened? + placeholder: Describe what actually occurred + validations: + required: true + + - type: textarea + id: environment + attributes: + label: Environment + description: Provide environment details + placeholder: | + - OS: Windows 11 / Ubuntu 22.04 / macOS 14 + - Tool Version: Azure CLI 2.80.0 + - Python Version: 3.12.10 + validations: + required: true + + - type: textarea + id: additional + attributes: + label: Additional Context + description: Add any other context, screenshots, or logs + placeholder: Any additional information that might be helpful + validations: + required: false \ No newline at end of file From ea4e1123e433fcecc95b0ac3e4492d50a80dfcb5 Mon Sep 17 00:00:00 2001 From: ZelinWang Date: Tue, 18 Nov 2025 10:17:25 +0800 Subject: [PATCH 2/4] minor fix --- .github/ISSUE_TEMPLATE/what_if.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/what_if.yml b/.github/ISSUE_TEMPLATE/what_if.yml index 140552f7b65..2a11ed05dac 100644 --- a/.github/ISSUE_TEMPLATE/what_if.yml +++ b/.github/ISSUE_TEMPLATE/what_if.yml @@ -35,7 +35,8 @@ body: label: Command or Script description: Provide the command or script that demonstrates the issue placeholder: | - az vm create --what-if --export-bicep ... + - az vm create --what-if --export-bicep + - N/A if not applicable render: shell validations: required: true @@ -45,7 +46,9 @@ body: attributes: label: Expected Behavior description: What did you expect to happen? - placeholder: Describe the expected outcome + placeholder: | + - Describe the expected outcome + - N/A if not applicable validations: required: true @@ -54,7 +57,9 @@ body: attributes: label: Actual Behavior description: What actually happened? - placeholder: Describe what actually occurred + placeholder: | + - Describe what actually occurred + - N/A if not applicable validations: required: true @@ -67,6 +72,7 @@ body: - OS: Windows 11 / Ubuntu 22.04 / macOS 14 - Tool Version: Azure CLI 2.80.0 - Python Version: 3.12.10 + - N/A if not applicable validations: required: true From f488e3035c82cf30cad28b95ccfc32f60270000c Mon Sep 17 00:00:00 2001 From: ZelinWang Date: Tue, 18 Nov 2025 10:18:12 +0800 Subject: [PATCH 3/4] minor fix --- .github/ISSUE_TEMPLATE/what_if.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/what_if.yml b/.github/ISSUE_TEMPLATE/what_if.yml index 2a11ed05dac..9571a521743 100644 --- a/.github/ISSUE_TEMPLATE/what_if.yml +++ b/.github/ISSUE_TEMPLATE/what_if.yml @@ -7,7 +7,7 @@ body: attributes: value: | Thank you for reporting a What-If feature issue! Please provide as much detail as possible. - + - type: dropdown id: issue-type attributes: From ab39b02fb1fb04b2e78191bf729db625f0e908cf Mon Sep 17 00:00:00 2001 From: ZelinWang Date: Wed, 19 Nov 2025 10:11:54 +0800 Subject: [PATCH 4/4] Apply suggestions from code review Co-authored-by: Damien Caro --- .github/ISSUE_TEMPLATE/what_if.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/what_if.yml b/.github/ISSUE_TEMPLATE/what_if.yml index 9571a521743..b59ef87e61e 100644 --- a/.github/ISSUE_TEMPLATE/what_if.yml +++ b/.github/ISSUE_TEMPLATE/what_if.yml @@ -6,7 +6,7 @@ body: id: intro attributes: value: | - Thank you for reporting a What-If feature issue! Please provide as much detail as possible. + Thank you for reporting an issue related to preview of changes (--what-if) or export to Bicep (--export-bicep) with az cli! Please provide as much detail as possible. - type: dropdown id: issue-type @@ -33,7 +33,7 @@ body: id: command attributes: label: Command or Script - description: Provide the command or script that demonstrates the issue + description: Provide the command or script that helps reproducing or demonstrate the issue placeholder: | - az vm create --what-if --export-bicep - N/A if not applicable