restore-and-recover
Pass
Audited by Gen Agent Trust Hub on Nov 18, 2026
Risk Level: SAFE
Full Analysis
- Secure Credential Handling: The skill explicitly instructs the user to use environment variables ($SQLPACKAGE_PASSWORD and SQLCMDPASSWORD) for database authentication rather than passing passwords directly in command-line arguments. This is a standard security practice to prevent secrets from appearing in process lists or shell history.\n- Control Plane Operations: The instructions leverage official Azure CLI (az sql) commands for database restoration and renaming. These operations are managed through the Azure Resource Manager (ARM), which utilizes built-in Identity and Access Management (IAM) for authorization.\n- Data Export Functionality: The skill includes guidance on using sqlpackage to export database data to .bacpac files. While this involves data movement, it is presented as a legitimate step for cross-subscription recovery and is performed using standard tooling.\n- Technical Guardrails: The skill provides a 'Do not' section and detailed T-SQL error references to prevent the agent from attempting unsupported or potentially destructive operations, such as attempting to overwrite existing databases via T-SQL during a restore.
Audit Metadata