Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Az.StorageSync] Deprecate Invoke-AzStorageSyncFileRecall cmdlet #14906

Merged
merged 7 commits into from
May 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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