This repository has been archived by the owner on Jul 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
packer.azure.props
61 lines (57 loc) · 2.24 KB
/
packer.azure.props
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets="Run"
ToolsVersion="14.0"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
**** PREPARE - GENERATE FILES ****
-->
<PropertyGroup
Condition=" '$(ShouldCreateAzureImage)' == 'true' ">
</PropertyGroup>
<ItemGroup
Condition=" '$(ShouldCreateAzureImage)' == 'true' ">
<TemplateTokens Include="ImageName">
<ReplacementValue>$(LinuxImage.Replace(' ', '-').Replace('.', '-').ToLower())</ReplacementValue>
</TemplateTokens>
<!-- FOR CHEF -->
<TemplateTokens
Include="ProvisioningFromCloudInit">
<ReplacementValue>true</ReplacementValue>
</TemplateTokens>
<!-- FOR PACKER -->
<TemplateTokens
Include="AzureBaseImageName">
<ReplacementValue>ubuntu-$(VersionLinuxBaseResource)</ReplacementValue>
</TemplateTokens>
<TemplateTokens
Include="AzureBaseImageResourceGroup">
<ReplacementValue>$(AzureImageResourceGroup)</ReplacementValue>
</TemplateTokens>
<TemplateTokens
Include="AzureClientCertPathEscaped">
<ReplacementValue>$(AzureClientCertPath.Replace('\', '/'))</ReplacementValue>
</TemplateTokens>
<TemplateTokens
Include="AzureClientId">
<ReplacementValue>$(AzureClientId)</ReplacementValue>
</TemplateTokens>
<TemplateTokens
Include="AzureLocation">
<ReplacementValue>$(AzureLocation)</ReplacementValue>
</TemplateTokens>
<TemplateTokens
Include="AzureImageResourceGroup">
<ReplacementValue>$(AzureImageResourceGroup)</ReplacementValue>
</TemplateTokens>
<TemplateTokens
Include="AzureSubscriptionId">
<ReplacementValue>$(AzureSubscriptionId)</ReplacementValue>
</TemplateTokens>
<TemplateTokens
Condition=" '$(IsTest)' == 'true' "
Include="AzureTestImageResourceGroup">
<ReplacementValue>$(AzureTestImageResourceGroup)</ReplacementValue>
</TemplateTokens>
</ItemGroup>
</Project>