* updated parameters
* updated dlzname values used * updated outputs
This commit is contained in:
Родитель
0e1bdd9aaf
Коммит
139964114d
|
@ -1,47 +1,47 @@
|
|||
[CmdletBinding()]
|
||||
Param(
|
||||
[Parameter(Mandatory)]
|
||||
[Parameter(Mandatory=$true)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$ConfigurationFilePath,
|
||||
|
||||
[Parameter(Mandatory)]
|
||||
[Parameter(Mandatory=$true)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$GlobalDnsResourceGroupId,
|
||||
|
||||
[Parameter(Mandatory)]
|
||||
[Parameter(Mandatory=$true)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$DataLandingZoneSubscriptionId,
|
||||
|
||||
[Parameter(Mandatory)]
|
||||
[Parameter(Mandatory=$true)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$DataLandingZoneName,
|
||||
|
||||
[Parameter(Mandatory)]
|
||||
[Parameter(Mandatory=$true)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$Location,
|
||||
|
||||
[Parameter(Mandatory)]
|
||||
[Parameter(Mandatory=$true)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$SubnetId,
|
||||
|
||||
[Parameter(Mandatory)]
|
||||
[Parameter(Mandatory=$true)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$SynapseStorageAccountName,
|
||||
|
||||
[Parameter(Mandatory)]
|
||||
[Parameter(Mandatory=$true)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$SynapseStorageAccountFileSystemName,
|
||||
|
||||
[Parameter(Mandatory=$false)]
|
||||
[Switch]
|
||||
[string]
|
||||
$AzureResourceManagerConnectionName
|
||||
)
|
||||
|
||||
|
@ -68,6 +68,10 @@ function Remove-SpecialCharsAndWhitespaces($InputString) {
|
|||
Write-Host "Replacing Special Characters"
|
||||
$DataLandingZoneName = Remove-SpecialCharsAndWhitespaces -InputString $DataLandingZoneName
|
||||
|
||||
# Reduce Length of DataLandingZoneName
|
||||
Write-Host "Reduce Length of DataLandingZoneName to max 11 Characters"
|
||||
$DataLandingZoneName = -join $DataLandingZoneName[0..11]
|
||||
|
||||
# Loading Configuration File for Parameter Updates
|
||||
Write-Host "Loading Configuration File for Parameter Updates"
|
||||
$configs = Get-Content -Path $ConfigurationFilePath -Raw | Out-String | ConvertFrom-Json
|
||||
|
@ -129,4 +133,3 @@ foreach ($config in $configs) {
|
|||
# Set output
|
||||
Write-Output "Setting output"
|
||||
Write-Output "::set-output name=landingZoneName::${DataLandingZoneName}"
|
||||
Write-Output "::set-output name=landingZoneSubscriptionId::${DataLandingZoneSubscriptionId}"
|
||||
|
|
Загрузка…
Ссылка в новой задаче