Skip to content

Commit 9be57ca

Browse files
Copilotpsah434
andcommitted
Change offer check from '*-preview' to '*preview' per feedback
Co-authored-by: psah434 <114955590+psah434@users.noreply.github.com>
1 parent 4ea0d21 commit 9be57ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arm-ttk/testcases/deploymentTemplate/Virtual-Machines-Should-Not-Be-Preview.test.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ foreach ($sp in $storageProfiles) {
2626
if ($storageProfile.imageReference -like '*preview' -or `
2727
$storageProfile.imageReference.version -like '*preview' -or `
2828
$storageProfile.imageReference.sku -like '*preview' -or `
29-
$storageProfile.imageReference.offer -like '*-preview') {
29+
$storageProfile.imageReference.offer -like '*preview') {
3030
Write-Error "StorageProfile for resource '$($sp.ParentObject.Name)' must not use a preview version" -TargetObject $sp -ErrorId VM.Using.Preview.Image
3131
}
3232
}

0 commit comments

Comments
 (0)