-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathazure-pipelines.yml
28 lines (23 loc) · 1.11 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
steps:
- task: AzurePowerShell@5
inputs:
ScriptType: 'InlineScript'
Inline: |
$url = "$(Build.Repository.Uri)".Replace("https://", "")
$url = "https://$env:SYSTEM_ACCESSTOKEN@$url"
# Install Azure Blueprint PS Module
Install-Module -Name Az.Blueprint -Verbose -Scope CurrentUser; Update-Help -Force -ErrorAction SilentlyContinuescripts
$b = Get-AzBlueprint -Name 'CAF_Workshop_Landing_Zone_Demo' -SubscriptionId '8b2ef784-0c0d-424c-8a7a-aa1304a0366a' -Version 'v4.8'
Import-AzBlueprintWithArtifact -Name 'CAF_Workshop_Landing_Zone_Demo' -SubscriptionId '8b2ef784-0c0d-424c-8a7a-aa1304a0366a' -InputPath '.\blueprints\CAF_Workshop_Landing_Zone_Demo'
FailOnStandardError: true
azurePowerShellVersion: 'LatestVersion'
- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'