You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ResourceManager/Websites/Commands.Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.WebAppBackupRestoreTests/TestRestoreDeletedWebAppToExisting.json
Copy file name to clipboardExpand all lines: src/ResourceManager/Websites/Commands.Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.WebAppBackupRestoreTests/TestRestoreDeletedWebAppToNew.json
// Note, there can be multiple deleted web apps with the same name and resource group. Internally each deleted app has a unique ID.
30
-
[Parameter(Position=0,Mandatory=true,HelpMessage="The deleted Azure Web App.",ValueFromPipeline=true)]
31
-
publicAzureDeletedWebAppInputObject;
34
+
[Parameter(Position=0,ParameterSetName=FromDeletedAppParameterSet,Mandatory=true,HelpMessage="The deleted Azure Web App.",ValueFromPipeline=true)]
35
+
publicPSAzureDeletedWebAppInputObject;
36
+
37
+
[Parameter(Position=0,ParameterSetName=FromDeletedResourceNameParameterSet,Mandatory=true,HelpMessage="The resource group of the deleted Azure Web App.")]
38
+
publicstringResourceGroupName{get;set;}
39
+
40
+
[Parameter(Position=1,ParameterSetName=FromDeletedResourceNameParameterSet,Mandatory=true,HelpMessage="The name of the deleted Azure Web App.")]
41
+
publicstringName{get;set;}
42
+
43
+
[Parameter(Position=2,ParameterSetName=FromDeletedResourceNameParameterSet,Mandatory=false,HelpMessage="The deleted Azure Web App slot.")]
44
+
publicstringSlot{get;set;}
32
45
33
-
[Parameter(Position=1,Mandatory=true,HelpMessage="The resource group containing the new Azure Web App.",ValueFromPipelineByPropertyName=true)]
46
+
[Parameter(Mandatory=false,HelpMessage="The resource group containing the new Azure Web App.")]
34
47
publicstringTargetResourceGroupName{get;set;}
35
48
36
-
[Parameter(Position=2,Mandatory=false,HelpMessage="The name of the new Azure Web App.",ValueFromPipelineByPropertyName=true)]
49
+
[Parameter(Mandatory=false,HelpMessage="The name of the new Azure Web App.")]
37
50
publicstringTargetName{get;set;}
38
51
39
-
[Parameter(Position=3,Mandatory=false,HelpMessage="The name of the new Azure Web App slot.",ValueFromPipelineByPropertyName=true)]
52
+
[Parameter(Mandatory=false,HelpMessage="The name of the new Azure Web App slot.")]
40
53
publicstringTargetSlot{get;set;}
41
54
42
-
[Parameter(Mandatory=false,HelpMessage="The App Service Plan for the new Azure Web App.",ValueFromPipelineByPropertyName=true)]
55
+
[Parameter(Mandatory=false,HelpMessage="The App Service Plan for the new Azure Web App.")]
43
56
publicstringTargetAppServicePlanName{get;set;}
44
57
45
-
[Parameter(Mandatory=false,HelpMessage="Restore the web app's files, but do not restore the settings.",ValueFromPipelineByPropertyName=true)]
58
+
[Parameter(Mandatory=false,HelpMessage="Restore the web app's files, but do not restore the settings.")]
46
59
publicSwitchParameterRestoreContentOnly{get;set;}
47
60
48
-
[Parameter(Mandatory=false,HelpMessage="Do the restore without prompting for confirmation.",ValueFromPipelineByPropertyName=true)]
61
+
[Parameter(Mandatory=false,HelpMessage="Do the restore without prompting for confirmation.")]
49
62
publicSwitchParameterForce{get;set;}
50
63
51
64
[Parameter(Mandatory=false,HelpMessage="Run cmdlet in the background")]
@@ -54,21 +67,16 @@ public class RestoreAzureDeletedWebApp : WebAppBaseClientCmdLet
0 commit comments