plans/ibr/fleet-component-recovery-plan.json
|
[
{ "description": "Restore VCF Operations using the user-provided restore script (must exit 0 on success and non-zero on failure)", "commandLine": "Invoke-UserScript -ScriptPath $opsRestoreScriptPath", "displayName": "Run User-Provided VCF Operations Restore Script", "condition": [ { "type": "variable", "name": "userProvidedOpsRestoreScript", "operator": "eq", "value": "true" } ], "threadId": "1", "interactive": false, "visible": true }, { "description": "Restore VCF Operations from an Image-Based Backup (manual step)", "commandLine": "Confirm-ManualStep -Message 'Press Enter once VCF Operations has been restored from an image-based backup' -AnswerKey 'vcf-operations-restored'", "displayName": "Confirm Manual Step: VCF Operations has been restored", "condition": [ { "type": "variable", "name": "userProvidedOpsRestoreScript", "operator": "eq", "value": "false" } ], "threadId": "1", "interactive": true, "visible": true }, { "description": "Verify VCF Operations State (manual step)", "commandLine": "Confirm-ManualStep -Message 'Press Enter once VCF Operations state has been verified' -AnswerKey 'vcf-operations-state-verified'", "displayName": "Confirm Manual Step: VCF Operations state has been verified", "condition": [ { "type": "variable", "name": "userProvidedOpsRestoreScript", "operator": "eq", "value": "false" } ], "threadId": "1", "interactive": true, "visible": true }, { "description": "Trust the Offline Depot Certificate on this machine (needed to read the unauthorized offline depot's directory index)", "commandLine": "Add-OfflineDepotTrustedCertificate -offlineDepotFqdn $offlineDepotFqdn -offlineDepotPort $offlineDepotPort", "displayName": "Trust Offline Depot Certificate on Jumpbox", "condition": [ { "type": "variable", "name": "unauthorizedDepot", "operator": "eq", "value": "true" } ], "threadId": "2", "interactive": false, "visible": true }, { "description": "Retrieve a List of Backups for the VCF Management Services (VCFMS)", "commandLine": "Get-BackupsFromSFTPServer -sftpServer $sftpHost -sftpUser $sftpUsername -sftpPassword $sftpPassword -sftpServerBackupPath $sftpDirectory -Type vcfms -extractedSDDCDataFile $extractedSddcDataFile", "displayName": "Retrieve VCFMS Backups", "condition": [ { "type": "variable", "name": "unauthorizedDepot", "operator": "eq", "value": "false" } ], "threadId": "2", "interactive": true, "visible": true }, { "description": "Retrieve a List of Backups for the VCF Management Services (VCFMS)", "commandLine": "Get-BackupsFromSFTPServer -sftpServer $sftpHost -sftpUser $sftpUsername -sftpPassword $sftpPassword -sftpServerBackupPath $sftpDirectory -Type vcfms -extractedSDDCDataFile $extractedSddcDataFile -unauthorizedDepot -offlineDepotFqdn $offlineDepotFqdn -offlineDepotPort $offlineDepotPort", "displayName": "Retrieve VCFMS Backups", "condition": [ { "type": "variable", "name": "unauthorizedDepot", "operator": "eq", "value": "true" } ], "threadId": "2", "interactive": true, "visible": true }, { "description": "Retrieve Backups for Log Management (ops-logs)", "commandLine": "Get-BackupsFromSFTPServer -sftpServer $sftpHost -sftpUser $sftpUsername -sftpPassword $sftpPassword -sftpServerBackupPath $sftpDirectory -Type opsLogs -extractedSDDCDataFile $extractedSddcDataFile", "displayName": "Retrieve Log Management Backups", "condition": [ { "type": "variable", "name": "unauthorizedDepot", "operator": "eq", "value": "false" } ], "threadId": "2", "interactive": true, "visible": true }, { "description": "Retrieve Backups for Log Management (ops-logs)", "commandLine": "Get-BackupsFromSFTPServer -sftpServer $sftpHost -sftpUser $sftpUsername -sftpPassword $sftpPassword -sftpServerBackupPath $sftpDirectory -Type opsLogs -extractedSDDCDataFile $extractedSddcDataFile -unauthorizedDepot -offlineDepotFqdn $offlineDepotFqdn -offlineDepotPort $offlineDepotPort", "displayName": "Retrieve Log Management Backups", "condition": [ { "type": "variable", "name": "unauthorizedDepot", "operator": "eq", "value": "true" } ], "threadId": "2", "interactive": true, "visible": true }, { "description": "Retrieve a List of Backups for the VCF Automation Component", "commandLine": "Get-BackupsFromSFTPServer -sftpServer $sftpHost -sftpUser $sftpUsername -sftpPassword $sftpPassword -sftpServerBackupPath $sftpDirectory -Type vcfa -extractedSDDCDataFile $extractedSddcDataFile", "displayName": "Retrieve VCF Automation Backups", "condition": [ { "type": "variable", "name": "unauthorizedDepot", "operator": "eq", "value": "false" } ], "threadId": "2", "interactive": true, "visible": true }, { "description": "Retrieve a List of Backups for the VCF Automation Component", "commandLine": "Get-BackupsFromSFTPServer -sftpServer $sftpHost -sftpUser $sftpUsername -sftpPassword $sftpPassword -sftpServerBackupPath $sftpDirectory -Type vcfa -extractedSDDCDataFile $extractedSddcDataFile -unauthorizedDepot -offlineDepotFqdn $offlineDepotFqdn -offlineDepotPort $offlineDepotPort", "displayName": "Retrieve VCF Automation Backups", "condition": [ { "type": "variable", "name": "unauthorizedDepot", "operator": "eq", "value": "true" } ], "threadId": "2", "interactive": true, "visible": true }, { "description": "Retrieve Telemetry Component Backup", "commandLine": "Get-BackupsFromSFTPServer -sftpServer $sftpHost -sftpUser $sftpUsername -sftpPassword $sftpPassword -sftpServerBackupPath $sftpDirectory -componentNames telemetry-acceptor -extractedSDDCDataFile $extractedSddcDataFile", "displayName": "Retrieve Telemetry Backups", "condition": [ { "type": "variable", "name": "unauthorizedDepot", "operator": "eq", "value": "false" } ], "threadId": "2", "interactive": true, "visible": true }, { "description": "Retrieve Telemetry Component Backup", "commandLine": "Get-BackupsFromSFTPServer -sftpServer $sftpHost -sftpUser $sftpUsername -sftpPassword $sftpPassword -sftpServerBackupPath $sftpDirectory -componentNames telemetry-acceptor -extractedSDDCDataFile $extractedSddcDataFile -unauthorizedDepot -offlineDepotFqdn $offlineDepotFqdn -offlineDepotPort $offlineDepotPort", "displayName": "Retrieve Telemetry Backups", "condition": [ { "type": "variable", "name": "unauthorizedDepot", "operator": "eq", "value": "true" } ], "threadId": "2", "interactive": true, "visible": true }, { "description": "Repoint SDDC Manager to the Offline Depot", "commandLine": "Set-SDDCManagerOfflineDepot -extractedSDDCDataFile $extractedSddcDataFile -sddcManagerUser $sddcManagerAdmin -sddcManagerPassword $sddcManagerAdminPassword -vcfUserPassword $vcfUserPassword -localUserPassword $localUserPassword -rootPassword $rootPassword -offlineDepotFqdn $offlineDepotFqdn -offlineDepotPort $offlineDepotPort -offlineDepotUsername $offlineDepotUsername -offlineDepotPassword $offlineDepotPassword", "displayName": "Set SDDC Manager Offline Depot", "condition": [ { "type": "variable", "name": "unauthorizedDepot", "operator": "eq", "value": "false" } ], "threadId": "2", "interactive": false, "visible": true }, { "description": "Repoint SDDC Manager to the Unauthorized Offline Depot", "commandLine": "Set-SDDCManagerOfflineDepot -extractedSDDCDataFile $extractedSddcDataFile -sddcManagerUser $sddcManagerAdmin -sddcManagerPassword $sddcManagerAdminPassword -vcfUserPassword $vcfUserPassword -localUserPassword $localUserPassword -rootPassword $rootPassword -offlineDepotFqdn $offlineDepotFqdn -offlineDepotPort $offlineDepotPort -unauthorizedDepot", "displayName": "Set SDDC Manager Unauthorized Offline Depot", "condition": [ { "type": "variable", "name": "unauthorizedDepot", "operator": "eq", "value": "true" } ], "threadId": "2", "interactive": false, "visible": true }, { "description": "Trigger Download of Binaries Needed for Recovery", "commandLine": "Invoke-SddcManagerBundleDownload -extractedSDDCDataFile $extractedSddcDataFile -vcfUserPassword $vcfUserPassword -rootPassword $rootPassword -adminPassword $adminPassword -WaitForCompletion", "displayName": "Invoke SDDC Manager Bundle Download", "condition": [], "threadId": "2", "interactive": false, "visible": true }, { "description": "Extract Runtime Configuration from the Services Runtime Backup", "commandLine": "New-ExtractVcfmsBackup -LocalArchivePath $localArchivePath -EncryptionPassphrase $encryptionPassphrase -OutputDir \".\\backup-yaml\"", "displayName": "Extract Runtime Configuration from VCFMS Backup", "condition": [], "threadId": "2", "interactive": false, "visible": true }, { "description": "Prepare to Restore VCF Management Services (remove the existing VSP cluster entry)", "commandLine": "Remove-SddcManagerVspClusterEntry -extractedSDDCDataFile $extractedSddcDataFile -VcfUserPassword $vcfUserPassword -RootPassword $rootPassword -ClusterType MANAGEMENT -autoConfirm", "displayName": "Remove VCFMS Services Runtime Cluster Entry", "condition": [], "threadId": "2", "interactive": false, "visible": true }, { "description": "Redeploy VCF Management Services (VCFMS)", "commandLine": "New-ServicesRuntime -SddcManagerUser $sddcManagerAdmin -SddcManagerPassword $sddcManagerAdminPassword -SystemUserPassword $vcfmsServicesRuntimePassword -Ipv4Addresses ($ipv4Addresses.Split(',').Trim()) -Size $size -GatewayCidrIpv4 $gatewayCidrIpv4 -extractedSDDCDataFile $extractedSddcDataFile -InternalClusterCidrIpv4 $internalClusterCidrIpv4 -type MANAGEMENT -autoConfirm", "displayName": "Create New Services Runtime for VCFMS", "condition": [], "threadId": "2", "interactive": false, "visible": true }, { "description": "Set SFTP Backup Settings on the Redeployed Services Runtime", "commandLine": "Set-ServicesRuntimeSftpBackupSettings -Type MANAGEMENT -ServicesRuntimePassword $vcfmsServicesRuntimePassword -extractedSDDCDataFile $extractedSddcDataFile -SftpHost $sftpHost -SftpUsername $sftpUsername -SftpPassword $sftpPassword -SftpDirectory $sftpDirectory -EncryptionPassphrase $encryptionPassphrase", "displayName": "Set VCFMS Services Runtime SFTP Backup Settings", "condition": [], "threadId": "3", "waitFor": [ "2" ], "interactive": false, "visible": true }, { "description": "Trust the Installer Host Certificate (only needed when using an authorized offline depot with the original VCF Installer)", "commandLine": "Add-VcfmsTrustedCertificate -Type MANAGEMENT -extractedSDDCDataFile $extractedSddcDataFile -ServicesRuntimePassword $vcfmsServicesRuntimePassword -RemoteHostFqdn $vcfInstallerFqdn", "displayName": "Trust Installer Certificate on VCFMS Services Runtime", "condition": [ { "type": "variable", "name": "unauthorizedDepot", "operator": "eq", "value": "false" } ], "threadId": "3", "interactive": false, "visible": true }, { "description": "Trust the Offline Depot Certificate (only needed when using an unauthorized offline depot instead of the original VCF Installer)", "commandLine": "Add-VcfmsTrustedCertificate -Type MANAGEMENT -extractedSDDCDataFile $extractedSddcDataFile -ServicesRuntimePassword $vcfmsServicesRuntimePassword -RemoteHostFqdn $offlineDepotFqdn -RemoteHostPort $offlineDepotPort", "displayName": "Trust Offline Depot Certificate on VCFMS Services Runtime", "condition": [ { "type": "variable", "name": "unauthorizedDepot", "operator": "eq", "value": "true" } ], "threadId": "3", "interactive": false, "visible": true }, { "description": "Restore VCF Management Services (VCFMS)", "commandLine": "Restore-ServicesRuntimeComponentBackup -Type MANAGEMENT -extractedSDDCDataFile $extractedSddcDataFile -ServicesRuntimePassword $vcfmsServicesRuntimePassword -RestoreJsonFile \".\\vcfms-restore-payload.json\" -autoConfirm", "displayName": "Restore VCFMS Backups", "condition": [], "threadId": "3", "interactive": false, "visible": true }, { "description": "Apply Services Runtime Configuration", "commandLine": "Set-ServicesRuntimeScale -Type MANAGEMENT -extractedSDDCDataFile $extractedSddcDataFile -ServicesRuntimePassword $vcfmsServicesRuntimePassword -KubeconfigOutputDir \".\\backup-yaml\" -BackupYamlDir \".\\backup-yaml\"", "displayName": "Apply Services Runtime Configuration", "condition": [], "threadId": "3", "interactive": false, "visible": true }, { "description": "Restore Log Management", "commandLine": "Restore-ServicesRuntimeComponentBackup -Type MANAGEMENT -extractedSDDCDataFile $extractedSddcDataFile -ServicesRuntimePassword $vcfmsServicesRuntimePassword -RestoreJsonFile \".\\opsLogs-restore-payload.json\" -autoConfirm", "displayName": "Restore Log Management Backup", "condition": [], "threadId": "3", "interactive": false, "visible": true }, { "description": "Update Log Management State (manual step)", "commandLine": "Confirm-ManualStep -Message 'Press Enter once Log Management state is updated' -AnswerKey 'log-management-state-updated'", "displayName": "Confirm Manual Step: Log Management state is updated", "condition": [], "threadId": "3", "interactive": true, "visible": true }, { "description": "Point SDDC Manager to the FDS Depot", "commandLine": "Set-SDDCManagerFDSDepot -extractedSDDCDataFile $extractedSddcDataFile -sddcManagerUser $sddcManagerAdmin -sddcManagerPassword $sddcManagerAdminPassword", "displayName": "Set SDDC Manager FDS Depot", "condition": [], "threadId": "3", "interactive": false, "visible": true }, { "description": "Prepare to Restore VCF Automation (remove the existing VSP cluster entry)", "commandLine": "Remove-SddcManagerVspClusterEntry -extractedSDDCDataFile $extractedSddcDataFile -VcfUserPassword $vcfUserPassword -RootPassword $rootPassword -ClusterType CONSUMPTION -autoConfirm", "displayName": "Remove VCFA Services Runtime Cluster Entry", "condition": [], "threadId": "4", "waitFor": [ "2" ], "interactive": false, "visible": true }, { "description": "Redeploy VCF Automation Services Runtime Cluster", "commandLine": "New-ServicesRuntime -SddcManagerUser $sddcManagerAdmin -SddcManagerPassword $sddcManagerAdminPassword -SystemUserPassword $vcfaServicesRuntimePassword -Ipv4Addresses ($vcfaIpv4Addresses.Split(',').Trim()) -Size $vcfaSize -GatewayCidrIpv4 $vcfaGatewayCidrIpv4 -extractedSDDCDataFile $extractedSddcDataFile -InternalClusterCidrIpv4 $vcfaInternalClusterCidrIpv4 -type CONSUMPTION -autoConfirm", "displayName": "Create New VCFA Services Runtime", "condition": [], "threadId": "4", "interactive": false, "visible": true }, { "description": "Set SFTP Backup Settings on the VCF Automation Services Runtime", "commandLine": "Set-ServicesRuntimeSftpBackupSettings -Type CONSUMPTION -ServicesRuntimePassword $vcfaServicesRuntimePassword -extractedSDDCDataFile $extractedSddcDataFile -SftpHost $sftpHost -SftpUsername $sftpUsername -SftpPassword $sftpPassword -SftpDirectory $sftpDirectory -EncryptionPassphrase $encryptionPassphrase", "displayName": "Set VCFA Services Runtime SFTP Backup Settings", "condition": [], "threadId": "4", "interactive": false, "visible": true }, { "description": "Trust the Installer Host Certificate on VCF Automation", "commandLine": "Add-VcfmsTrustedCertificate -Type CONSUMPTION -extractedSDDCDataFile $extractedSddcDataFile -ServicesRuntimePassword $vcfaServicesRuntimePassword -RemoteHostFqdn $vcfInstallerFqdn", "displayName": "Trust Installer Certificate on VCFA Services Runtime", "condition": [ { "type": "variable", "name": "unauthorizedDepot", "operator": "eq", "value": "false" } ], "threadId": "4", "interactive": false, "visible": true }, { "description": "Trust the Offline Depot Certificate (only needed when using an unauthorized offline depot instead of the original VCF Installer)", "commandLine": "Add-VcfmsTrustedCertificate -Type CONSUMPTION -extractedSDDCDataFile $extractedSddcDataFile -ServicesRuntimePassword $vcfaServicesRuntimePassword -RemoteHostFqdn $offlineDepotFqdn -RemoteHostPort $offlineDepotPort", "displayName": "Trust Offline Depot Certificate on VCFA Services Runtime", "condition": [ { "type": "variable", "name": "unauthorizedDepot", "operator": "eq", "value": "true" } ], "threadId": "4", "interactive": false, "visible": true }, { "description": "Restore VCF Automation", "commandLine": "Restore-ServicesRuntimeComponentBackup -Type CONSUMPTION -extractedSDDCDataFile $extractedSddcDataFile -ServicesRuntimePassword $vcfaServicesRuntimePassword -RestoreJsonFile \".\\vcfa-restore-payload.json\" -autoConfirm", "displayName": "Restore VCF Automation Backup", "condition": [], "threadId": "4", "interactive": false, "visible": true }, { "description": "Restore Telemetry", "commandLine": "Restore-ServicesRuntimeComponentBackup -Type MANAGEMENT -extractedSDDCDataFile $extractedSddcDataFile -ServicesRuntimePassword $vcfmsServicesRuntimePassword -RestoreJsonFile \".\\restore-payload.json\" -autoConfirm", "displayName": "Restore Telemetry Backup", "condition": [], "threadId": "2", "waitFor": [ "3", "4" ], "interactive": false, "visible": true }, { "description": "Update Connections in VCF Automation (manual step)", "commandLine": "Confirm-ManualStep -Message 'Press Enter once connections in VCF Automation have been updated' -AnswerKey 'vcf-automation-connections-updated'", "displayName": "Confirm Manual Step: VCF Automation connections have been updated", "condition": [], "threadId": "2", "interactive": true, "visible": true }, { "description": "Redeploy License Server (manual step)", "commandLine": "Confirm-ManualStep -Message 'Press Enter once the License Server has been redeployed' -AnswerKey 'license-server-redeployed'", "displayName": "Confirm Manual Step: License Server has been redeployed", "condition": [], "threadId": "2", "waitFor": [ "1" ], "interactive": true, "visible": true } ] |