added parAutomationAccountUseManagedIdentity parameter (#433)

* added parAutomationAccountUseManagedIdentity parameter

* Generate Parameter Markdowns [mbrat2005/38a59947]

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jack Tracey <41163455+jtracey93@users.noreply.github.com>
This commit is contained in:
Matthew Bratschun 2023-01-26 12:48:09 -07:00 коммит произвёл GitHub
Родитель 14ba89d9e0
Коммит 9ed6f47c83
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
6 изменённых файлов: 25 добавлений и 25 удалений

Просмотреть файл

@ -1,25 +0,0 @@
#
# Suppression and rules for unsupported scenarios.
#
# NOTE:
# For details on authoring suppression groups see:
# https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_SuppressionGroups/
# https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/
---
# Synopsis: Ignore Managed Identity is used for authentication.
apiVersion: github.com/microsoft/PSRule/v1
kind: SuppressionGroup
metadata:
name: ALZ.ManagedIdentityForAutomation
spec:
rule:
- Azure.Automation.ManagedIdentity
if:
allOf:
- name: '.'
contains: alz-automation-account
- type: '.'
in:
- Microsoft.Automation/automationAccounts

Просмотреть файл

@ -13,6 +13,7 @@ parLogAnalyticsWorkspaceLogRetentionInDays | No | Number of days of log re
parLogAnalyticsWorkspaceSolutions | No | Solutions that will be added to the Log Analytics Workspace.
parAutomationAccountName | No | Automation account name.
parAutomationAccountLocation | No | Automation Account region name. - Ensure the regions selected is a supported mapping as per: https://docs.microsoft.com/azure/automation/how-to/region-mappings.
parAutomationAccountUseManagedIdentity | No | Automation Account - use managed identity.
parTags | No | Tags you would like to be applied to all resources in this module.
parAutomationAccountTags | No | Tags you would like to be applied to Automation Account.
parLogAnalyticsWorkspaceTags | No | Tags you would like to be applied to Log Analytics Workspace.
@ -78,6 +79,14 @@ Automation Account region name. - Ensure the regions selected is a supported map
- Default value: `[resourceGroup().location]`
### parAutomationAccountUseManagedIdentity
![Parameter Setting](https://img.shields.io/badge/parameter-optional-green?style=flat-square)
Automation Account - use managed identity.
- Default value: `True`
### parTags
![Parameter Setting](https://img.shields.io/badge/parameter-optional-green?style=flat-square)
@ -164,6 +173,9 @@ outAutomationAccountId | string |
"parAutomationAccountLocation": {
"value": "[resourceGroup().location]"
},
"parAutomationAccountUseManagedIdentity": {
"value": true
},
"parTags": {
"value": {}
},

Просмотреть файл

@ -59,6 +59,9 @@ param parAutomationAccountName string = 'alz-automation-account'
@sys.description('Automation Account region name. - Ensure the regions selected is a supported mapping as per: https://docs.microsoft.com/azure/automation/how-to/region-mappings.')
param parAutomationAccountLocation string = resourceGroup().location
@sys.description('Automation Account - use managed identity.')
param parAutomationAccountUseManagedIdentity bool = true
@sys.description('Tags you would like to be applied to all resources in this module.')
param parTags object = {}
@ -78,6 +81,9 @@ resource resAutomationAccount 'Microsoft.Automation/automationAccounts@2021-06-2
name: parAutomationAccountName
location: parAutomationAccountLocation
tags: parAutomationAccountTags
identity: parAutomationAccountUseManagedIdentity ? {
type: 'SystemAssigned'
} : null
properties: {
sku: {
name: 'Basic'

Просмотреть файл

@ -35,6 +35,9 @@
"parAutomationAccountLocation": {
"value": "eastus2"
},
"parAutomationAccountUseManagedIdentity": {
"value": true
},
"parTags": {
"value": {
"Environment": "POC"

Просмотреть файл

@ -35,6 +35,9 @@
"parAutomationAccountLocation": {
"value": "chinaeast2"
},
"parAutomationAccountUseManagedIdentity": {
"value": true
},
"parTags": {
"value": {
"Environment": "POC"

Просмотреть файл

@ -39,6 +39,7 @@ module baseline_logging '../logging.bicep' = {
'VMInsights'
]
parAutomationAccountName: 'alz-automation-account'
parAutomationAccountUseManagedIdentity: true
parTelemetryOptOut: false
}
}