From 1e3bd6257acfa4c53e9f73811b2b777a68365843 Mon Sep 17 00:00:00 2001 From: mdaneri Date: Mon, 1 Aug 2022 13:16:53 -0700 Subject: [PATCH] Update README.md --- README.md | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 16456f0..3ffca01 100644 --- a/README.md +++ b/README.md @@ -32,14 +32,17 @@ First steps 2. Open PowerShell Core (pwsh) or Windows PowerShell (powershell.exe) 3. Change the active directory to **\vcdr-powershell-cmdlet** 4. run **.\install.ps1 -Install CurrentUser** -5. **Connect-VCDRServer** **-server** "vcdr-x-y-z-y.app.vcdr.vmware.com" **-token** "your VMC token" +5. **Connect-VCDRService** **-token** "your VMC token" **Get-Help** is available for each cmdlet
CmdLets -- Connect-VCDRServer -- Disconnect-VCDRServer +- Connect-VCDRService +- Disconnect-VCDRService +- Get-VCDRInstance +- Set-DefaultVCDRInstance +- Get-DefaultVCDRInstance - Get-VCDRCloudFileSystem - Get-VCDRProtectedSite - Get-VCDRProtectionGroup @@ -54,23 +57,21 @@ An introduction to the VCDR PowerShell CmdLets is available here https://vmc.tec _Script-1_ ``` -$token=_"your VMC token" -$server = "vcdr-aaa-bbb-ccc-ddd.app.vcdr.vmware.com" -$VCDR=Connect-VCDRServer -server $server -token $token +$token=_"your VMC token" +Connect-VCDRService -token $token $RecoverySDDC=Get-VCDRRecoverySDDC -$cloudFileSystem=Get-VCDRCloudFileSystem -name "cloud-backup-1" +$cloudFileSystem=Get-VCDRCloudFileSystem $ProtectedSites=Get-VCDRProtectedSite -CloudFileSystem $cloudFileSystem $ProtectionGroups=Get-VCDRProtectionGroup -CloudFileSystem $cloudFileSystem $Snapshots=Get-VCDRSnapshot -ProtectionGroups $ProtectionGroups $Vms=Get-VCDRProtectedVm -CloudFileSystem $cloudFileSystem -Disconnect-VCDRServer -server $VCDR +Disconnect-VCDRService ``` _Script-2_ ``` -$token=_"your VMC token" -$server = "vcdr-aaa-bbb-ccc-ddd.app.vcdr.vmware.com" -Connect-VCDRServer -server $server -token $token +$token=_"your VMC token" +Connect-VCDRService -token $token #Return any Protection Site or each CloudFileSystem Get-VCDRCloudFileSystem| Get-VCDRProtectedSite @@ -84,14 +85,14 @@ Get-VCDRCloudFileSystem|Get-VCDRProtectionGroup|Get-VCDRSnapshot #Return any Protected VM for each CloudFileSystem Get-VCDRCloudFileSystem|Get-VCDRProtectedVm -Disconnect-VCDRServer -server $VCDR +Disconnect-VCDRService ``` A test script called **.\start-VCDRTest.ps1** is available ``` -.\start-VCDRTest.ps1 -server "vcdr-xxx-yyy-zzz-kkk.app.vcdr.vmware.com" -token "" +.\start-VCDRTest.ps1 -token "" ``` ***