# d365collaborative/d365fo.tools architecture

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

- Interactive diagram: https://gitdiagram.com/d365collaborative/d365fo.tools
- Repository: https://github.com/d365collaborative/d365fo.tools

## Overview

d365fo.tools is a PowerShell module offering cmdlets for managing Microsoft Dynamics 365 Finance & Operations. The typical workflow is an operator invokes a module command, which performs a management task against a development environment or related service. The tree shows distinct areas for environment operations, data, deployment, identity, storage, and diagnostics. Source excerpts are limited to an empty C# class, so internal call paths and most external integrations cannot be verified; dashed links indicate unverified capability relationships rather than inspected control flow.

Main entry points: [`d365fo.tools/d365fo.tools.psm1`](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/d365fo.tools.psm1) (d365fo.tools module), [`d365fo.tools/functions/start-d365environment.ps1`](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/start-d365environment.ps1) (Environment operations), [`d365fo.tools/functions/get-d365environmentsettings.ps1`](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/get-d365environmentsettings.ps1) (Environment configuration), [`d365fo.tools/functions/enable-d365maintenancemode.ps1`](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/enable-d365maintenancemode.ps1) (Maintenance and services)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_module["Module interface"]
  node_module["d365fo.tools module<br/>[d365fo.tools.psm1]"]
end

subgraph group_environment["Environment management"]
  node_environment_ops["Environment operations"]
  node_environment_config["Environment configuration"]
  node_service_control["Maintenance and services"]
end

subgraph group_data["Data and metadata"]
  node_database["Database operations<br/>[new-d365bacpac.ps1]"]
  node_metadata["Models and metadata<br/>[get-d365model.ps1]"]
  node_sql["SQL operations"]
end

subgraph group_cloud["Cloud and deployment"]
  node_lcs["LCS management"]
  node_storage["Azure storage"]
  node_build["Build and compile"]
end

subgraph group_identity["Identity and security"]
  node_users["User management"]
  node_security["Security controls"]
end

subgraph group_diagnostics["Diagnostics and reporting"]
  node_monitoring["Monitoring and traces"]
  node_reports["Reports and analysis"]
end

node_operator(("PowerShell operator"))

node_operator -->|"invokes commands"| node_module
node_module -.->|"exposes commands"| node_environment_ops
node_module -.->|"exposes commands"| node_environment_config
node_module -.->|"exposes commands"| node_service_control
node_module -.->|"exposes commands"| node_database
node_module -.->|"exposes commands"| node_metadata
node_module -.->|"exposes commands"| node_sql
node_module -.->|"exposes commands"| node_lcs
node_module -.->|"exposes commands"| node_storage
node_module -.->|"exposes commands"| node_build
node_module -.->|"exposes commands"| node_users
node_module -.->|"exposes commands"| node_security
node_module -.->|"exposes commands"| node_monitoring
node_module -.->|"exposes commands"| node_reports

click node_module "https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/d365fo.tools.psm1"
click node_environment_ops "https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/start-d365environment.ps1"
click node_environment_config "https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/get-d365environmentsettings.ps1"
click node_service_control "https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/enable-d365maintenancemode.ps1"
click node_database "https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/new-d365bacpac.ps1"
click node_metadata "https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/get-d365model.ps1"
click node_sql "https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/invoke-d365sqlscript.ps1"
click node_lcs "https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/invoke-d365lcsdeployment.ps1"
click node_storage "https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/invoke-d365azurestorageupload.ps1"
click node_build "https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/invoke-d365modulebuild.ps1"
click node_users "https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/import-d365aaduser.ps1"
click node_security "https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/set-d365sysadmin.ps1"
click node_monitoring "https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/start-d365eventtrace.ps1"
click node_reports "https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/invoke-d365generatereports.ps1"

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_module toneBlue
class node_environment_ops,node_environment_config,node_service_control toneAmber
class node_database,node_metadata,node_sql toneMint
class node_lcs,node_storage,node_build toneRose
class node_users,node_security,node_operator toneIndigo
class node_monitoring,node_reports toneTeal
```

## Components

### Module interface

- [d365fo.tools module](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/d365fo.tools.psm1): `d365fo.tools/d365fo.tools.psm1`

### Environment management

- [Environment operations](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/start-d365environment.ps1): `d365fo.tools/functions/start-d365environment.ps1`
- [Environment configuration](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/get-d365environmentsettings.ps1): `d365fo.tools/functions/get-d365environmentsettings.ps1`
- [Maintenance and services](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/enable-d365maintenancemode.ps1): `d365fo.tools/functions/enable-d365maintenancemode.ps1`

### Data and metadata

- [Database operations](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/new-d365bacpac.ps1): `d365fo.tools/functions/new-d365bacpac.ps1`
- [Models and metadata](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/get-d365model.ps1): `d365fo.tools/functions/get-d365model.ps1`
- [SQL operations](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/invoke-d365sqlscript.ps1): `d365fo.tools/functions/invoke-d365sqlscript.ps1`

### Cloud and deployment

- [LCS management](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/invoke-d365lcsdeployment.ps1): `d365fo.tools/functions/invoke-d365lcsdeployment.ps1`
- [Azure storage](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/invoke-d365azurestorageupload.ps1): `d365fo.tools/functions/invoke-d365azurestorageupload.ps1`
- [Build and compile](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/invoke-d365modulebuild.ps1): `d365fo.tools/functions/invoke-d365modulebuild.ps1`

### Identity and security

- [User management](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/import-d365aaduser.ps1): `d365fo.tools/functions/import-d365aaduser.ps1`
- [Security controls](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/set-d365sysadmin.ps1): `d365fo.tools/functions/set-d365sysadmin.ps1`

### Diagnostics and reporting

- [Monitoring and traces](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/start-d365eventtrace.ps1): `d365fo.tools/functions/start-d365eventtrace.ps1`
- [Reports and analysis](https://github.com/d365collaborative/d365fo.tools/blob/master/d365fo.tools/functions/invoke-d365generatereports.ps1): `d365fo.tools/functions/invoke-d365generatereports.ps1`

### Other components

- **PowerShell operator**

## Connections

- PowerShell operator → d365fo.tools module: invokes commands (evidence: `README.md`)
- d365fo.tools module → Environment operations: exposes commands
- d365fo.tools module → Environment configuration: exposes commands
- d365fo.tools module → Maintenance and services: exposes commands
- d365fo.tools module → Database operations: exposes commands
- d365fo.tools module → Models and metadata: exposes commands
- d365fo.tools module → SQL operations: exposes commands
- d365fo.tools module → LCS management: exposes commands
- d365fo.tools module → Azure storage: exposes commands
- d365fo.tools module → Build and compile: exposes commands
- d365fo.tools module → User management: exposes commands
- d365fo.tools module → Security controls: exposes commands
- d365fo.tools module → Monitoring and traces: exposes commands
- d365fo.tools module → Reports and analysis: exposes commands
