# Step 5 -- PowerShell Validation

## Principle

Use PowerShell for orchestration, discovery, and validation---not as a
second desired-state engine.

## Initial Scripts

``` text
scripts/
├── Test-Prerequisites.ps1
├── Deploy-Sentinel.ps1
├── Test-SentinelDeployment.ps1
└── Get-SentinelInventory.ps1
```

### Test-Prerequisites.ps1

Check authentication, context, target RG, modules, required parameters,
and relevant prerequisites.

### Deploy-Sentinel.ps1

A thin wrapper around Bicep validation/what-if/deployment.

### Test-SentinelDeployment.ps1

Verify workspace, Sentinel onboarding, expected settings, and expected
resources.

### Get-SentinelInventory.ps1

Start small; later this can feed snapshot/drift tooling.

## Modules

`Az.Accounts`, `Az.Resources`, `Az.OperationalInsights`,
`Az.SecurityInsights`, `Az.Monitor`.
