Last active
December 14, 2018 16:39
-
-
Save felpasl/6e7b1428185d5414446cad9373d0527c to your computer and use it in GitHub Desktop.
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
#Caso esteja executando no portal o proximo comando não se faz necessário | |
az login | |
#Lista as contas ativas | |
$subName = '<<subscriptionId/Name>>' | |
$siteName = 'AppSrvWordPressTest' | |
$RgName = 'RGWordPressTest' | |
$AppSrvName = 'AppSrvWordPressTest' | |
az account list | |
#Seleciona a Subscrição | |
az account set -s $subName | |
#Criando o Resource Group | |
az group create --location eastus2 --name $RgName | |
#Criando o App Service Plan | |
az appservice plan create --name $AppSrvName --sku B1 --is-linux --location eastus2 --resource-group $RgName | |
#Criando o Web App | |
az webapp create --name $siteName --plan $AppSrvName --deployment-container-image-name appsvcorg/wordpress-alpine-php:0.61 --resource-group $RgName | |
#Após a criação o container começa a ser construído e os logs podem ser acompanhados pelo comando: | |
az webapp log tail --name $siteName --resource-group $RgName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment