sql-backup-restore-to-azure-sql-vm-migration
Pass
Audited by Gen Agent Trust Hub on Nov 18, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [Command Execution]: The skill uses PowerShell to run
sqlcmd,az, andazcopyfor database discovery, backup, and restore. These operations are core to the migration workflow and use established administrative tools. - [Input Sanitization]: To protect against path traversal and command injection, the skill generates deterministic filenames from database names and uses T-SQL variable substitution and string escaping, such as replacing brackets and quotes in identifiers.
- [Secure Identity Management]: The workflow is designed to avoid hardcoded credentials and SQL passwords. It relies on the operator's Microsoft Entra identity and the target server's Managed Identity for storage access, implementing the principle of least privilege.
- [Dynamic SQL Construction]: T-SQL scripts are generated at runtime to accommodate variable database and server names. The skill implements safety checks, such as verifying that artifact names remain within their intended directories and providing a sanitized execution plan for user approval before action.
Audit Metadata