Software Development Kit (SDK) and API Discussions

Cmdlet to assign schedule policy

FrancoWolf
2,269 Views

Hi,

 

I'm searching for a cmdlet to assign a snapshot schedule policy to specified volumes over WFA.

 

 

Does anybody knows the cmdlet for this task?

 

 

Kind regards

 

 

Franco

1 ACCEPTED SOLUTION

asulliva
2,248 Views

From a PowerShell perspective, you'll want to use the "Update-NcVol" cmdlet to change the snapshot policy assigned to a volume:

 

Update-NcVol -Query @{ Name = $volName } -Attributes @{ VolumeSnapshotAttributes = @{ SnapshotPolicy = $snapPolicy } }

Hope that helps.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

2 REPLIES 2

asulliva
2,249 Views

From a PowerShell perspective, you'll want to use the "Update-NcVol" cmdlet to change the snapshot policy assigned to a volume:

 

Update-NcVol -Query @{ Name = $volName } -Attributes @{ VolumeSnapshotAttributes = @{ SnapshotPolicy = $snapPolicy } }

Hope that helps.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

FrancoWolf
2,228 Views

Hi Andrew,

 

this sounds good. I will try this and give you a feedback.

 

Thank you so far!

 

 

Franco

Public