From db65998792b27f5abc489eed9ac36e1db2bcd55e Mon Sep 17 00:00:00 2001 From: Hocine Hacherouf Date: Sun, 15 Oct 2023 09:15:14 +0200 Subject: [PATCH] Update Microsoft.Devices/provisioningServices api version on bicep templates #2585 --- templates/azure/app_service.bicep | 2 +- templates/azure/dps.bicep | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/azure/app_service.bicep b/templates/azure/app_service.bicep index c9593b89d..5d3d786bc 100644 --- a/templates/azure/app_service.bicep +++ b/templates/azure/app_service.bicep @@ -120,7 +120,7 @@ resource site 'Microsoft.Web/sites@2022-03-01' = { { name: 'Azure__IoTDPS__ConnectionString' type: 'Custom' - connectionString: 'HostName=${dpsName}.azure-devices-provisioning.net;SharedAccessKeyName=${dpsOwnerPolicyName};SharedAccessKey=${listKeys(resourceId('Microsoft.Devices/provisioningServices/keys', dpsName, dpsOwnerPolicyName), '2021-10-15').primaryKey}' + connectionString: 'HostName=${dpsName}.azure-devices-provisioning.net;SharedAccessKeyName=${dpsOwnerPolicyName};SharedAccessKey=${listKeys(resourceId('Microsoft.Devices/provisioningServices/keys', dpsName, dpsOwnerPolicyName), '2022-12-12').primaryKey}' } { name: 'Azure__StorageAccount__ConnectionString' diff --git a/templates/azure/dps.bicep b/templates/azure/dps.bicep index a9da552ff..dfe6f76ef 100644 --- a/templates/azure/dps.bicep +++ b/templates/azure/dps.bicep @@ -10,7 +10,7 @@ param iotHubName string @description('IoTHub owner policy name.') param iotHubOwnerPolicyName string -resource dps 'Microsoft.Devices/provisioningServices@2021-10-15' = { +resource dps 'Microsoft.Devices/provisioningServices@2022-12-12' = { name: dpsName location: location sku: {