# microsoft/dynamics365patternspractices architecture

> Architecture diagram of the GitHub repository microsoft/dynamics365patternspractices, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/microsoft/dynamics365patternspractices
- Repository: https://github.com/microsoft/dynamics365patternspractices

## Overview

This repository publishes Dynamics 365 patterns, business-process guidance, reference architectures, workshops, and reusable implementation templates. A prominent executable workflow is the Azure DevOps setup wizard: it validates configuration and runs selected setup phases; a separate catalog importer reads process files, transforms them into work-item drafts, and creates Azure DevOps work items. The graph includes the documented content branches as well as the setup and import tools. Some content relationships are documented only at repository level; unsampled implementation links are omitted.

Main entry points: [`templates/Azure-DevOps-templates/July/setup_wizard.py`](https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/setup_wizard.py) (Setup Wizard), [`README.md`](https://github.com/microsoft/dynamics365patternspractices/blob/main/README.md) (Dynamics 365 Guidance), [`templates/Azure-DevOps-templates/July/ado_setup_config.py`](https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/ado_setup_config.py) (Setup Configuration), [`templates/Azure-DevOps-templates/July/bpc_ado_import/cli.py`](https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/bpc_ado_import/cli.py) (Import Workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guidance["Guidance Content"]
  node_guidance_repo["Dynamics 365 Guidance<br/>[README.md]"]
  node_business_processes["Business Process Guides"]
  node_reference_architectures["Reference Architectures"]
  node_process_workshops["Process Workshops"]
  node_process_graphics["Process Graphics"]
  node_business_templates["Process Templates"]
  node_project_templates["Project Templates"]
end

subgraph group_ado_setup["ADO Setup"]
  node_ado_templates["ADO Templates"]
  node_setup_wizard["Setup Wizard<br/>[setup_wizard.py]"]
  node_setup_config["Setup Configuration"]
  node_setup_validation["Setup Validation"]
  node_work_item_setup["Work Item Setup"]
  node_layout_setup["Page Layout Setup"]
  node_team_setup["Teams and Areas"]
  node_backlog_setup["Backlog Setup"]
end

subgraph group_catalog_import["Catalog Import"]
  node_catalog_sources["Catalog Source Reader<br/>[sources.py]"]
  node_catalog_mapping["Template Mapping<br/>[mapping.py]"]
  node_catalog_transform["Draft Transformation<br/>[transform.py]"]
  node_catalog_cli["Import Workflow<br/>[cli.py]"]
  node_ado_client["ADO Work Item Client<br/>[ado.py]"]
  node_catalog_report["Import Report"]
  node_catalog_entry["Catalog Import Entry"]
end

node_contributor(("Contributor"))
node_ado_user(("ADO Administrator"))
node_ado_service["Azure DevOps"]
node_catalog_user(("Catalog Administrator"))

node_contributor -->|"contributes to"| node_guidance_repo
node_guidance_repo -->|"provides guides"| node_business_processes
node_guidance_repo -->|"provides patterns"| node_reference_architectures
node_guidance_repo -->|"provides guidance"| node_process_workshops
node_guidance_repo -->|"provides guidance"| node_process_graphics
node_guidance_repo -->|"provides templates"| node_business_templates
node_guidance_repo -->|"provides templates"| node_project_templates
node_ado_user -->|"starts setup"| node_setup_wizard
node_setup_wizard -->|"loads configuration"| node_setup_config
node_setup_wizard -->|"validates setup"| node_setup_validation
node_setup_wizard -->|"runs phase"| node_work_item_setup
node_setup_wizard -->|"runs phase"| node_layout_setup
node_setup_wizard -->|"runs phase"| node_team_setup
node_setup_wizard -->|"runs phase"| node_backlog_setup
node_setup_validation -->|"uses configuration"| node_setup_config
node_work_item_setup -->|"uses configuration"| node_setup_config
node_layout_setup -->|"uses configuration"| node_setup_config
node_team_setup -->|"uses configuration"| node_setup_config
node_backlog_setup -->|"uses configuration"| node_setup_config
node_setup_wizard -->|"validates access"| node_ado_service
node_work_item_setup -->|"configures process"| node_ado_service
node_layout_setup -->|"updates layouts"| node_ado_service
node_team_setup -->|"creates teams"| node_ado_service
node_catalog_user -->|"starts import"| node_catalog_entry
node_catalog_entry -->|"invokes importer"| node_catalog_cli
node_catalog_cli -->|"reads sources"| node_catalog_sources
node_catalog_cli -->|"loads mapping"| node_catalog_mapping
node_catalog_cli -->|"transforms drafts"| node_catalog_transform
node_catalog_cli -->|"creates work items"| node_ado_client
node_catalog_transform -->|"resolves fields"| node_catalog_mapping
node_ado_client -->|"writes work items"| node_ado_service

click node_guidance_repo "https://github.com/microsoft/dynamics365patternspractices/blob/main/README.md"
click node_business_processes "https://github.com/microsoft/dynamics365patternspractices/tree/main/business-process-catalog"
click node_reference_architectures "https://github.com/microsoft/dynamics365patternspractices/tree/main/architectures"
click node_process_workshops "https://github.com/microsoft/dynamics365patternspractices/tree/main/workshops"
click node_process_graphics "https://github.com/microsoft/dynamics365patternspractices/tree/main/graphics"
click node_business_templates "https://github.com/microsoft/dynamics365patternspractices/tree/main/templates/business-processes"
click node_project_templates "https://github.com/microsoft/dynamics365patternspractices/tree/main/templates/implementation-projects"
click node_ado_templates "https://github.com/microsoft/dynamics365patternspractices/tree/main/templates/Azure-DevOps-templates"
click node_setup_wizard "https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/setup_wizard.py"
click node_setup_config "https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/ado_setup_config.py"
click node_setup_validation "https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/ado_setup_validation.py"
click node_work_item_setup "https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/1_ADO_Creation_Script.py"
click node_layout_setup "https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/2_ADO_Page_Layout_Script_Threaded.py"
click node_team_setup "https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/3_ADO_Teams_Areas_Script.py"
click node_backlog_setup "https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/4_ADO_Backlog_Config_Script.py"
click node_catalog_sources "https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/bpc_ado_import/sources.py"
click node_catalog_mapping "https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/bpc_ado_import/mapping.py"
click node_catalog_transform "https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/bpc_ado_import/transform.py"
click node_catalog_cli "https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/bpc_ado_import/cli.py"
click node_ado_client "https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/bpc_ado_import/ado.py"
click node_catalog_report "https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/6_Generate_HTML_Report.py"
click node_catalog_entry "https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/5_BPC_Catalog_Import.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_guidance_repo,node_business_processes,node_reference_architectures,node_process_workshops,node_process_graphics,node_business_templates,node_project_templates toneBlue
class node_ado_templates,node_setup_wizard,node_setup_config,node_setup_validation,node_work_item_setup,node_layout_setup,node_team_setup,node_backlog_setup toneAmber
class node_catalog_sources,node_catalog_mapping,node_catalog_transform,node_catalog_cli,node_ado_client,node_catalog_report,node_catalog_entry toneMint
class node_contributor,node_ado_user,node_ado_service,node_catalog_user toneIndigo
```

## Components

### Guidance Content

- [Dynamics 365 Guidance](https://github.com/microsoft/dynamics365patternspractices/blob/main/README.md): `README.md`
- [Business Process Guides](https://github.com/microsoft/dynamics365patternspractices/tree/main/business-process-catalog): `business-process-catalog`
- [Reference Architectures](https://github.com/microsoft/dynamics365patternspractices/tree/main/architectures): `architectures`
- [Process Workshops](https://github.com/microsoft/dynamics365patternspractices/tree/main/workshops): `workshops`
- [Process Graphics](https://github.com/microsoft/dynamics365patternspractices/tree/main/graphics): `graphics`
- [Process Templates](https://github.com/microsoft/dynamics365patternspractices/tree/main/templates/business-processes): `templates/business-processes`
- [Project Templates](https://github.com/microsoft/dynamics365patternspractices/tree/main/templates/implementation-projects): `templates/implementation-projects`

### ADO Setup

- [ADO Templates](https://github.com/microsoft/dynamics365patternspractices/tree/main/templates/Azure-DevOps-templates): `templates/Azure-DevOps-templates`
- [Setup Wizard](https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/setup_wizard.py): `templates/Azure-DevOps-templates/July/setup_wizard.py`
- [Setup Configuration](https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/ado_setup_config.py): `templates/Azure-DevOps-templates/July/ado_setup_config.py`
- [Setup Validation](https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/ado_setup_validation.py): `templates/Azure-DevOps-templates/July/ado_setup_validation.py`
- [Work Item Setup](https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/1_ADO_Creation_Script.py): `templates/Azure-DevOps-templates/July/1_ADO_Creation_Script.py`
- [Page Layout Setup](https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/2_ADO_Page_Layout_Script_Threaded.py): `templates/Azure-DevOps-templates/July/2_ADO_Page_Layout_Script_Threaded.py`
- [Teams and Areas](https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/3_ADO_Teams_Areas_Script.py): `templates/Azure-DevOps-templates/July/3_ADO_Teams_Areas_Script.py`
- [Backlog Setup](https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/4_ADO_Backlog_Config_Script.py): `templates/Azure-DevOps-templates/July/4_ADO_Backlog_Config_Script.py`

### Catalog Import

- [Catalog Source Reader](https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/bpc_ado_import/sources.py): `templates/Azure-DevOps-templates/July/bpc_ado_import/sources.py`
- [Template Mapping](https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/bpc_ado_import/mapping.py): `templates/Azure-DevOps-templates/July/bpc_ado_import/mapping.py`
- [Draft Transformation](https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/bpc_ado_import/transform.py): `templates/Azure-DevOps-templates/July/bpc_ado_import/transform.py`
- [Import Workflow](https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/bpc_ado_import/cli.py): `templates/Azure-DevOps-templates/July/bpc_ado_import/cli.py`
- [ADO Work Item Client](https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/bpc_ado_import/ado.py): `templates/Azure-DevOps-templates/July/bpc_ado_import/ado.py`
- [Import Report](https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/6_Generate_HTML_Report.py): `templates/Azure-DevOps-templates/July/6_Generate_HTML_Report.py`
- [Catalog Import Entry](https://github.com/microsoft/dynamics365patternspractices/blob/main/templates/Azure-DevOps-templates/July/5_BPC_Catalog_Import.py): `templates/Azure-DevOps-templates/July/5_BPC_Catalog_Import.py`

### Other components

- **Contributor**
- **ADO Administrator**
- **Azure DevOps**
- **Catalog Administrator**

## Connections

- Contributor → Dynamics 365 Guidance: contributes to (evidence: `README.md`)
- Dynamics 365 Guidance → Business Process Guides: provides guides (evidence: `README.md`)
- Dynamics 365 Guidance → Reference Architectures: provides patterns (evidence: `README.md`)
- Dynamics 365 Guidance → Process Workshops: provides guidance (evidence: `README.md`)
- Dynamics 365 Guidance → Process Graphics: provides guidance (evidence: `README.md`)
- Dynamics 365 Guidance → Process Templates: provides templates (evidence: `README.md`)
- Dynamics 365 Guidance → Project Templates: provides templates (evidence: `README.md`)
- ADO Administrator → Setup Wizard: starts setup (evidence: `templates/Azure-DevOps-templates/July/setup_wizard.py`)
- Setup Wizard → Setup Configuration: loads configuration (evidence: `templates/Azure-DevOps-templates/July/setup_wizard.py`)
- Setup Wizard → Setup Validation: validates setup (evidence: `templates/Azure-DevOps-templates/July/setup_wizard.py`)
- Setup Wizard → Work Item Setup: runs phase (evidence: `templates/Azure-DevOps-templates/July/setup_wizard.py`)
- Setup Wizard → Page Layout Setup: runs phase (evidence: `templates/Azure-DevOps-templates/July/setup_wizard.py`)
- Setup Wizard → Teams and Areas: runs phase (evidence: `templates/Azure-DevOps-templates/July/setup_wizard.py`)
- Setup Wizard → Backlog Setup: runs phase (evidence: `templates/Azure-DevOps-templates/July/setup_wizard.py`)
- Setup Validation → Setup Configuration: uses configuration (evidence: `templates/Azure-DevOps-templates/July/ado_setup_validation.py`)
- Work Item Setup → Setup Configuration: uses configuration (evidence: `templates/Azure-DevOps-templates/July/1_ADO_Creation_Script.py`)
- Page Layout Setup → Setup Configuration: uses configuration (evidence: `templates/Azure-DevOps-templates/July/2_ADO_Page_Layout_Script_Threaded.py`)
- Teams and Areas → Setup Configuration: uses configuration (evidence: `templates/Azure-DevOps-templates/July/3_ADO_Teams_Areas_Script.py`)
- Backlog Setup → Setup Configuration: uses configuration (evidence: `templates/Azure-DevOps-templates/July/4_ADO_Backlog_Config_Script.py`)
- Setup Wizard → Azure DevOps: validates access (evidence: `templates/Azure-DevOps-templates/July/setup_wizard.py`)
- Work Item Setup → Azure DevOps: configures process (evidence: `templates/Azure-DevOps-templates/July/1_ADO_Creation_Script.py`)
- Page Layout Setup → Azure DevOps: updates layouts (evidence: `templates/Azure-DevOps-templates/July/2_ADO_Page_Layout_Script_Threaded.py`)
- Teams and Areas → Azure DevOps: creates teams (evidence: `templates/Azure-DevOps-templates/July/3_ADO_Teams_Areas_Script.py`)
- Catalog Administrator → Catalog Import Entry: starts import (evidence: `templates/Azure-DevOps-templates/July/5_BPC_Catalog_Import.py`)
- Catalog Import Entry → Import Workflow: invokes importer (evidence: `templates/Azure-DevOps-templates/July/5_BPC_Catalog_Import.py`)
- Import Workflow → Catalog Source Reader: reads sources (evidence: `templates/Azure-DevOps-templates/July/bpc_ado_import/cli.py`)
- Import Workflow → Template Mapping: loads mapping (evidence: `templates/Azure-DevOps-templates/July/bpc_ado_import/cli.py`)
- Import Workflow → Draft Transformation: transforms drafts (evidence: `templates/Azure-DevOps-templates/July/bpc_ado_import/cli.py`)
- Import Workflow → ADO Work Item Client: creates work items (evidence: `templates/Azure-DevOps-templates/July/bpc_ado_import/cli.py`)
- Draft Transformation → Template Mapping: resolves fields (evidence: `templates/Azure-DevOps-templates/July/bpc_ado_import/transform.py`)
- ADO Work Item Client → Azure DevOps: writes work items (evidence: `templates/Azure-DevOps-templates/July/bpc_ado_import/ado.py`)
