Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automation account public network access option #677

Merged
merged 5 commits into from
Nov 13, 2023
Merged
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
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
Loading