1
-
2
- # ----------------------------------------------------------------------------------
3
- #
4
- # Copyright Microsoft Corporation
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
- # ----------------------------------------------------------------------------------
15
-
16
1
<#
17
2
. Synopsis
18
3
Restore a backup.
19
4
. Description
20
5
Restore a backup.
21
6
. Example
22
- PS C:\> {{ Add code here }}
23
-
24
- {{ Add output here }}
25
- . Example
26
- PS C:\> {{ Add code here }}
27
-
28
- {{ Add output here }}
29
-
7
+ To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/azs.backup.admin/restore-azsbackup
30
8
. Inputs
31
- Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20210901 .IRestoreOptions
9
+ Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20180901 .IRestoreOptions
32
10
. Inputs
33
11
Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.IBackupAdminIdentity
34
12
. Outputs
35
13
System.Boolean
36
14
. Notes
37
15
COMPLEX PARAMETER PROPERTIES
38
-
39
16
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
40
17
41
18
INPUTOBJECT <IBackupAdminIdentity>: Identity Parameter
@@ -56,6 +33,13 @@ function Restore-AzsBackup {
56
33
[OutputType ([System.Boolean ])]
57
34
[CmdletBinding (DefaultParameterSetName = ' RestoreExpanded' , PositionalBinding = $false , SupportsShouldProcess , ConfirmImpact = ' Medium' )]
58
35
param (
36
+ [Parameter (ParameterSetName = ' Restore' , Mandatory )]
37
+ [Parameter (ParameterSetName = ' RestoreExpanded' , Mandatory )]
38
+ [Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category (' Path' )]
39
+ [System.String ]
40
+ # Name of the backup.
41
+ ${Name} ,
42
+
59
43
[Parameter (ParameterSetName = ' Restore' )]
60
44
[Parameter (ParameterSetName = ' RestoreExpanded' )]
61
45
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category (' Path' )]
@@ -64,13 +48,6 @@ param(
64
48
# Name of the backup location.
65
49
${Location} ,
66
50
67
- [Parameter (ParameterSetName = ' Restore' , Mandatory )]
68
- [Parameter (ParameterSetName = ' RestoreExpanded' , Mandatory )]
69
- [Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category (' Path' )]
70
- [System.String ]
71
- # Name of the backup.
72
- ${Name} ,
73
-
74
51
[Parameter (ParameterSetName = ' Restore' )]
75
52
[Parameter (ParameterSetName = ' RestoreExpanded' )]
76
53
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category (' Path' )]
99
76
[Parameter (ParameterSetName = ' Restore' , Mandatory )]
100
77
[Parameter (ParameterSetName = ' RestoreViaIdentity' , Mandatory )]
101
78
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category (' Body' )]
102
- [Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20210901 .IRestoreOptions ]
79
+ [Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20180901 .IRestoreOptions ]
103
80
# Properties for restore options.
104
81
# To construct, see NOTES section for RESTOREOPTION properties and create a hash table.
105
82
${RestoreOption} ,
0 commit comments