Skip to content

Commit a349580

Browse files
committed
Use Python 3.10 runtime for packages and runbooks
1 parent 56034b2 commit a349580

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

deployment/automation-account/azuredeploy.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.40.2.10011",
8-
"templateHash": "16752171002375446514"
8+
"templateHash": "11979438424361423722"
99
}
1010
},
1111
"parameters": {
@@ -941,7 +941,7 @@
941941
"mode": "serial",
942942
"batchSize": 1
943943
},
944-
"type": "Microsoft.Automation/automationAccounts/python3Packages",
944+
"type": "Microsoft.Automation/automationAccounts/python310Packages",
945945
"apiVersion": "2023-11-01",
946946
"name": "[format('{0}/{1}', variables('automationAccountName'), variables('pythonPackages')[copyIndex()].name)]",
947947
"properties": {
@@ -961,7 +961,7 @@
961961
"batchSize": 1
962962
},
963963
"condition": "[equals(parameters('analyticsBackend'), 'ADX')]",
964-
"type": "Microsoft.Automation/automationAccounts/python3Packages",
964+
"type": "Microsoft.Automation/automationAccounts/python310Packages",
965965
"apiVersion": "2023-11-01",
966966
"name": "[format('{0}/{1}', variables('automationAccountName'), variables('adxPackages')[copyIndex()].name)]",
967967
"properties": {
@@ -982,7 +982,7 @@
982982
"batchSize": 1
983983
},
984984
"condition": "[equals(parameters('analyticsBackend'), 'LogAnalytics')]",
985-
"type": "Microsoft.Automation/automationAccounts/python3Packages",
985+
"type": "Microsoft.Automation/automationAccounts/python310Packages",
986986
"apiVersion": "2023-11-01",
987987
"name": "[format('{0}/{1}', variables('automationAccountName'), variables('logAnalyticsPackages')[copyIndex()].name)]",
988988
"properties": {
@@ -1122,7 +1122,7 @@
11221122
"name": "[format('{0}/{1}', variables('automationAccountName'), variables('runbookConfigs')[copyIndex()].name)]",
11231123
"location": "[parameters('location')]",
11241124
"properties": {
1125-
"runbookType": "Python3",
1125+
"runbookType": "Python310",
11261126
"logProgress": true,
11271127
"logVerbose": true,
11281128
"description": "[variables('runbookConfigs')[copyIndex()].desc]",
@@ -1251,7 +1251,7 @@
12511251
},
12521252
"nextSteps": {
12531253
"type": "string",
1254-
"value": "DEPLOYMENT COMPLETE! Next steps:\n\n1. Grant Microsoft Graph API permissions to the Managed Identity:\n Run: ./scripts/Grant-GraphPermissions.ps1 -ManagedIdentityObjectId \"<managedIdentityPrincipalId>\"\n \n Required permissions:\n - DeviceManagementManagedDevices.Read.All\n - DeviceManagementConfiguration.Read.All \n - DeviceManagementServiceConfig.Read.All\n\n2. If using ADX with existing cluster, grant Database Ingestor role and run Schema-Focused.kql\n\n3. Test: Automation Account > Runbooks > Export-IntuneDevices > Start\n"
1254+
"value": "DEPLOYMENT COMPLETE! Next steps:\r\n\r\n1. Grant Microsoft Graph API permissions to the Managed Identity:\r\n Run: ./scripts/Grant-GraphPermissions.ps1 -ManagedIdentityObjectId \"<managedIdentityPrincipalId>\"\r\n \r\n Required permissions:\r\n - DeviceManagementManagedDevices.Read.All\r\n - DeviceManagementConfiguration.Read.All \r\n - DeviceManagementServiceConfig.Read.All\r\n\r\n2. If using ADX with existing cluster, grant Database Ingestor role and run Schema-Focused.kql\r\n\r\n3. Test: Automation Account > Runbooks > Export-IntuneDevices > Start\r\n"
12551255
}
12561256
}
12571257
}

deployment/automation-account/main.bicep

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,11 @@ resource automationAccount 'Microsoft.Automation/automationAccounts@2023-11-01'
427427
}
428428

429429
// ============================================================================
430-
// Python Packages
430+
// Python Packages (Python 3.10)
431431
// ============================================================================
432432

433433
@batchSize(1)
434-
resource corePackages 'Microsoft.Automation/automationAccounts/python3Packages@2023-11-01' = [for pkg in pythonPackages: {
434+
resource corePackages 'Microsoft.Automation/automationAccounts/python310Packages@2023-11-01' = [for pkg in pythonPackages: {
435435
parent: automationAccount
436436
name: pkg.name
437437
properties: {
@@ -440,7 +440,7 @@ resource corePackages 'Microsoft.Automation/automationAccounts/python3Packages@2
440440
}]
441441

442442
@batchSize(1)
443-
resource adxPkgs 'Microsoft.Automation/automationAccounts/python3Packages@2023-11-01' = [for pkg in adxPackages: if (analyticsBackend == 'ADX') {
443+
resource adxPkgs 'Microsoft.Automation/automationAccounts/python310Packages@2023-11-01' = [for pkg in adxPackages: if (analyticsBackend == 'ADX') {
444444
parent: automationAccount
445445
name: pkg.name
446446
properties: {
@@ -450,7 +450,7 @@ resource adxPkgs 'Microsoft.Automation/automationAccounts/python3Packages@2023-1
450450
}]
451451

452452
@batchSize(1)
453-
resource logAnalyticsPkgs 'Microsoft.Automation/automationAccounts/python3Packages@2023-11-01' = [for pkg in logAnalyticsPackages: if (analyticsBackend == 'LogAnalytics') {
453+
resource logAnalyticsPkgs 'Microsoft.Automation/automationAccounts/python310Packages@2023-11-01' = [for pkg in logAnalyticsPackages: if (analyticsBackend == 'LogAnalytics') {
454454
parent: automationAccount
455455
name: pkg.name
456456
properties: {
@@ -553,7 +553,7 @@ resource runbooks 'Microsoft.Automation/automationAccounts/runbooks@2023-11-01'
553553
name: cfg.name
554554
location: location
555555
properties: {
556-
runbookType: 'Python3'
556+
runbookType: 'Python310'
557557
logProgress: true
558558
logVerbose: true
559559
description: cfg.desc

0 commit comments

Comments
 (0)