Skip to content

Commit

Permalink
[Az.StorageSync] Deprecate Invoke-AzStorageSyncFileRecall cmdlet (#14906
Browse files Browse the repository at this point in the history
)

* deprecate Invoke-AzStorageSyncFileRecall cmdlet

* update documentation and tests

* generate help update

* update strings

* fully remove recall cmdlet, update help files, tests, and other content

* clean up designer file

* Revert changes to breaking change doc
  • Loading branch information
anpint authored May 11, 2021
1 parent 182cde3 commit 58790d2
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 1,677 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,6 @@ function Test-ServerEndpoint2
Assert-AreEqual $serverLocalPath $serverEndpoint2.ServerLocalPath
Assert-AreEqual $volumeFreeSpacePercent2 $serverEndpoint2.VolumeFreeSpacePercent

Write-Verbose "Recall ServerEndpoint by Name"
Invoke-AzStorageSyncFileRecall -ResourceGroupName $resourceGroupName -StorageSyncServiceName $storageSyncServiceName -SyncGroupName $syncGroupName -Name $serverEndpointName -AsJob | Wait-Job

Write-Verbose "Recall ServerEndpoint by InputObject"
Invoke-AzStorageSyncFileRecall -InputObject $serverEndpoint -AsJob | Wait-Job

Write-Verbose "Recall ServerEndpoint by ResourceId"
Invoke-AzStorageSyncFileRecall -ResourceId $serverEndpoint.ResourceId -AsJob | Wait-Job

Write-Verbose "Removing ServerEndpoint: $serverEndpointName"
Remove-AzStorageSyncServerEndpoint -Force -ResourceGroupName $resourceGroupName -StorageSyncServiceName $storageSyncServiceName -SyncGroupName $syncGroupName -Name $serverEndpointName -AsJob | Wait-Job

Expand Down
2 changes: 1 addition & 1 deletion src/StorageSync/StorageSync/Az.StorageSync.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ CmdletsToExport = 'Invoke-AzStorageSyncCompatibilityCheck',
'New-AzStorageSyncServerEndpoint',
'Get-AzStorageSyncServerEndpoint',
'Remove-AzStorageSyncServerEndpoint',
'Set-AzStorageSyncServerEndpoint', 'Invoke-AzStorageSyncFileRecall',
'Set-AzStorageSyncServerEndpoint',
'Register-AzStorageSyncServer', 'Unregister-AzStorageSyncServer',
'Get-AzStorageSyncServer', 'Reset-AzStorageSyncServerCertificate',
'Invoke-AzStorageSyncChangeDetection'
Expand Down
2 changes: 2 additions & 0 deletions src/StorageSync/StorageSync/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
- Additional information about change #1
-->
## Upcoming Release
* Deprecating Invoke-AzStorageSyncFileRecall.
- Customers should instead use Invoke-StorageSyncFileRecall, a cmdlet that is shipped with the Azure File Sync agent.

## Version 1.4.0
* Added Sync tiering policy feature with download policy and local cache mode
Expand Down
4 changes: 0 additions & 4 deletions src/StorageSync/StorageSync/Common/StorageSyncCmdletNames.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ public class StorageSyncCmdletNames
/// </summary>
public const string NewAzureRmStorageSyncServerEndpoint = VerbsCommon.New + "-" + StorageSyncNouns.NounAzureRmStorageSyncServerEndpoint;
/// <summary>
/// The invoke azure rm storage sync file recall
/// </summary>
public const string InvokeAzureRmStorageSyncFileRecall = VerbsLifecycle.Invoke + "-" + StorageSyncNouns.NounAzureRmStorageSyncFileRecall;
/// <summary>
/// The get azure rm storage sync service
/// </summary>
public const string GetAzureRmStorageSyncService = VerbsCommon.Get + "-" + StorageSyncNouns.NounAzureRmStorageSyncService;
Expand Down
4 changes: 0 additions & 4 deletions src/StorageSync/StorageSync/Common/StorageSyncNouns.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ public class StorageSyncNouns
/// </summary>
public const string NounAzureRmStorageSyncServerConfiguration = StorageSyncConstants.ProductPrefix + "ServerConfiguration";
/// <summary>
/// The noun azure rm storage sync file recall
/// </summary>
public const string NounAzureRmStorageSyncFileRecall = StorageSyncConstants.ProductPrefix + "FileRecall";
/// <summary>
/// The noun azure rm storage sync server certificate
/// </summary>
public const string NounAzureRmStorageSyncServerCertificate = NounAzureRmStorageSyncServer + "Certificate";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@
<data name="GetSyncServerCertificateErrorMessageFormat" xml:space="preserve">
<value>COM Exception while loading certificate: HResult: {0} Message: {1}</value>
</data>
<data name="InvokeStorageSyncFileRecallActionMessage" xml:space="preserve">
<value>Invoke Storage Sync File Recall</value>
</data>
<data name="MissingAfsAgentInstallerPathErrorMessage" xml:space="preserve">
<value>We cannot find the Storage Sync agent installed in the system. The given registry AfsAgentInstallerPath cannot be found.</value>
</data>
Expand Down

This file was deleted.

3 changes: 0 additions & 3 deletions src/StorageSync/StorageSync/help/Az.StorageSync.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ This command can be used to manually initiate the detection of namespaces change
### [Invoke-AzStorageSyncCompatibilityCheck](Invoke-AzStorageSyncCompatibilityCheck.md)
Checks for potential compatibility issues between your system and Azure File Sync.

### [Invoke-AzStorageSyncFileRecall](Invoke-AzStorageSyncFileRecall.md)
This command recalls all tiered files back to local disk.

### [New-AzStorageSyncCloudEndpoint](New-AzStorageSyncCloudEndpoint.md)
This command creates an Azure File Sync cloud endpoint in a sync group.

Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 58790d2

Please sign in to comment.