From 7fd3d504a5d71d8c0f66f3455eb0dc198a429d11 Mon Sep 17 00:00:00 2001 From: Margarita Sanz Date: Wed, 2 Feb 2022 18:51:01 +0100 Subject: [PATCH 1/2] initial try --- arm/Microsoft.Compute/galleries/images/deploy.bicep | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arm/Microsoft.Compute/galleries/images/deploy.bicep b/arm/Microsoft.Compute/galleries/images/deploy.bicep index 1fa86f131e..3e1c754c40 100644 --- a/arm/Microsoft.Compute/galleries/images/deploy.bicep +++ b/arm/Microsoft.Compute/galleries/images/deploy.bicep @@ -132,9 +132,9 @@ resource image 'Microsoft.Compute/galleries/images@2020-09-30' = { privacyStatementUri: privacyStatementUri releaseNoteUri: releaseNoteUri purchasePlan: { - product: productName - name: planName - publisher: planPublisherName + product: empty(productName) ? null : productName + name: empty(planName) ? null : planName + publisher: empty(planPublisherName) ? null : planPublisherName } endOfLifeDate: endOfLife disallowed: { From 8d3e5ff70ec0a74b0c8bed63038e57728ebecbc1 Mon Sep 17 00:00:00 2001 From: Margarita Sanz Date: Thu, 3 Feb 2022 08:05:54 +0100 Subject: [PATCH 2/2] updated order --- arm/Microsoft.Compute/galleries/images/deploy.bicep | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arm/Microsoft.Compute/galleries/images/deploy.bicep b/arm/Microsoft.Compute/galleries/images/deploy.bicep index 3e1c754c40..e5bfdb09f4 100644 --- a/arm/Microsoft.Compute/galleries/images/deploy.bicep +++ b/arm/Microsoft.Compute/galleries/images/deploy.bicep @@ -132,9 +132,9 @@ resource image 'Microsoft.Compute/galleries/images@2020-09-30' = { privacyStatementUri: privacyStatementUri releaseNoteUri: releaseNoteUri purchasePlan: { - product: empty(productName) ? null : productName - name: empty(planName) ? null : planName - publisher: empty(planPublisherName) ? null : planPublisherName + product: !empty(productName) ? productName : null + name: !empty(planName) ? planName : null + publisher: !empty(planPublisherName) ? planPublisherName : null } endOfLifeDate: endOfLife disallowed: {