Skip to content

Commit 87acd6b

Browse files
Updating test resources (Azure#50193)
* Updating test resources * deid API version --------- Co-authored-by: Josiah Vinson <[email protected]>
1 parent 4b0f7e3 commit 87acd6b

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

sdk/healthdataaiservices/test-resources-post.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $storageAccountName = $DeploymentOutputs['HEALTHDATAAISERVICES_STORAGE_ACCOUNT_N
2121
$containerName = $DeploymentOutputs['HEALTHDATAAISERVICES_STORAGE_CONTAINER_NAME']
2222

2323
# Set the local folder path to upload
24-
$localFolderPath = "Azure.Health.Deidentification\tests\data\example_patient_1"
24+
$localFolderPath = "$PSScriptRoot\Azure.Health.Deidentification\tests\data\example_patient_1"
2525

2626
# Check if the connection string is present
2727
if ([string]::IsNullOrWhiteSpace($storageAccountName)) {

sdk/healthdataaiservices/test-resources.bicep

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ var storageBlobDataContributor = 'ba92f5b4-2d11-453d-a403-e96b0029c9fe'
2626

2727
var blobStorageName = take(toLower(replace('blob-${baseName}', '-', '')), 24)
2828
var blobContainerName = 'container-${baseName}'
29-
30-
var maxBaseNameLength = 24 - 5 - length(deidLocationShort) // 5 characters for 'deid-' and 1 for '-'
31-
var truncatedBaseName = take(baseName, maxBaseNameLength)
32-
var deidServiceName = 'deid-${truncatedBaseName}-${deidLocationShort}'
29+
var deidServiceName = take('deid-${deidLocationShort}-${baseName}', 24)
3330

3431
resource storageAccount 'Microsoft.Storage/storageAccounts@2022-05-01' = {
3532
name: blobStorageName
@@ -190,7 +187,7 @@ resource storageRoleAssignment 'Microsoft.Authorization/roleAssignments@2020-04-
190187
scope: storageAccount
191188
}
192189

193-
resource testDeidService 'microsoft.healthdataaiservices/deidservices@2024-02-28-preview' = {
190+
resource testDeidService 'microsoft.healthdataaiservices/deidservices@2024-09-20' = {
194191
name: deidServiceName
195192
location: deidLocation
196193
identity: {

0 commit comments

Comments
 (0)