1. Changed Resource Group and Hosted Service Naming
2. Updated custom script extension xml data.
This commit is contained in:
Shital Savekar 2016-12-08 13:49:20 +05:30
Родитель d011683252
Коммит 41440a8bec
3 изменённых файлов: 10 добавлений и 8 удалений

Просмотреть файл

@ -44,15 +44,16 @@
foreach ($RG in $setupTypeData.HostedService )
{
$curtime = Get-Date
$randomNumber = Get-Random -Maximum 999 -Minimum 111 -SetSeed (Get-Random -Maximum 999 -Minimum 111 )
$isServiceDeployed = "False"
$retryDeployment = 0
if ( $RG.Tag -ne $null )
{
$groupName = "ICA-RG-" + $RG.Tag + "-" + $Distro + "-" + $curtime.Month + "-" + $curtime.Day + "-" + $curtime.Hour + "-" + $curtime.Minute + "-" + $curtime.Second
$groupName = "ICA-RG-" + $RG.Tag + "-" + $Distro + "-" + $curtime.Month + "-" + $curtime.Day + "-" + $curtime.Hour + "-" + $curtime.Minute + "-" + $randomNumber
}
else
{
$groupName = "ICA-RG-" + $setupType + "-" + $Distro + "-" + $curtime.Month + "-" + $curtime.Day + "-" + $curtime.Hour + "-" + $curtime.Minute + "-" + $curtime.Second
$groupName = "ICA-RG-" + $setupType + "-" + $Distro + "-" + $curtime.Month + "-" + $curtime.Day + "-" + $curtime.Hour + "-" + $curtime.Minute + "-" + $randomNumber
}
if($isMultiple -eq "True")
{

Просмотреть файл

@ -846,15 +846,16 @@ Function CreateAllDeployments($setupType, $xmlConfig, $Distro, [string]$region =
foreach ($img in $osImage)
{
$curtime = Get-Date
$randomNumber = Get-Random -Maximum 999 -Minimum 111 -SetSeed (Get-Random -Maximum 999 -Minimum 111 )
$isServiceDeployed = "False"
$retryDeployment = 0
if ( $HS.Tag -ne $null )
{
$serviceName = "ICA-HS-" + $HS.Tag + "-" + $Distro + "-" + $curtime.Month + "-" + $curtime.Day + "-" + $curtime.Hour + "-" + $curtime.Minute + "-" + $curtime.Second
$serviceName = "ICA-HS-" + $HS.Tag + "-" + $Distro + "-" + $curtime.Month + "-" + $curtime.Day + "-" + $curtime.Hour + "-" + $curtime.Minute + "-" + $randomNumber
}
else
{
$serviceName = "ICA-HS-" + $setupType + "-" + $Distro + "-" + $curtime.Month + "-" + $curtime.Day + "-" + $curtime.Hour + "-" + $curtime.Minute + "-" + $curtime.Second
$serviceName = "ICA-HS-" + $setupType + "-" + $Distro + "-" + $curtime.Month + "-" + $curtime.Day + "-" + $curtime.Hour + "-" + $curtime.Minute + "-" + $randomNumber
}
if($isMultiple -eq "True")
{

Просмотреть файл

@ -2,14 +2,14 @@
<Extensions>
<Extension>
<Name>CustomScriptTouchCommand</Name>
<OfficialName>CustomScriptForLinux</OfficialName>
<Publisher>Microsoft.OSTCExtensions</Publisher>
<OfficialName>CustomScript</OfficialName>
<Publisher>Microsoft.Azure.Extensions</Publisher>
<PublicConfiguration>
<timestamp>EXECUTE-PS-(Get-Date).ticks</timestamp>
<commandToExecute>touch /var/log/CustomExtensionSuccessful</commandToExecute>
</PublicConfiguration>
<Version>1.*</Version>
<LatestVersion>1.4</LatestVersion>
<Version>2.*</Version>
<LatestVersion>2.0</LatestVersion>
</Extension>
<Extension>
<Name>OsPatching</Name>