forked from Azure/azure-docs-powershell-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
9 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
app-service/deploy-github-continuous/deploy-github-continuous.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,22 @@ | ||
$gitrepo="<Replace with your GitHub repo URL>" | ||
# Replace the following URL with a public GitHub repo URL | ||
$gitrepo="https://github.com/Azure-Samples/app-service-web-dotnet-get-started.git" | ||
$webappname="mywebapp$(Get-Random)" | ||
$location="West Europe" | ||
|
||
# Create a resource group. | ||
New-AzureRmResourceGroup -Name $webappname -Location $location | ||
|
||
# Create an App Service plan in Free tier. | ||
New-AzureRmAppServicePlan -Name $webappname -Location $location ` | ||
-ResourceGroupName $webappname -Tier Free | ||
New-AzureRmAppServicePlan -Name $webappname -Location $location -ResourceGroupName $webappname -Tier Free | ||
|
||
# Create a web app. | ||
New-AzureRmWebApp -Name $webappname -Location $location -AppServicePlan $webappname ` | ||
-ResourceGroupName $webappname | ||
New-AzureRmWebApp -Name $webappname -Location $location -AppServicePlan $webappname -ResourceGroupName $webappname | ||
|
||
# Configure GitHub deployment from your GitHub repo and deploy once. | ||
$PropertiesObject = @{ | ||
repoUrl = "$gitrepo"; | ||
branch = "master"; | ||
isManualIntegration = "true"; | ||
} | ||
Set-AzureRmResource -PropertyObject $PropertiesObject -ResourceGroupName $webappname ` | ||
-ResourceType Microsoft.Web/sites/sourcecontrols -ResourceName $webappname/web ` | ||
-ApiVersion 2015-08-01 -Force | ||
Set-AzureRmResource -PropertyObject $PropertiesObject -ResourceGroupName $webappname -ResourceType Microsoft.Web/sites/sourcecontrols -ResourceName $webappname/web -ApiVersion 2015-08-01 -Force | ||
|