Skip to content

Instantly share code, notes, and snippets.

@felpasl
Last active December 14, 2018 16:39
Show Gist options
  • Save felpasl/6e7b1428185d5414446cad9373d0527c to your computer and use it in GitHub Desktop.
Save felpasl/6e7b1428185d5414446cad9373d0527c to your computer and use it in GitHub Desktop.
#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