This project will contain scripts which can be leveraged for automating StorSimple device management.
Clone or download
Latest commit aa22d24 Jun 20, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
runbooks Updated Api Call to Begin<Op> from Begin<Op>Async Jan 4, 2018
storsimple-disaster-recovery-using-azure-site-recovery Added SS+ASR Scripts & Help doc Oct 4, 2017
Authorize-ServiceEncryptionRollover.ps1 Update Authorize-ServiceEncryptionRollover.ps1 Feb 21, 2018
Clone-Volume.ps1 Added few more operations Jun 14, 2018
Create-DeviceManager.ps1 Added StroSimple resource provider code Jun 11, 2018
Create-StorSimpleCloudAppliance.ps1 Fixing instructions Apr 26, 2018
CreateOrUpdate-Volume.ps1 Added AuthNType code and minor changes description Oct 4, 2017
Delete-BackupPolicy.ps1 Added few more operations Jun 14, 2018
Delete-Volume.ps1 Added few more operations Jun 14, 2018
Delete-VolumeContainer.ps1 Added few more operations Jun 14, 2018
Get-ConnectedHostName.ps1 Added few more operations Jun 14, 2018
Get-DeviceBackup.ps1 Added GetAwaiter().GetResult() method to async call. Dec 12, 2017
Get-DeviceBackupPolicy.ps1 Added AuthNType code and minor changes description Oct 4, 2017
Get-DeviceJobs.ps1 Added AuthNType code and minor changes description Oct 4, 2017
Get-DeviceManagerUsage.ps1 Update max size Oct 16, 2017
Get-DeviceUpdateAvailability.ps1 Added AuthNType code and minor changes description Oct 4, 2017
Get-RegistrationKey.ps1 Update Get-RegistrationKey.ps1 Nov 23, 2017
Install-DeviceUpdate.ps1 Added AuthNType code and minor changes description Oct 4, 2017
List-StorSimpleBackupStats.ps1 Fetches Backup Stats Feb 14, 2018
Manage-CloudSnapshots.ps1 Updated Api Call to Begin<Op> from Begin<Op>Async Jan 4, 2018
Monitor-Backups.ps1 Update Monitor-Backups.ps1 Nov 16, 2017
README.md Updates to readme & creating a folder runbooks Oct 6, 2017
Remove-DeviceBackup.ps1 Updated Api Call to Begin<Op> from Begin<Op>Async Jan 4, 2018
Remove-ExpiredDeviceBackups.ps1 Updated Api Call to Begin<Op> from Begin<Op>Async Jan 4, 2018
Restore-BackupSet.ps1 Added few more operations Jun 14, 2018
Start-DeviceBackupJob.ps1 Updated Api Call to Begin<Op> from Begin<Op>Async Jan 4, 2018
Update-CloudApplianceServiceEncryptionKey.ps1 Added AuthNType code and minor changes description Oct 4, 2017
Verify-BackupScheduleAndBackup.ps1 Added AuthNType code and minor changes description Oct 4, 2017

README.md

StorSimple Device Management Tools

This project will contain scripts and other tools which can be leveraged for automating StorSimple device management.

Run Azure PowerShell script

The script used in this example lists all the jobs on a StorSimple device. This includes the jobs that succeeded, failed, or are in progress. Perform the following steps to download and run the script.

  1. Launch Azure PowerShell. Create a new folder and change directory to the new folder.
      mkdir C:\scripts\StorSimpleSDKTools
      cd C:\scripts\StorSimpleSDKTools
  1. Download nuget CLI under the folder created in the previous step. There are various versions of nuget.exe. Choose the version corresponding to your SDK. Each download link points directly to an .exe file. Be sure to right-click and save the file to your computer rather than running it from the browser.

You can also run the following command to download and store the script in the same folder that you created earlier. Refer NuGet Documentation.

      wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -Out nuget.exe
  1. Download the StorSimple Device Manager and dependent SDK libraries.
      C:\scripts\StorSimpleSDKTools\nuget.exe install Microsoft.Azure.Management.Storsimple8000series
      C:\scripts\StorSimpleSDKTools\nuget.exe install Microsoft.IdentityModel.Clients.ActiveDirectory -Version 2.28.3
      C:\scripts\StorSimpleSDKTools\nuget.exe install Microsoft.Rest.ClientRuntime.Azure.Authentication -Version 2.2.9-preview
  1. Download the script from the sample GitHub project and execute the script.
      wget https://github.com/anoobbacker/storsimpledevicemgmttools/raw/master/<script-name> -Out <script-name>
      .\<scripname> -SubscriptionId <subid> -ResourceGroupName <resource group> -ManagerName <device manager> -DeviceName <device name>