Hi all,
I'm running into a disconnect between what the Veeam GUI allows and what I can accomplish via PowerShell when working with NetApp NAS filers.
Environment / Context
- NetApp storage systems are added to Veeam as NAS Filers
- In the GUI, I can create a NAS backup job and add:
- - Entire NAS Filer
- - Specific SVM
- - Specific share under an SVM
The GUI represents these paths as:
Code: Select all
<netapphost>
<netapphost>\<svm>
<netapphost>\<svm>:\<share_name>
When querying an existing job:
Code: Select all
Get-VBRUnstructuredBackupJob
- Host: <netapphost>
- SVM: <netapphost>\<svm>
- Share: <netapphost>\<svm>:\<share_name>
Creating Objects via PowerShell
To add objects, I must use:
- New-VBRNASBackupJobObject
- Then pass that into:
Add-VBRNASBackupJob
Example – Entire NAS Filer (Works as Expected)
Code: Select all
New-VBRNASBackupJobObject -SanEntity (Get-NetAppHost -Name <netapphost>)
Code: Select all
New-VBRNASBackupJobObject -Server (Get-VBRUnstructuredServer -Name <netapphost>\<svm>:\<share_name>)
The resulting object has its Path converted to:
Code: Select all
\\<IP Address>\<share_name>
Code: Select all
Get-VBRUnstructuredBackupJob
Code: Select all
<netapphost>\<svm>:\<share_name>
I cannot find any way in PowerShell to create an object representing:
Code: Select all
<netapphost>\<svm>
- -SanEntity
- -Server + -Path
that allows adding an SVM the same way the GUI does.
Questions
1) How can I create an SVM-level backup object via PowerShell?
(Equivalent to adding <netapphost>\<svm> in the GUI)
2) How can I add a share via PowerShell so that the path remains:
Code: Select all
<netapphost>\<svm>:\<share_name>
Code: Select all
\\<IP Address>\<share_name>
Functionally, the jobs appear to run the same. However, it's concerning that:
- The underlying job configuration differs
- The Path value is inconsistent depending on whether the object is added via GUI vs PowerShell
This makes automation feel unreliable or at least opaque.
Any insight into how to properly align PowerShell behavior with the GUI would be greatly appreciated.
Thanks!