Export and Import a Storage Policy

You can back up a storage policy by exporting it as a file. You can later import the same storage policy.

Prerequisites

  • Verify that you are connected to a vCenter Server system.
  • Verify that you have Profile-driven storage update privileges.
  • Verify that you have read-write permissions for the directory in which the storage policy is saved.
  • Verify that a storage policy named pol-tag exists in the vCenter Server environment.

Procedure

  1. Export the pol-tag storage policy.
    Export-SpbmStoragePolicy -StoragePolicy 'pol-tag' -FilePath 'C:\Policy\pol-tag.xml'
  2. Import the pol-tag storage policy and name it Imported-Policy.
    Import-SpbmStoragePolicy -FilePath 'C:\Policy\pol-tag.xml' -Name 'Imported-Policy' -Description 'Imported policy description'