diff --git a/bicep/acragentpool.bicep b/bicep/acragentpool.bicep index 2b45b0e65..7fcade9be 100644 --- a/bicep/acragentpool.bicep +++ b/bicep/acragentpool.bicep @@ -2,7 +2,7 @@ param location string = resourceGroup().location param acrName string param acrPoolSubnetId string = '' -resource acr 'Microsoft.ContainerRegistry/registries@2023-01-01-preview' existing = { +resource acr 'Microsoft.ContainerRegistry/registries@2023-07-01' existing = { name: acrName } diff --git a/bicep/aksagentpool.bicep b/bicep/aksagentpool.bicep index e819c50ff..af865c8ed 100644 --- a/bicep/aksagentpool.bicep +++ b/bicep/aksagentpool.bicep @@ -51,11 +51,11 @@ param autoTaintWindows bool = false var taints = autoTaintWindows ? union(nodeTaints, ['sku=Windows:NoSchedule']) : nodeTaints -resource aks 'Microsoft.ContainerService/managedClusters@2023-07-02-preview' existing = { +resource aks 'Microsoft.ContainerService/managedClusters@2023-08-02-preview' existing = { name: AksName } -resource userNodepool 'Microsoft.ContainerService/managedClusters/agentPools@2021-10-01' = { +resource userNodepool 'Microsoft.ContainerService/managedClusters/agentPools@2023-08-02-preview' = { parent: aks name: PoolName properties: { diff --git a/bicep/bicepconfig.json b/bicep/bicepconfig.json index eac32d5e8..221495e72 100644 --- a/bicep/bicepconfig.json +++ b/bicep/bicepconfig.json @@ -5,6 +5,12 @@ "enabled": true, "verbose": false, "rules": { + "prefer-unquoted-property-names" : { + "level": "warning" + }, + "use-parent-property" : { + "level": "warning" + }, "use-recent-api-versions" : { "level": "warning" }, diff --git a/bicep/main.bicep b/bicep/main.bicep index ebd4c731b..f72043022 100644 --- a/bicep/main.bicep +++ b/bicep/main.bicep @@ -410,7 +410,7 @@ param acrUntaggedRetentionPolicy int = 30 var acrName = 'cr${replace(resourceName, '-', '')}${uniqueString(resourceGroup().id, resourceName)}' -resource acr 'Microsoft.ContainerRegistry/registries@2023-01-01-preview' = if (!empty(registries_sku)) { +resource acr 'Microsoft.ContainerRegistry/registries@2023-07-01' = if (!empty(registries_sku)) { name: acrName location: location sku: { @@ -1790,7 +1790,8 @@ var telemetryId = '3c1e2fc6-1c4b-44f9-8694-25d00ae30a3a-${location}' |__| |_______||_______||_______||__| |__| |_______| |__| | _| `._____| |__| |_______/ |_______|| _| |_______| \______/ |__| |__| |__| |_______||__| \__| |__| */ // Telemetry Deployment -resource telemetrydeployment 'Microsoft.Resources/deployments@2022-09-01' = if (enableTelemetry) { +#disable-next-line no-deployments-resources +resource telemetrydeployment 'Microsoft.Resources/deployments@2023-07-01' = if (enableTelemetry) { name: telemetryId properties: { mode: 'Incremental' diff --git a/bicep/network.bicep b/bicep/network.bicep index cfe83512b..c2b3f2234 100644 --- a/bicep/network.bicep +++ b/bicep/network.bicep @@ -279,7 +279,7 @@ resource privateDnsAcrLink 'Microsoft.Network/privateDnsZones/virtualNetworkLink } } -resource privateDnsAcrZoneGroup 'Microsoft.Network/privateEndpoints/privateDnsZoneGroups@2021-08-01' = if (!empty(privateLinkAcrId)) { +resource privateDnsAcrZoneGroup 'Microsoft.Network/privateEndpoints/privateDnsZoneGroups@2023-04-01' = if (!empty(privateLinkAcrId)) { parent: privateLinkAcr name: 'default' properties: { @@ -337,7 +337,7 @@ resource privateDnsAkvLink 'Microsoft.Network/privateDnsZones/virtualNetworkLink } } -resource privateDnsAkvZoneGroup 'Microsoft.Network/privateEndpoints/privateDnsZoneGroups@2021-08-01' = if (!empty(privateLinkAkvId)) { +resource privateDnsAkvZoneGroup 'Microsoft.Network/privateEndpoints/privateDnsZoneGroups@2023-04-01' = if (!empty(privateLinkAkvId)) { parent: privateLinkAkv name: 'default' properties: { @@ -405,7 +405,7 @@ resource log 'Microsoft.OperationalInsights/workspaces@2022-10-01' existing = if param CreateNsgFlowLogs bool = false var flowLogStorageName = take(replace(toLower('stflow${resourceName}${uniqueString(resourceGroup().id, resourceName)}'),'-',''),24) -resource flowLogStor 'Microsoft.Storage/storageAccounts@2022-09-01' = if(CreateNsgFlowLogs && networkSecurityGroups) { +resource flowLogStor 'Microsoft.Storage/storageAccounts@2023-01-01' = if(CreateNsgFlowLogs && networkSecurityGroups) { name: flowLogStorageName kind: 'StorageV2' sku: {