plans/ibr/management-domain-recovery-plan.json

[
  {
    "description": "",
    "commandLine": "New-PrepareManagementHostNetworking -extractedSDDCDataFile $extractedSddcDataFile -mtu 8900 -esxiRootPassword $targetAdminPassword",
    "displayName": "Prepare Management Host Networking",
    "condition": [],
    "threadId": "1",
    "interactive": true,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Add-VMKernelsToManagementHosts -extractedSDDCDataFile $extractedSddcDataFile -esxiRootPassword $targetAdminPassword",
    "displayName": "Add VMKernels to Management Hosts",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "New-SingleHostVsanDatastore -extractedSDDCDataFile $extractedSddcDataFile -esxiRootPassword $targetAdminPassword",
    "displayName": "Create Single Host vSAN Datastore",
    "condition": [],
    "threadId": "1",
    "interactive": true,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "New-SDDCManagerOvaDeployment -targetType esx -targetFqdn $targetFqdn -targetAdmin $targetAdmin -targetAdminPassword $targetAdminPassword -extractedSDDCDataFile $extractedSddcDataFile -sddcManagerOvaFile $sddcManagerOvaFile -rootUserPassword $newSddcManagerPassword -vcfUserPassword $newSddcManagerPassword -localUserPassword $newSddcManagerPassword -basicAuthUserPassword $newSddcManagerPassword",
    "displayName": "SDDC Manager OVA Deployment",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "New-UploadAndModifySDDCManagerBackup -targetType esx -targetFqdn $targetFqdn -targetAdmin $targetAdmin -targetAdminPassword $targetAdminPassword -rootUserPassword $newSddcManagerPassword -vcfUserPassword $newSddcManagerPassword -backupFilePath $vcfBackupFilePath -secureEncryptionPassword $secureEncryptionPassword -extractedSDDCDataFile $extractedSddcDataFile",
    "displayName": "Upload and Modify SDDC Manager Backup",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Invoke-SDDCManagerRestore -extractedSDDCDataFile $extractedSddcDataFile -backupFilePath $vcfBackupFilePath -vcfUserPassword $newSddcManagerPassword -localUserPassword $newSddcManagerPassword -rootUserPassword $newSddcManagerPassword -secureEncryptionPassword $secureEncryptionPassword",
    "displayName": "Partial SDDC Manager Restore",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "New-RetrieveVCFCredentials -sddcManagerFqdn $sddcManagerFqdn -sddcManagerAdmin 'admin@local' -sddcManagerAdminPassword $newSddcManagerPassword",
    "displayName": "Retrieve SDDC Credentials Payload",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "New-ExtractDataFromSDDCBackup -vcfBackupFilePath $vcfBackupFilePath -secureEncryptionPassword $secureEncryptionPassword -credentialsFilePath $credentialsFilePath -requireCredentials",
    "displayName": "Merge Extracted Data and Credentials Payload",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "New-vCenterOvaDeployment -targetType esx -targetFqdn $targetFqdn -targetAdmin $targetAdmin -targetAdminPassword $targetAdminPassword -extractedSDDCDataFile $extractedSddcDataFile -workloadDomain $workloadDomain -restoredvCenterDeploymentSize $restoredVcenterDeploymentSize -vCenterOvaFile $vCenterOvaFile",
    "displayName": "vCenter OVA Deployment",
    "condition": [],
    "threadId": "2",
    "waitFor": [
      "1"
    ],
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "New-NSXManagerOvaDeployment -targetType esx -targetFqdn $targetFqdn -targetAdmin $targetAdmin -targetAdminPassword $targetAdminPassword -extractedSDDCDataFile $extractedSddcDataFile -workloadDomain $workloadDomain -restoredNsxManagerDeploymentSize $restoredNsxManagerDeploymentSize -nsxManagerOvaFile $nsxManagerOvaFile",
    "displayName": "First NSX Manager OVA Deployment",
    "condition": [],
    "threadId": "3",
    "waitFor": [
      "1"
    ],
    "interactive": true,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Invoke-vCenterRestore -extractedSDDCDataFile $extractedSddcDataFile -workloadDomain $workloadDomain -vCenterBackupPath $vCenterBackupPath -locationtype $locationType -locationUser $locationUser -locationPassword $locationPassword",
    "displayName": "Invoke vCenter Restore",
    "condition": [],
    "threadId": "2",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Invoke-NSXManagerRestore -extractedSDDCDataFile $extractedSddcDataFile -workloadDomain $workloadDomain -sftpServer $sftpServer -sftpUser $sftpUser -sftpPassword $sftpPassword -sftpServerBackupPath $sftpServerBackupPath -backupPassphrase $nsxBackupPassphrase",
    "displayName": "Invoke NSX Manager Restore",
    "condition": [],
    "threadId": "3",
    "interactive": true,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Invoke-SDDCManagerRestore -extractedSDDCDataFile $extractedSddcDataFile -backupFilePath $vcfBackupFilePath -vcfUserPassword $newSddcManagerPassword -localUserPassword $newSddcManagerPassword -rootUserPassword $newSddcManagerPassword -secureEncryptionPassword $secureEncryptionPassword",
    "displayName": "Full SDDC Manager Restore",
    "condition": [],
    "threadId": "2",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Update-ExtractedSDDCData -extractedSDDCDataFile $extractedSddcDataFile -sddcManagerFQDN $sddcManagerFqdn -sddcManagerAdmin $sddcManagerAdmin -sddcManagerAdminPassword $sddcManagerAdminPassword -vCenterFQDN $restoredVcenterFqdn",
    "displayName": "Update Extracted SDDC Data",
    "condition": [],
    "threadId": "1",
    "waitFor": [
      "2",
      "3"
    ],
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "New-Advisory 'You may now remove failed vSAN witnesses from the management domain vCenter inventory, then redeploy and reregister them to vCenter'",
    "displayName": "New Advisory",
    "condition": [
      {
        "type": "dataPath",
        "path": "selectedCluster.isStretched",
        "operator": "eq",
        "value": "t"
      }
    ],
    "threadId": "1",
    "interactive": false,
    "visible": false
  },
  {
    "description": "Record the Cluster Settings from the Restored vCenter",
    "commandLine": "Backup-ClusterVMOverrides -vCenterFQDN $restoredVcenterFqdn -vCenterAdmin $restoredVcenterAdmin -vCenterAdminPassword $restoredVcenterAdminPassword -clusterName $clusterName",
    "displayName": "Backup Cluster VM Overrides",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Backup-ClusterVMLocations -vCenterFQDN $restoredVcenterFqdn -vCenterAdmin $restoredVcenterAdmin -vCenterAdminPassword $restoredVcenterAdminPassword -clusterName $clusterName",
    "displayName": "Backup Cluster VM Locations",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Backup-ClusterDRSGroupsAndRules -vCenterFQDN $restoredVcenterFqdn -vCenterAdmin $restoredVcenterAdmin -vCenterAdminPassword $restoredVcenterAdminPassword -clusterName $clusterName",
    "displayName": "Backup Cluster DRS Groups and Rules",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Backup-ClusterVMTags -vCenterFQDN $restoredVcenterFqdn -vCenterAdmin $restoredVcenterAdmin -vCenterAdminPassword $restoredVcenterAdminPassword -clusterName $clusterName",
    "displayName": "Backup Cluster VM Tags",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Remove-NonResponsiveHosts -vCenterFQDN $restoredVcenterFqdn -vCenterAdmin $restoredVcenterAdmin -vCenterAdminPassword $restoredVcenterAdminPassword -clusterName $clusterName -NsxManagerFQDN $restoredNsxManagerFqdn -NsxManagerAdmin $restoredNsxManagerAdmin -NsxManagerAdminPassword $restoredNsxManagerAdminPassword -NsxManagerRootPassword $restoredNsxManagerRootPassword",
    "displayName": "Remove Non Responsive Hosts",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Add-HostsToCluster -vCenterFQDN $restoredVcenterFqdn -vCenterAdmin $restoredVcenterAdmin -vCenterAdminPassword $restoredVcenterAdminPassword -clusterName $clusterName -sddcManagerFqdn $sddcManagerFqdn -sddcManagerAdmin $sddcManagerAdmin -sddcManagerAdminPassword $sddcManagerAdminPassword -extractedSDDCDataFile $extractedSddcDataFile",
    "displayName": "Add Hosts to Cluster",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "New-RebuiltVdsConfiguration -vCenterFQDN $restoredVcenterFqdn -vCenterAdmin $restoredVcenterAdmin -vCenterAdminPassword $restoredVcenterAdminPassword -clusterName $clusterName -extractedSDDCDataFile $extractedSddcDataFile",
    "displayName": "Rebuild VDS Configuration",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Watch-NsxHostTransportNodeInstallation -clusterName $clusterName -extractedSDDCDataFile $extractedSddcDataFile",
    "displayName": "Monitor NSX Host Transport Node Installation",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Add-DiskgroupsToManagementHosts -targetFqdn $restoredVcenterFqdn -targetAdmin $restoredVcenterAdmin -targetAdminPassword $restoredVcenterAdminPassword -clusterName $clusterName -extractedSDDCDataFile $extractedSddcDataFile -serial -autoConfirm",
    "displayName": "Add Diskgroups to Management Hosts",
    "condition": [
      {
        "type": "dataPath",
        "path": "selectedCluster.primaryDatastoreType",
        "operator": "eq",
        "value": "VSAN"
      }
    ],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "Deploy a new vSAN Witness using the user-provided script and register it in the restored vCenter (must exit 0 on success and non-zero on failure)",
    "commandLine": "Invoke-UserScript -ScriptPath $vsanWitnessScriptPath",
    "displayName": "Run User-Provided vSAN Witness Deployment Script",
    "condition": [
      {
        "type": "variable",
        "name": "userProvidedVsanWitnessScript",
        "operator": "eq",
        "value": "true"
      },
      {
        "type": "dataPath",
        "path": "selectedCluster.isStretched",
        "operator": "eq",
        "value": "t"
      }
    ],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "Deploy a new vSAN Witness and register it in the restored vCenter (manual step)",
    "commandLine": "Confirm-ManualStep -Message 'Press Enter once the new vSAN Witness has been deployed and is registered and connected in the restored vCenter' -AnswerKey 'vsan-witness-deployed'",
    "displayName": "Confirm Manual Step: New vSAN Witness has been deployed",
    "condition": [
      {
        "type": "variable",
        "name": "userProvidedVsanWitnessScript",
        "operator": "eq",
        "value": "false"
      },
      {
        "type": "dataPath",
        "path": "selectedCluster.isStretched",
        "operator": "eq",
        "value": "t"
      }
    ],
    "threadId": "1",
    "interactive": true,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "New-ReconfiguredVsanStretchedCluster -vCenterFQDN $restoredVcenterFqdn -vCenterAdmin $restoredVcenterAdmin -vCenterAdminPassword $restoredVcenterAdminPassword -clusterName $clusterName -extractedSDDCDataFile $extractedSddcDataFile",
    "displayName": "Reconfigure vSAN Stretched Cluster",
    "condition": [
      {
        "type": "dataPath",
        "path": "selectedCluster.isStretched",
        "operator": "eq",
        "value": "t"
      }
    ],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Set-ManagementDatastorePolicy -vCenterFQDN $restoredVcenterFqdn -vCenterAdmin $restoredVcenterAdmin -vCenterAdminPassword $restoredVcenterAdminPassword -clusterName $clusterName -extractedSDDCDataFile $extractedSddcDataFile",
    "displayName": "Set Management Datastore Policy",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "New-Advisory 'You may now commence the recovery of workload domains via additional VCF Recovery Coordinator sessions'",
    "displayName": "New Advisory",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": false
  },
  {
    "description": "",
    "id": "nsx-edge-cluster-recovery-selective",
    "commandLine": "Invoke-NSXEdgeClusterRecoverySelective -nsxManagerFqdn $restoredNsxManagerFqdn -nsxManagerAdmin $restoredNsxManagerAdmin -nsxManagerAdminPassword $restoredNsxManagerAdminPassword -vCenterFQDN $restoredVcenterFqdn -vCenterAdmin $restoredVcenterAdmin -vCenterAdminPassword $restoredVcenterAdminPassword -clusterName $clusterName -extractedSDDCDataFile $extractedSddcDataFile -monitor",
    "displayName": "Invoke NSX Edge Cluster Recovery Selective",
    "condition": [],
    "threadId": "1",
    "interactive": true,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "New-NSXManagerOvaDeployment -targetType esx -targetFqdn $targetFqdn -targetAdmin $targetAdmin -targetAdminPassword $targetAdminPassword -extractedSDDCDataFile $extractedSddcDataFile -workloadDomain $workloadDomain -restoredNsxManagerDeploymentSize $restoredNsxManagerDeploymentSize -nsxManagerOvaFile $nsxManagerOvaFile",
    "displayName": "Second NSX Manager OVA Deployment",
    "condition": [
      {
        "type": "dataPath",
        "path": "selectedDomain.nsxNodeDetails.count",
        "operator": "ne",
        "value": "1"
      }
    ],
    "threadId": "1",
    "interactive": true,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "New-NSXManagerOvaDeployment -targetType esx -targetFqdn $targetFqdn -targetAdmin $targetAdmin -targetAdminPassword $targetAdminPassword -extractedSDDCDataFile $extractedSddcDataFile -workloadDomain $workloadDomain -restoredNsxManagerDeploymentSize $restoredNsxManagerDeploymentSize -nsxManagerOvaFile $nsxManagerOvaFile",
    "displayName": "Third NSX Manager OVA Deployment",
    "condition": [
      {
        "type": "dataPath",
        "path": "selectedDomain.nsxNodeDetails.count",
        "operator": "ne",
        "value": "1"
      }
    ],
    "threadId": "2",
    "waitFor": [
      "nsx-edge-cluster-recovery-selective"
    ],
    "interactive": true,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Add-AdditionalNSXManagers -workloadDomain $workloadDomain -extractedSDDCDataFile $extractedSddcDataFile",
    "displayName": "Add NSX Managers to Cluster",
    "condition": [
      {
        "type": "dataPath",
        "path": "selectedDomain.nsxNodeDetails.count",
        "operator": "ne",
        "value": "1"
      }
    ],
    "threadId": "1",
    "waitFor": [
      "2"
    ],
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Invoke-SddcManagerSSHKeyRefresh -vCenterFQDN $restoredVcenterFqdn -vCenterAdmin $restoredVcenterAdmin -vCenterAdminPassword $restoredVcenterAdminPassword -extractedSDDCDataFile $extractedSddcDataFile -clusterName $clusterName -workloadDomain $workloadDomain -VcfUserPassword $newSddcManagerPassword",
    "displayName": "Invoke SDDC Manager SSHKey Refresh",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Update-DomainDatastoreID -extractedSDDCDataFile $extractedSddcDataFile -vCenterFqdn $restoredVcenterFqdn -clusterName $clusterName -VcfUserPassword $newSddcManagerPassword -RootPassword $newSddcManagerPassword -autoConfirm",
    "displayName": "Update Domain Datastore ID",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Update-ClusterHostSourceIDs -extractedSDDCDataFile $extractedSddcDataFile -vCenterFqdn $restoredVcenterFqdn -clusterName $clusterName -VcfUserPassword $newSddcManagerPassword -RootPassword $newSddcManagerPassword -autoConfirm",
    "displayName": "Update Cluster Host Source IDs",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Resolve-PhysicalHostServiceAccounts -targetFQDN $restoredVcenterFqdn -targetAdmin $restoredVcenterAdmin -targetAdminPassword $restoredVcenterAdminPassword -clusterName $clusterName -svcAccountPassword $svcAccountPassword -sddcManagerFqdn $sddcManagerFqdn -sddcManagerAdmin $sddcManagerAdmin -sddcManagerAdminPassword $sddcManagerAdminPassword",
    "displayName": "Resolve Physical Host Service Accounts",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  },
  {
    "description": "",
    "commandLine": "Clear-vCenterAlarms -vCenterFQDN $restoredVcenterFqdn -vCenterAdmin $restoredVcenterAdmin -vCenterAdminPassword $restoredVcenterAdminPassword",
    "displayName": "Clear vCenter Alarms",
    "condition": [],
    "threadId": "1",
    "interactive": false,
    "visible": true
  }
]