Skip to content

Commit f1602e4

Browse files
author
Samuel Anudeep
committed
Removed AzureProfile dependency, cmdlet rename (Get-AzureRmRecoveryServicesBackupProperty), changelog edits
1 parent 2efbf7f commit f1602e4

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

src/ResourceManager/RecoveryServices/Commands.RecoveryServices.Test/ScenarioTests/RecoveryServicesTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function Test-RecoveryServicesVaultCRUDTests
3737
Assert-NotNull($vault.Type)
3838
}
3939

40-
$vaultBackupProperties = Get-AzureRmRecoveryServicesBackupProperties -Vault $vaultCreationResponse
40+
$vaultBackupProperties = Get-AzureRmRecoveryServicesBackupProperty -Vault $vaultCreationResponse
4141
Assert-NotNull($vaultBackupProperties.BackupStorageRedundancy)
4242

4343
Set-AzureRmRecoveryServicesBackupProperties -Vault $vaultCreationResponse -BackupStorageRedundancy "LocallyRedundant"

src/ResourceManager/RecoveryServices/Commands.RecoveryServices/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21-
* Moved client from Hydra to Swagger
21+
* Underlying client upgrade
22+
* Shouldprocess support in selected cmdlets
2223
* Bug fixes
2324
- Bug 11079283:[Livesite] Powershell Sending AuthType = Invalid to AddResourceCertificate call => fixed; always sends AuthType=ACS
2425

src/ResourceManager/RecoveryServices/Commands.RecoveryServices/Common/PSRecoveryServicesClient.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ public ResourceManagementClient RmClient
5656
}
5757
}
5858

59-
/// Azure profile
60-
/// </summary>
61-
public IAzureProfile Profile { get; set; }
62-
6359
/// <summary>
6460
/// Resource credentials holds vault, cloud service name, vault key and other details.
6561
/// </summary>
@@ -89,7 +85,7 @@ public ResourceManagementClient RmClient
8985
/// required current subscription.
9086
/// </summary>
9187
/// <param name="azureSubscription">Azure Subscription</param>
92-
public PSRecoveryServicesClient(IAzureProfile azureProfile, AzureContext defaultContext)
88+
public PSRecoveryServicesClient(AzureContext defaultContext)
9389
{
9490
System.Configuration.Configuration recoveryServicesConfig = ConfigurationManager.OpenExeConfiguration(System.Reflection.Assembly.GetExecutingAssembly().Location);
9591

src/ResourceManager/RecoveryServices/Commands.RecoveryServices/Common/RecoveryServicesCmdletBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ internal PSRecoveryServicesClient RecoveryServicesClient
4646
{
4747
if (this.recoveryServicesClient == null)
4848
{
49-
this.recoveryServicesClient = new PSRecoveryServicesClient(DefaultProfile, DefaultContext);
49+
this.recoveryServicesClient = new PSRecoveryServicesClient(DefaultContext);
5050
}
5151

5252
return this.recoveryServicesClient;

src/ResourceManager/RecoveryServices/Commands.RecoveryServices/Vault/GetAzureRmRecoveryServicesBackupProperties.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.RecoveryServices
2323
/// <summary>
2424
/// Gets Azure Recovery Services Vault Backup Properties.
2525
/// </summary>
26-
[Cmdlet(VerbsCommon.Get, "AzureRmRecoveryServicesBackupProperties")]
26+
[Cmdlet(VerbsCommon.Get, "AzureRmRecoveryServicesBackupProperty")]
2727
[OutputType(typeof(ASRVaultBackupProperties))]
2828
public class GetAzureRmRecoveryServicesBackupProperties : RecoveryServicesCmdletBase
2929
{

0 commit comments

Comments
 (0)