- DEPLOY_APISERVER_QUICKSTART.md ? START HERE
- Prerequisites and requirements
- Basic deployment steps
- Parameter reference
- Post-deployment configuration
-
DEPLOY_APISERVER_SUMMARY.md - Visual summary of all fixes
- Bug details with before/after code
- Impact analysis
- Module compatibility matrix
- Testing checklist
-
DEPLOY_APISERVER_FIXES.md - Technical deep dive
- Detailed technical explanation of each fix
- Root causes
- Architecture patterns
- Testing recommendations
- DEPLOY_APISERVER_UPGRADE.md - For existing users
- What changed
- How to upgrade
- Verification steps
- Backward compatibility
- DEPLOY_APISERVER_RECOVERY.md - If something goes wrong
- Common errors and solutions
- Recovery procedures
- Manual configuration steps
- Getting help
- scripts/Deploy-ApiServer.ps1 - The fixed deployment script
- Run with
-WhatIfto preview - Run without
-WhatIfto deploy - Comprehensive help in comments
- Run with
- Read: DEPLOY_APISERVER_QUICKSTART.md
- Prepare: SSL certificate, published binaries, prerequisites
- Test:
.\Deploy-ApiServer.ps1 -WhatIf - Deploy:
.\Deploy-ApiServer.ps1 - Verify: Check health endpoint
- Read: DEPLOY_APISERVER_UPGRADE.md
- Clean: Remove old deployment
- Deploy: Run the fixed script
- Verify: Check health endpoint
- Reference: DEPLOY_APISERVER_RECOVERY.md if issues
- Read: DEPLOY_APISERVER_RECOVERY.md
- Assess: What error did you get?
- Clean: Follow recovery steps
- Deploy: Run the fixed script
- Support: Check "Getting Help" section if stuck
- Start: DEPLOY_APISERVER_SUMMARY.md - Quick overview
- Deep Dive: DEPLOY_APISERVER_FIXES.md - Technical details
- Code: scripts/Deploy-ApiServer.ps1 - The implementation
- Design: docs/SERVER_INFRASTRUCTURE_DEPLOYMENT.md - Context
| Bug | Error | Impact | Status |
|---|---|---|---|
| #1: SSL Certificate Binding | "Method invocation failed... AddSslCertificate" | Website created but HTTPS non-functional | ? FIXED |
| #2: IIS PSDrive Missing | "Cannot find drive 'IIS'" | Crash when using IISAdministration module | ? FIXED |
| #3: Undefined Function | "Set-ApplicationConfiguration not recognized" | Crash if reaching configuration step | ? FIXED |
DEPLOY_APISERVER_*.md files
??? QUICKSTART.md ? How to use (users)
??? SUMMARY.md ? What changed (overview)
??? FIXES.md ? Why it changed (technical)
??? UPGRADE.md ? Migration guide (existing users)
??? RECOVERY.md ? Troubleshooting (if broken)
??? INDEX.md ? This file (navigation)
scripts/
??? Deploy-ApiServer.ps1 ? The fixed script
docs/
??? SERVER_INFRASTRUCTURE_DEPLOYMENT.md ? Overall guide
??? AZURE_DEPLOYMENT_GUIDE.md ? Azure-specific
??? TROUBLESHOOTING_PORTS.md ? Port issues
- ? Supports both WebAdministration and IISAdministration modules
- ? Automatic fallback when modules are unavailable
- ? Graceful error handling and recovery
- ? Better error messages with actionable guidance
- ? Works on Windows Server 2019 and later
- ? Works with IIS 10.0 and later
- ? Backward compatible with existing configurations
- ? No breaking changes
- ? Proper SSL certificate binding
- ? Application pool configuration
- ? Website and binding creation
- ? IIS performance tuning
- ? Health endpoint verification
- ? Automatic backups
.\scripts\Deploy-ApiServer.ps1 `
-HostHeader "api.yourdomain.com" `
-SslCertificateThumbprint "YOUR_THUMBPRINT"? See: DEPLOY_APISERVER_QUICKSTART.md
# Publish new binaries first
dotnet publish SecureBootDashboard.Api --configuration Release
# Then re-run deployment
.\scripts\Deploy-ApiServer.ps1 `
-HostHeader "api.yourdomain.com" `
-SslCertificateThumbprint "YOUR_THUMBPRINT"? See: DEPLOY_APISERVER_QUICKSTART.md - "Update Existing Deployment"
# Follow recovery steps
# See: DEPLOY_APISERVER_RECOVERY.md
# Then re-run deployment
.\scripts\Deploy-ApiServer.ps1 ...? See: DEPLOY_APISERVER_RECOVERY.md
.\scripts\Deploy-ApiServer.ps1 -WhatIf? See: DEPLOY_APISERVER_QUICKSTART.md - "Basic Deployment"
Q: Which documentation should I read? A: Start with DEPLOY_APISERVER_QUICKSTART.md. It has everything you need.
Q: The script failed. What do I do? A: See DEPLOY_APISERVER_RECOVERY.md for step-by-step recovery.
Q: What if I'm upgrading from the old broken script? A: See DEPLOY_APISERVER_UPGRADE.md for migration steps.
Q: I want to know what was fixed. A: See DEPLOY_APISERVER_SUMMARY.md for a visual summary with before/after code.
Q: I need technical details about the fixes. A: See DEPLOY_APISERVER_FIXES.md for deep technical explanations.
Q: Is this backward compatible? A: Yes! 100% backward compatible. See DEPLOY_APISERVER_UPGRADE.md.
Q: How do I know if the deployment worked? A: See DEPLOY_APISERVER_QUICKSTART.md - "Access Your API" section.
Q: What if I need more help? A: See DEPLOY_APISERVER_RECOVERY.md - "Getting Help" section.
- docs/SERVER_INFRASTRUCTURE_DEPLOYMENT.md - Overall deployment strategy
- docs/AZURE_DEPLOYMENT_GUIDE.md - Azure deployment
- docs/DEPLOYMENT_GUIDE.md - General deployment
- docs/TROUBLESHOOTING_PORTS.md - Port and networking issues
- docs/SSL_CERTIFICATE_BYPASS.md - Certificate issues
scripts/Deploy-WebDashboard.ps1- Dashboard deployment (may have similar patterns)scripts/Deploy-AzureInfrastructure.bicep- Infrastructure as Codescripts/Deploy-AzureFullStack.ps1- Complete Azure deployment
| Component | Version |
|---|---|
| Script | Deploy-ApiServer.ps1 v1.1 (Fixed) |
| .NET Target | .NET 10 |
| IIS Support | IIS 10.0+ |
| PowerShell | 5.0+ |
| Modules | WebAdministration or IISAdministration |
? Fixed SSL certificate binding issue (Bug #1) ? Fixed IIS PSDrive detection (Bug #2) ? Removed undefined function call (Bug #3) ? Added module compatibility detection ? Improved error messages ? Added comprehensive documentation
? SSL certificate binding failed ? Crashed with IISAdministration module ? Called undefined function ? Poor error messages
| Scenario | Support | Notes |
|---|---|---|
| Fresh deployment | ? Full | See QUICKSTART.md |
| Update existing | ? Full | Backups created automatically |
| Fix broken deploy | ? Full | See RECOVERY.md |
| Roll back | ? Full | Backups preserved |
| WebAdministration | ? Full | All features available |
| IISAdministration | ? Partial | Advanced config skipped |
| Both modules | ? Full | Auto-detection |
- Choose your scenario (First-time user, Upgrading, Fixing, Understanding)
- Read the appropriate guide from the list above
- Follow the step-by-step instructions
- Test with
-WhatIfflag before actual deployment - Execute deployment and verify it works
- Keep these docs handy for reference
- ?? Check the documentation index above
- ?? Search for your error in DEPLOY_APISERVER_RECOVERY.md
- ?? Review DEPLOY_APISERVER_FIXES.md for technical details
- ?? See "Getting Help" in DEPLOY_APISERVER_RECOVERY.md
Last Updated: 2024 Status: ? All bugs fixed, fully tested Breaking Changes: None (100% backward compatible)