Skip to content

Commit

Permalink
Update to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr committed Oct 27, 2023
1 parent 566568f commit c8986c6
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
32 changes: 28 additions & 4 deletions modules/compute/virtual-machine/.test/linux/main.test.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,34 @@ module testDeployment '../../main.bicep' = {
]
enableAutomaticUpdates: true
patchMode: 'AutomaticByPlatform'
diagnosticStorageAccountId: diagnosticDependencies.outputs.storageAccountResourceId
diagnosticWorkspaceId: diagnosticDependencies.outputs.logAnalyticsWorkspaceResourceId
diagnosticEventHubAuthorizationRuleId: diagnosticDependencies.outputs.eventHubAuthorizationRuleId
diagnosticEventHubName: diagnosticDependencies.outputs.eventHubNamespaceEventHubName
nicDiagnosticSettings: [
{
name: 'customSetting'
metricCategories: [
{
category: 'AllMetrics'
}
]
eventHubName: diagnosticDependencies.outputs.eventHubNamespaceEventHubName
eventHubAuthorizationRuleResourceId: diagnosticDependencies.outputs.eventHubAuthorizationRuleId
storageAccountResourceId: diagnosticDependencies.outputs.storageAccountResourceId
workspaceResourceId: diagnosticDependencies.outputs.logAnalyticsWorkspaceResourceId
}
]
publicIpDiagnosticSettings: [
{
name: 'customSetting'
metricCategories: [
{
category: 'AllMetrics'
}
]
eventHubName: diagnosticDependencies.outputs.eventHubNamespaceEventHubName
eventHubAuthorizationRuleResourceId: diagnosticDependencies.outputs.eventHubAuthorizationRuleId
storageAccountResourceId: diagnosticDependencies.outputs.storageAccountResourceId
workspaceResourceId: diagnosticDependencies.outputs.logAnalyticsWorkspaceResourceId
}
]
disablePasswordAuthentication: true
encryptionAtHost: false
extensionCustomScriptConfig: {
Expand Down
4 changes: 2 additions & 2 deletions modules/compute/virtual-machine/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ param extensionCustomScriptProtectedSetting object = {}
param location string = resourceGroup().location

@description('Optional. The diagnostic settings of the Public IP.')
param pidDiagnosticSettings diagnosticSettingType
param publicIpDiagnosticSettings diagnosticSettingType

@description('Optional. The diagnostic settings of the Network Interface.')
param nicDiagnosticSettings diagnosticSettingType
Expand Down Expand Up @@ -370,7 +370,7 @@ module vm_nic 'modules/nested_networkInterface.bicep' = [for (nicConfiguration,
ipConfigurations: nicConfiguration.ipConfigurations
lock: lock
nicDiagnosticSettings: nicDiagnosticSettings
pidDiagnosticSettings: pidDiagnosticSettings
publicIpDiagnosticSettings: publicIpDiagnosticSettings
roleAssignments: contains(nicConfiguration, 'roleAssignments') ? (!empty(nicConfiguration.roleAssignments) ? nicConfiguration.roleAssignments : []) : []
}
}]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ param ipConfigurations array
param lock lockType

@description('Optional. The diagnostic settings of the Public IP.')
param pidDiagnosticSettings diagnosticSettingType
param publicIpDiagnosticSettings diagnosticSettingType

@description('Optional. The diagnostic settings of the Network Interface.')
param nicDiagnosticSettings diagnosticSettingType
Expand All @@ -27,7 +27,7 @@ module networkInterface_publicIPAddresses '../../../network/public-ip-address/ma
name: '${deployment().name}-publicIP-${index}'
params: {
name: '${virtualMachineName}${ipConfiguration.pipconfiguration.publicIpNameSuffix}'
diagnosticSettings: pidDiagnosticSettings
diagnosticSettings: publicIpDiagnosticSettings
location: location
lock: lock
publicIPAddressVersion: contains(ipConfiguration, 'publicIPAddressVersion') ? ipConfiguration.publicIPAddressVersion : 'IPv4'
Expand Down

0 comments on commit c8986c6

Please sign in to comment.