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: {