Skip to content

Commit e74fbcd

Browse files
committed
Add Details in documentation
1 parent 66bc609 commit e74fbcd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Websites/Websites/help/Restore-AzDeletedWebApp.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ PS C:\> Restore-AzDeletedWebApp -ResourceGroupName Default-Web-WestUS -Name Cont
4747

4848
Restores the Staging slot of a deleted app named ContosoApp belonging to the resource group Default-Web-WestUS. The web app named ContosoRestore belonging to the resource group Default-Web-EastUS will be overwritten. The deleted web app settings will not be restored.
4949

50+
###Example 3
51+
```powershell
52+
PS C:\> $deletedSite = Get-AzDeletedWebApp -ResourceGroupName Default-Web-WestUS -Name ContosoApp
53+
PS C:\> Restore-AzDeletedWebApp -TargetResourceGroupName Default-Web-EastUS -TargetName ContosoRestore -TargetAppServicePlanName ContosoPlan -InputObject $deletedSite[0]
54+
55+
In case there are 2 deleted apps with same name(ContosoApp), then we get details of both the sites and restore the app named ContosoRestore with the app of our choice by calling restore with InputObject(Deletedsite) details
56+
5057
## PARAMETERS
5158
5259
### -AsJob

0 commit comments

Comments
 (0)