Identify for what you need a flowchart.
Example:
If the catalog has a Machine Profile, then update the master image with Trusted Launch enabled Master Image and generate a warning if the machine profile is not enabled with Trusted Launch. If the catalog doesn't have a machine profile, then use Set-ProvScheme PowerShell command to update the machine catalog with machine profile enabled with Trusted Launch and also update the master image with Trusted Launch enabled Master Image.
1. Feed this text into an AI tool.
2. Ask it to generate a Mermaid Code with decision boxes and start and stop.
The tool will give you something like this:
flowchart TD
Start([Start])
A{Does the catalog have a Machine Profile?}
B{Is the machine profile enabled with Trusted Launch?}
C[Update the master image with Trusted Launch enabled Master Image]
D[Generate a warning]
E[Use Set-ProvScheme PowerShell command to update the machine catalog with machine profile enabled with Trusted Launch]
F[Update the master image with Trusted Launch enabled Master Image]
End([End])Start --> A
A -->|Yes| B
A -->|No| E
B -->|Yes| C
B -->|No| D
C --> End
D --> End
E --> F
F --> End
3. Copy this Mermaid copy.
4. Open Draw.io, and open a blank doc.
5. From the menu, click + (Insert) > Advanced > Mermaid.

6. Clear the sample code and paste the copied mermaid code.
7. Get the flowchart. You can now, adjust the arrows, change the color, and more.
Output:
