Skip to content

Commit bf2bf42

Browse files
author
dragonfly91
committed
Excluding Enable-Reregister functionality
1 parent fcffeff commit bf2bf42

File tree

5 files changed

+1
-173
lines changed

5 files changed

+1
-173
lines changed

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupContainerTests.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ function Test-AzureBackupMarsContainerScenario
4040
Assert-AreEqual $container.Name $ContainerName;
4141
Assert-AreEqual $container.ResourceGroupName $vault.ResourceGroupName;
4242
Assert-AreEqual $container.ResourceName $vault.Name;
43-
Assert-AreEqual $container.Status $ContainerStatus;
44-
45-
#Enable-AzureBackupContainerReregistration -Container $container
43+
Assert-AreEqual $container.Status $ContainerStatus;
4644

4745
Unregister-AzureBackupContainer -Container $container -Force
4846

src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/ContainerAdapter.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,6 @@ public IEnumerable<MarsContainerResponse> ListMachineContainers(string friendlyN
5454
return listResponse.ListMarsContainerResponse.Value;
5555
}
5656

57-
/// <summary>
58-
/// Enable container reregistration
59-
/// </summary>
60-
/// <param name="containerId"></param>
61-
/// <returns></returns>
62-
public void EnableMachineContainerReregistration(long containerId)
63-
{
64-
AzureBackupVaultClient.Container.EnableMarsContainerReregistration(containerId.ToString(), GetCustomRequestHeaders());
65-
}
66-
6757
/// <summary>
6858
/// UnRegister container
6959
/// </summary>

src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/EnableAzureBackupContainerReregistration.cs

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@
123123
<Compile Include="AzureBackupCmdletBase.cs" />
124124
<Compile Include="AzureBackupCmdletHelpMessage.cs" />
125125
<Compile Include="Cmdlets\Container\GetAzureBackupContainer.cs" />
126-
<Compile Include="Cmdlets\Container\EnableAzureBackupContainerReregistration.cs" />
127126
<Compile Include="Cmdlets\Container\UnregisterAzureBackupContainer.cs" />
128127
<Compile Include="Cmdlets\VaultCredentials\GetAzureBackupVaultCredentials.cs" />
129128
<Compile Include="Cmdlets\Vault\RemoveAzureBackupVault.cs" />

src/ResourceManager/AzureBackup/Commands.AzureBackup/Microsoft.Azure.Commands.AzureBackup.dll-help.xml

Lines changed: 0 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?><helpItems schema="maml">
22
<command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
3-
<!--Generated by PS Cmdlet Help Editor-->
4-
<command:details>
5-
<command:name>Enable-AzureBackupContainerReregistration</command:name>
6-
<maml:description>
7-
<maml:para>Allow re-registration of the server to connect the server back to the vault and continue the backup points chain.</maml:para>
8-
</maml:description>
9-
<maml:copyright>
10-
<maml:para />
11-
</maml:copyright>
12-
<command:verb>Enable</command:verb>
13-
<command:noun>AzureBackupContainerReregistration</command:noun>
14-
<dev:version />
15-
</command:details>
16-
<maml:description>
17-
<maml:para>When a server is destroyed, all its cloud backup points remain in the Azure Backup vault. If the server is rebuilt and given the same FQDN, it is possible to connect it back to the same vault. This will allow the server to continue taking backups and adding new backup points to the existing set - essentially continuing where it was left off in the backup chain.</maml:para>
18-
<maml:para>To make this connection, the AzureBackupContainer has to be primed for &quot;re-registration&quot;. Without this step, you can lose all the existing data as a part of the registration process. The commandlet tells the service that the next time the container is registered, it should continue the backup chain.</maml:para>
19-
</maml:description>
20-
<command:syntax>
21-
<command:syntaxItem>
22-
<maml:name>Enable-AzureBackupContainerReregistration</maml:name>
23-
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByValue)" position="0">
24-
<maml:name>Container</maml:name>
25-
<maml:description>
26-
<maml:para>An object referencing the container for which re-registration is being requested</maml:para>
27-
</maml:description>
28-
<command:parameterValue required="true" variableLength="false">AzureBackupContainer</command:parameterValue>
29-
</command:parameter>
30-
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named">
31-
<maml:name>Profile</maml:name>
32-
<maml:description>
33-
<maml:para>Non-mandatory AzureProfile input object</maml:para>
34-
</maml:description>
35-
<command:parameterValue required="true" variableLength="false">AzureProfile</command:parameterValue>
36-
</command:parameter>
37-
</command:syntaxItem>
38-
</command:syntax>
39-
<command:parameters>
40-
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByValue)" position="0">
41-
<maml:name>Container</maml:name>
42-
<maml:description>
43-
<maml:para>An object referencing the container for which re-registration is being requested</maml:para>
44-
</maml:description>
45-
<command:parameterValue required="true" variableLength="false">AzureBackupContainer</command:parameterValue>
46-
<dev:type>
47-
<maml:name>AzureBackupContainer</maml:name>
48-
<maml:uri/>
49-
</dev:type>
50-
<dev:defaultValue></dev:defaultValue>
51-
</command:parameter>
52-
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named">
53-
<maml:name>Profile</maml:name>
54-
<maml:description>
55-
<maml:para>Non-mandatory AzureProfile input object</maml:para>
56-
</maml:description>
57-
<command:parameterValue required="true" variableLength="false">AzureProfile</command:parameterValue>
58-
<dev:type>
59-
<maml:name>AzureProfile</maml:name>
60-
<maml:uri/>
61-
</dev:type>
62-
<dev:defaultValue></dev:defaultValue>
63-
</command:parameter>
64-
</command:parameters>
65-
<command:inputTypes>
66-
<command:inputType>
67-
<dev:type>
68-
<maml:name>AzureBackupContainer</maml:name>
69-
<maml:uri></maml:uri>
70-
<maml:description/>
71-
</dev:type>
72-
<maml:description>
73-
<maml:para>This section details out the type of the objects that you can pipe to the cmdlet.
74-
</maml:para>
75-
</maml:description>
76-
</command:inputType>
77-
</command:inputTypes>
78-
<command:returnValues>
79-
<command:returnValue>
80-
<dev:type>
81-
<maml:name>None</maml:name>
82-
<maml:uri></maml:uri>
83-
<maml:description/>
84-
</dev:type>
85-
<maml:description>
86-
<maml:para>This section details out the type of the objects that the cmdlet emits.</maml:para>
87-
</maml:description>
88-
</command:returnValue>
89-
</command:returnValues>
90-
<command:terminatingErrors></command:terminatingErrors>
91-
<command:nonTerminatingErrors></command:nonTerminatingErrors>
92-
<maml:alertSet>
93-
<maml:title></maml:title>
94-
<maml:alert>
95-
<maml:para>None</maml:para>
96-
</maml:alert>
97-
</maml:alertSet>
98-
<command:examples>
99-
</command:examples>
100-
<maml:relatedLinks>
101-
</maml:relatedLinks>
102-
</command:command>
103-
<command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
1043
<!--Generated by PS Cmdlet Help Editor-->
1054
<command:details>
1065
<command:name>Get-AzureBackupContainer</command:name>

0 commit comments

Comments
 (0)