Skip to content

Instantly share code, notes, and snippets.

@JanneMattila
Created April 26, 2019 11:35
Show Gist options
  • Save JanneMattila/d97cecf42c3901ac8e47be078147bfc9 to your computer and use it in GitHub Desktop.
Save JanneMattila/d97cecf42c3901ac8e47be078147bfc9 to your computer and use it in GitHub Desktop.
Azure Front Door Service
# .\deploy.ps1
Not executing inside Azure DevOps Release Management.
Make sure you have done "Login-AzAccount" and
"Select-AzSubscription -SubscriptionName name"
so that script continues to work correctly for you.
WARNING: Resource group 'frontdoor-local-rg' doesn't exist and it will be created.
VERBOSE: Performing the operation "Replacing resource group ..." on target "frontdoor-local-rg".
VERBOSE: 2:32:06 PM - Created resource group 'frontdoor-local-rg' in location 'northeurope'
ResourceGroupName : frontdoor-local-rg
Location : northeurope
ProvisioningState : Succeeded
Tags :
ResourceId : /subscriptions/16d66558-8ba3-40e3-a757-2caa6380d189/resourceGroups/frontdoor-local-rg
VERBOSE: Performing the operation "Creating Deployment" on target "frontdoor-local-rg".
VERBOSE: 2:32:09 PM - Template is valid.
VERBOSE: 2:32:13 PM - Create template deployment 'Local-2019-04-26-14-32-02'
VERBOSE: 2:32:13 PM - Checking deployment status in 5 seconds
VERBOSE: 2:32:18 PM - Checking deployment status in 5 seconds
VERBOSE: 2:32:23 PM - Resource Microsoft.Web/serverfarms 'contosohqlocalAppServicePlan2' provisioning status is succeeded
VERBOSE: 2:32:23 PM - Resource Microsoft.Web/serverfarms 'contosohqlocalAppServicePlan1' provisioning status is succeeded
VERBOSE: 2:32:23 PM - Checking deployment status in 5 seconds
VERBOSE: 2:32:29 PM - Checking deployment status in 5 seconds
VERBOSE: 2:32:34 PM - Checking deployment status in 5 seconds
VERBOSE: 2:32:39 PM - Resource Microsoft.Web/sites 'contosohqlocal1eu22zy6pt3qxu' provisioning status is succeeded
VERBOSE: 2:32:40 PM - Checking deployment status in 5 seconds
VERBOSE: 2:32:45 PM - Resource Microsoft.Web/sites/config 'contosohqlocal2eu22zy6pt3qxu/appsettings' provisioning status is succeeded
VERBOSE: 2:32:45 PM - Resource Microsoft.Web/sites 'contosohqlocal2eu22zy6pt3qxu' provisioning status is succeeded
VERBOSE: 2:32:45 PM - Resource Microsoft.Web/sites/config 'contosohqlocal1eu22zy6pt3qxu/appsettings' provisioning status is succeeded
VERBOSE: 2:32:45 PM - Checking deployment status in 5 seconds
VERBOSE: 2:32:50 PM - Resource Microsoft.Network/frontDoors 'contosohqlocal' provisioning status is running
VERBOSE: 2:32:50 PM - Checking deployment status in 8 seconds
VERBOSE: 2:32:59 PM - Checking deployment status in 16 seconds
VERBOSE: 2:33:15 PM - Checking deployment status in 5 seconds
VERBOSE: 2:33:20 PM - Resource Microsoft.Network/frontDoors 'contosohqlocal' provisioning status is succeeded
ResourceGroupName : frontdoor-local-rg
OnErrorDeployment :
DeploymentName : Local-2019-04-26-14-32-02
CorrelationId : c2bc0fe8-afaa-45bb-96be-11ae9eeeaeba
ProvisioningState : Succeeded
Timestamp : 4/26/2019 11:33:15 AM
Mode : Complete
TemplateLink :
TemplateLinkString :
DeploymentDebugLogLevel :
Parameters : {[frontDoorName, Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.DeploymentVariable], [appServicePlanSkuName,
Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.DeploymentVariable], [appServicePlanInstances,
Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.DeploymentVariable], [location1,
Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.DeploymentVariable]...}
ParametersString :
Name Type Value
========================= ========================= ==========
frontDoorName String contosohqlocal
appServicePlanSkuName String F1
appServicePlanInstances Int 1
location1 String North Europe
location2 String West Europe
Outputs : {[webAppName1, Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.DeploymentVariable], [webAppUri1,
Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.DeploymentVariable], [webAppName2,
Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.DeploymentVariable], [webAppUri2,
Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.DeploymentVariable]}
OutputsString :
Name Type Value
=============== ========================= ==========
webAppName1 String contosohqlocal1eu22zy6pt3qxu
webAppUri1 String http://contosohqlocal1eu22zy6pt3qxu.azurewebsites.net
webAppName2 String contosohqlocal2eu22zy6pt3qxu
webAppUri2 String http://contosohqlocal2eu22zy6pt3qxu.azurewebsites.net
##vso[task.setvariable variable=Custom.WebAppName1;]contosohqlocal1eu22zy6pt3qxu
##vso[task.setvariable variable=Custom.WebAppUri1;]http://contosohqlocal1eu22zy6pt3qxu.azurewebsites.net
##vso[task.setvariable variable=Custom.WebAppName2;]contosohqlocal2eu22zy6pt3qxu
##vso[task.setvariable variable=Custom.WebAppUri2;]http://contosohqlocal2eu22zy6pt3qxu.azurewebsites.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment