Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@ Download-Gateway $uri $gwPath
Install-Gateway $gwPath

Register-Gateway $gatewayKey

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ param IntegrationRuntimeName string = 'ir-${uniqueString(resourceGroup().id)}'
param NodeCount int = 1

@description('SKU Size for the VMs')
param vmSize string = 'Standard_A4_v2'
param vmSize string = 'Standard_D2s_v3'

@description('User name for the virtual machine')
param adminUserName string
Expand Down Expand Up @@ -48,7 +48,7 @@ var delimiters = [
var prefix = split(IntegrationRuntimeName, delimiters)[0]
var networkSecurityGroupName = '${IntegrationRuntimeName}nsg'
var subnetId = resourceId(existingVnetResourceGroupName, 'Microsoft.Network/virtualNetworks/subnets', existingVirtualNetworkName, existingSubnetInYourVnet)
var scriptURL = uri(_artifactsLocation, 'gatewayInstall.ps1${_artifactsLocationSasToken}')
var scriptURL = '${_artifactsLocation}/gatewayInstall.ps1${_artifactsLocationSasToken}'

module nestedTemplate 'nested/IRtemplate.bicep' = {
name: 'nestedTemplate'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resource installGW 'Microsoft.Compute/virtualMachines/extensions@2022-08-01' = {
properties: {
publisher: 'Microsoft.Compute'
type: 'CustomScriptExtension'
typeHandlerVersion: '1.7'
typeHandlerVersion: '1.10'
autoUpgradeMinorVersion: true
settings: {
fileUris: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ param existingVnetLocation string
param subnetId string
param nsgId string

var maaTenantName = 'GuestAttestation'
var nicName = '${virtualMachineName}Nic'
var publicIPAddressName = '${virtualMachineName}-ip'
var extensionPublisher = 'Microsoft.Azure.Security.WindowsAttestation'
var extensionVersion = '1.0'
var extensionName = 'GuestAttestation'

resource publicIPAddress 'Microsoft.Network/publicIPAddresses@2022-05-01' = {
name: publicIPAddressName
Expand Down Expand Up @@ -59,7 +63,7 @@ resource virtualMachine 'Microsoft.Compute/virtualMachines@2022-08-01' = {
imageReference: {
publisher: 'MicrosoftWindowsServer'
offer: 'WindowsServer'
sku: '2022-Datacenter'
sku: '2022-datacenter-azure-edition'
version: 'latest'
}
osDisk: {
Expand All @@ -68,6 +72,13 @@ resource virtualMachine 'Microsoft.Compute/virtualMachines@2022-08-01' = {
createOption: 'FromImage'
}
}
securityProfile: {
uefiSettings: {
secureBootEnabled: true
vTpmEnabled: true
}
securityType: 'TrustedLaunch'
}
networkProfile: {
networkInterfaces: [
{
Expand All @@ -77,3 +88,30 @@ resource virtualMachine 'Microsoft.Compute/virtualMachines@2022-08-01' = {
}
}
}

resource virtualMachineName_GuestAttestation 'Microsoft.Compute/virtualMachines/extensions@2022-03-01' = {
parent: virtualMachine
name: 'GuestAttestation'
location: existingVnetLocation
properties: {
publisher: extensionPublisher
type: extensionName
typeHandlerVersion: extensionVersion
autoUpgradeMinorVersion: true
enableAutomaticUpgrade: true
settings: {
AttestationConfig: {
MaaSettings: {
maaEndpoint: ''
maaTenantName: maaTenantName
}
AscSettings: {
ascReportingEndpoint: ''
ascReportingFrequency: ''
}
useCustomToken: 'false'
disableAlerts: 'false'
}
}
}
}