@@ -22,7 +22,11 @@ Function Get-ISHBootstrapperContextSource
2222 [Parameter (Mandatory = $false , ParameterSetName = " FTP" )]
2323 [switch ]$FTP ,
2424 [Parameter (Mandatory = $false , ParameterSetName = " AWS-S3" )]
25- [switch ]$AWSS3
25+ [switch ]$AWSS3 ,
26+ [Parameter (Mandatory = $false , ParameterSetName = " Azure-FileStorage" )]
27+ [switch ]$AzureFileStorage ,
28+ [Parameter (Mandatory = $false , ParameterSetName = " Azure-BlobStorage" )]
29+ [switch ]$AzureBlobStorage
2630 )
2731 . " $PSScriptRoot \Get-ISHBootstrapperContextValue.ps1"
2832
@@ -86,6 +90,52 @@ Function Get-ISHBootstrapperContextSource
8690 $hash.AntennaHouseLicenseKey = $awsS3Data.AntennaHouseLicenseKey
8791 break
8892 }
93+ ' Azure-FileStorage' {
94+ $azureFileStorageData = Get-ISHBootstrapperContextValue - ValuePath " AzureFileStorage" - DefaultValue $null
95+ if (-not $azureFileStorageData )
96+ {
97+ return
98+ }
99+ $hash.ShareName = $azureFileStorageData.ShareName
100+ if ($azureFileStorageData.StorageAccountName -and $azureFileStorageData.StorageAccountKey )
101+ {
102+ $hash.StorageAccountName = $azureFileStorageData.StorageAccountName
103+ $hash.StorageAccountKey = $azureFileStorageData.StorageAccountKey
104+ }
105+ else
106+ {
107+ $hash.StorageAccountName = $null
108+ $hash.StorageAccountKey = $null
109+ }
110+ $hash.ISHServerFolderPath = $azureFileStorageData.ISHServerFolderPath
111+ $hash.ISHCDFolderPath = $azureFileStorageData.ISHCDFolderPath
112+ $hash.ISHCDFileName = $azureFileStorageData.ISHCDFileName
113+ $hash.AntennaHouseLicensePath = $azureFileStorageData.AntennaHouseLicensePath
114+ break
115+ }
116+ ' Azure-BlobStorage' {
117+ $azureBlobStorageData = Get-ISHBootstrapperContextValue - ValuePath " AzureBlobStorage" - DefaultValue $null
118+ if (-not $azureBlobStorageData )
119+ {
120+ return
121+ }
122+ $hash.ContainerName = $azureBlobStorageData.ContainerName
123+ if ($azureBlobStorageData.StorageAccountName -and $azureBlobStorageData.StorageAccountKey )
124+ {
125+ $hash.StorageAccountName = $azureBlobStorageData.StorageAccountName
126+ $hash.StorageAccountKey = $azureBlobStorageData.StorageAccountKey
127+ }
128+ else
129+ {
130+ $hash.StorageAccountName = $null
131+ $hash.StorageAccountKey = $null
132+ }
133+ $hash.ISHServerFolderPath = $azureBlobStorageData.ISHServerFolderPath
134+ $hash.ISHCDFolderPath = $azureBlobStorageData.ISHCDFolderPath
135+ $hash.ISHCDFileName = $azureBlobStorageData.ISHCDFileName
136+ $hash.AntennaHouseLicensePath = $azureBlobStorageData.AntennaHouseLicensePath
137+ break
138+ }
89139 }
90140
91141 New-Object - TypeName PSObject - Property $hash
0 commit comments