Minor improvements
1. Changed Resource Group and Hosted Service Naming 2. Updated custom script extension xml data.
This commit is contained in:
Родитель
d011683252
Коммит
41440a8bec
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче