Skip to content

Commit

Permalink
Automation account public network access option (#677)
Browse files Browse the repository at this point in the history
* add parameter parAutomationAccountPublicNetworkAccess

* update parameters.all.json

* update mc parameters.all.json

* doc new param parAutomationAccountPublicNetworkAccess

---------

Co-authored-by: Zach Trocinski <[email protected]>
  • Loading branch information
picccard and oZakari authored Nov 13, 2023
1 parent 4e1ac12 commit 328a18b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
12 changes: 12 additions & 0 deletions infra-as-code/bicep/modules/logging/generateddocs/logging.bicep.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ parLogAnalyticsWorkspaceLinkAutomationAccount | No | Log Analytics Workspa
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.
parAutomationAccountPublicNetworkAccess | No | Automation Account - Public network access.
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.
Expand Down Expand Up @@ -108,6 +109,14 @@ Automation Account - use managed identity.

- Default value: `True`

### parAutomationAccountPublicNetworkAccess

![Parameter Setting](https://img.shields.io/badge/parameter-optional-green?style=flat-square)

Automation Account - Public network access.

- Default value: `True`

### parTags

![Parameter Setting](https://img.shields.io/badge/parameter-optional-green?style=flat-square)
Expand Down Expand Up @@ -210,6 +219,9 @@ outAutomationAccountId | string |
"parAutomationAccountUseManagedIdentity": {
"value": true
},
"parAutomationAccountPublicNetworkAccess": {
"value": true
},
"parTags": {
"value": {}
},
Expand Down
10 changes: 7 additions & 3 deletions infra-as-code/bicep/modules/logging/logging.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ param parAutomationAccountLocation string = resourceGroup().location
@sys.description('Automation Account - use managed identity.')
param parAutomationAccountUseManagedIdentity bool = true

@sys.description('Automation Account - Public network access.')
param parAutomationAccountPublicNetworkAccess bool = true

@sys.description('Tags you would like to be applied to all resources in this module.')
param parTags object = {}

Expand All @@ -103,12 +106,13 @@ resource resAutomationAccount 'Microsoft.Automation/automationAccounts@2022-08-0
type: 'SystemAssigned'
} : null
properties: {
sku: {
name: 'Basic'
}
encryption: {
keySource: 'Microsoft.Automation'
}
publicNetworkAccess: parAutomationAccountPublicNetworkAccess
sku: {
name: 'Basic'
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
"parAutomationAccountUseManagedIdentity": {
"value": true
},
"parAutomationAccountPublicNetworkAccess": {
"value": true
},
"parTags": {
"value": {
"Environment": "Live"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
"parAutomationAccountUseManagedIdentity": {
"value": true
},
"parAutomationAccountPublicNetworkAccess": {
"value": true
},
"parTags": {
"value": {
"Environment": "Live"
Expand Down

0 comments on commit 328a18b

Please sign in to comment.