Skip to content

Commit

Permalink
Merge branch 'main' into users/donk-msft/policyinsights-remediation
Browse files Browse the repository at this point in the history
  • Loading branch information
donk-msft authored Apr 15, 2024
2 parents c93bb71 + 4c05939 commit b01b855
Show file tree
Hide file tree
Showing 50 changed files with 630 additions and 298 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/avm.platform.manage-workflow-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: "avm.platform.manage-workflow-issue"
on:
schedule:
- cron: "30 5 * * *" # Every day at 5:30 am
workflow_dispatch:

jobs:
manage-issues:
Expand All @@ -14,16 +15,22 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- env:
GH_TOKEN: ${{ github.token }}
name: Manage issues
- uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Manage issues
shell: pwsh
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
# Load used functions
. (Join-Path $env:GITHUB_WORKSPACE 'avm' 'utilities' 'pipelines' 'platform' 'Set-AvmGithubIssueForWorkflow.ps1')
$functionInput = @{
Repo = "${{ github.repository_owner }}/${{ github.event.repository.name }}"
RepoRoot = $env:GITHUB_WORKSPACE
LimitNumberOfRuns = 500
LimitInDays = 2
IgnoreWorkflows = @()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,22 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- env:
GH_TOKEN: ${{ github.token }}
name: "Run scripts"
- uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.TEAM_LINTER_APP_ID }}
private_key: ${{ secrets.TEAM_LINTER_PRIVATE_KEY }}
- name: "Run scripts"
shell: pwsh
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
# Load used functions
. (Join-Path $env:GITHUB_WORKSPACE 'avm' 'utilities' 'pipelines' 'platform' 'Set-AvmGitHubIssueOwnerConfig.ps1')
. (Join-Path $env:GITHUB_WORKSPACE 'avm' 'utilities' 'pipelines' 'platform' 'Set-AvmGitHubIssueOwnerConfig.ps1')
$functionInput = @{
Repo = "${{ github.repository_owner }}/${{ github.event.repository.name }}"
Repo = "${{ github.repository_owner }}/${{ github.event.repository.name }}"
RepoRoot = $env:GITHUB_WORKSPACE
IssueUrl = "${{ github.event.issue.url }}"
}
Expand Down
2 changes: 1 addition & 1 deletion avm/res/aad/domain-service/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Azure Active Directory Domain Services `[Microsoft.AAD/domainServices]`

This module deploys an Azure Active Directory Domain Services (AADDS).
This module deploys an Azure Active Directory Domain Services (AADDS) instance.

## Navigation

Expand Down
2 changes: 1 addition & 1 deletion avm/res/aad/domain-service/main.bicep
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
metadata name = 'Azure Active Directory Domain Services'
metadata description = 'This module deploys an Azure Active Directory Domain Services (AADDS).'
metadata description = 'This module deploys an Azure Active Directory Domain Services (AADDS) instance.'
metadata owner = 'Azure/module-maintainers'

@minLength(1)
Expand Down
4 changes: 2 additions & 2 deletions avm/res/aad/domain-service/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "10683253750371964167"
"templateHash": "7265620724598107360"
},
"name": "Azure Active Directory Domain Services",
"description": "This module deploys an Azure Active Directory Domain Services (AADDS).",
"description": "This module deploys an Azure Active Directory Domain Services (AADDS) instance.",
"owner": "Azure/module-maintainers"
},
"definitions": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ resource keyVault 'Microsoft.KeyVault/vaults@2023-02-01' = {
name: 'standard'
}
tenantId: tenant().tenantId
enablePurgeProtection: true
softDeleteRetentionInDays: 90
enablePurgeProtection: true // Required for encryption to work
softDeleteRetentionInDays: 7
enabledForTemplateDeployment: true
enabledForDiskEncryption: true
enabledForDeployment: true
Expand Down
156 changes: 99 additions & 57 deletions avm/res/app/managed-environment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,21 @@ module managedEnvironment 'br/public:avm/res/app/managed-environment:<version>'
logAnalyticsWorkspaceResourceId: '<logAnalyticsWorkspaceResourceId>'
name: 'amemin001'
// Non-required parameters
dockerBridgeCidr: '172.16.0.1/28'
infrastructureResourceGroupName: '<infrastructureResourceGroupName>'
infrastructureSubnetId: '<infrastructureSubnetId>'
internal: true
location: '<location>'
platformReservedCidr: '172.17.17.0/24'
platformReservedDnsIP: '172.17.17.17'
workloadProfiles: [
{
maximumCount: 3
minimumCount: 0
name: 'CAW01'
workloadProfileType: 'D4'
}
]
}
}
```
Expand All @@ -73,8 +87,36 @@ module managedEnvironment 'br/public:avm/res/app/managed-environment:<version>'
"value": "amemin001"
},
// Non-required parameters
"dockerBridgeCidr": {
"value": "172.16.0.1/28"
},
"infrastructureResourceGroupName": {
"value": "<infrastructureResourceGroupName>"
},
"infrastructureSubnetId": {
"value": "<infrastructureSubnetId>"
},
"internal": {
"value": true
},
"location": {
"value": "<location>"
},
"platformReservedCidr": {
"value": "172.17.17.0/24"
},
"platformReservedDnsIP": {
"value": "172.17.17.17"
},
"workloadProfiles": {
"value": [
{
"maximumCount": 3,
"minimumCount": 0,
"name": "CAW01",
"workloadProfileType": "D4"
}
]
}
}
}
Expand Down Expand Up @@ -397,7 +439,13 @@ module managedEnvironment 'br/public:avm/res/app/managed-environment:<version>'

| Parameter | Type | Description |
| :-- | :-- | :-- |
| [`infrastructureSubnetId`](#parameter-infrastructuresubnetid) | string | Resource ID of a subnet for infrastructure components. This is used to deploy the environment into a virtual network. Must not overlap with any other provided IP ranges. Required if "internal" is set to true. |
| [`dockerBridgeCidr`](#parameter-dockerbridgecidr) | string | CIDR notation IP range assigned to the Docker bridge, network. It must not overlap with any other provided IP ranges and can only be used when the environment is deployed into a virtual network. If not provided, it will be set with a default value by the platform. Required if zoneRedundant is set to true to make the resource WAF compliant. |
| [`infrastructureResourceGroupName`](#parameter-infrastructureresourcegroupname) | string | Name of the infrastructure resource group. If not provided, it will be set with a default value. Required if zoneRedundant is set to true to make the resource WAF compliant. |
| [`infrastructureSubnetId`](#parameter-infrastructuresubnetid) | string | Resource ID of a subnet for infrastructure components. This is used to deploy the environment into a virtual network. Must not overlap with any other provided IP ranges. Required if "internal" is set to true. Required if zoneRedundant is set to true to make the resource WAF compliant. |
| [`internal`](#parameter-internal) | bool | Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP resource. If set to true, then "infrastructureSubnetId" must be provided. Required if zoneRedundant is set to true to make the resource WAF compliant. |
| [`platformReservedCidr`](#parameter-platformreservedcidr) | string | IP range in CIDR notation that can be reserved for environment infrastructure IP addresses. It must not overlap with any other provided IP ranges and can only be used when the environment is deployed into a virtual network. If not provided, it will be set with a default value by the platform. Required if zoneRedundant is set to true to make the resource WAF compliant. |
| [`platformReservedDnsIP`](#parameter-platformreserveddnsip) | string | An IP address from the IP range defined by "platformReservedCidr" that will be reserved for the internal DNS server. It must not be the first address in the range and can only be used when the environment is deployed into a virtual network. If not provided, it will be set with a default value by the platform. Required if zoneRedundant is set to true to make the resource WAF compliant. |
| [`workloadProfiles`](#parameter-workloadprofiles) | array | Workload profiles configured for the Managed Environment. Required if zoneRedundant is set to true to make the resource WAF compliant. |

**Optional parameters**

Expand All @@ -408,18 +456,12 @@ module managedEnvironment 'br/public:avm/res/app/managed-environment:<version>'
| [`daprAIConnectionString`](#parameter-dapraiconnectionstring) | securestring | Application Insights connection string used by Dapr to export Service to Service communication telemetry. |
| [`daprAIInstrumentationKey`](#parameter-dapraiinstrumentationkey) | securestring | Azure Monitor instrumentation key used by Dapr to export Service to Service communication telemetry. |
| [`dnsSuffix`](#parameter-dnssuffix) | string | DNS suffix for the environment domain. |
| [`dockerBridgeCidr`](#parameter-dockerbridgecidr) | string | CIDR notation IP range assigned to the Docker bridge, network. It must not overlap with any other provided IP ranges and can only be used when the environment is deployed into a virtual network. If not provided, it will be set with a default value by the platform. |
| [`enableTelemetry`](#parameter-enabletelemetry) | bool | Enable/Disable usage telemetry for module. |
| [`infrastructureResourceGroupName`](#parameter-infrastructureresourcegroupname) | string | Name of the infrastructure resource group. If not provided, it will be set with a default value. |
| [`internal`](#parameter-internal) | bool | Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP resource. If set to true, then "infrastructureSubnetId" must be provided. |
| [`location`](#parameter-location) | string | Location for all Resources. |
| [`lock`](#parameter-lock) | object | The lock settings of the service. |
| [`logsDestination`](#parameter-logsdestination) | string | Logs destination. |
| [`platformReservedCidr`](#parameter-platformreservedcidr) | string | IP range in CIDR notation that can be reserved for environment infrastructure IP addresses. It must not overlap with any other provided IP ranges and can only be used when the environment is deployed into a virtual network. If not provided, it will be set with a default value by the platform. |
| [`platformReservedDnsIP`](#parameter-platformreserveddnsip) | string | An IP address from the IP range defined by "platformReservedCidr" that will be reserved for the internal DNS server. It must not be the first address in the range and can only be used when the environment is deployed into a virtual network. If not provided, it will be set with a default value by the platform. |
| [`roleAssignments`](#parameter-roleassignments) | array | Array of role assignments to create. |
| [`tags`](#parameter-tags) | object | Tags of the resource. |
| [`workloadProfiles`](#parameter-workloadprofiles) | array | Workload profiles configured for the Managed Environment. |
| [`zoneRedundant`](#parameter-zoneredundant) | bool | Whether or not this Managed Environment is zone-redundant. |

### Parameter: `logAnalyticsWorkspaceResourceId`
Expand All @@ -436,14 +478,62 @@ Name of the Container Apps Managed Environment.
- Required: Yes
- Type: string

### Parameter: `dockerBridgeCidr`

CIDR notation IP range assigned to the Docker bridge, network. It must not overlap with any other provided IP ranges and can only be used when the environment is deployed into a virtual network. If not provided, it will be set with a default value by the platform. Required if zoneRedundant is set to true to make the resource WAF compliant.

- Required: No
- Type: string
- Default: `''`

### Parameter: `infrastructureResourceGroupName`

Name of the infrastructure resource group. If not provided, it will be set with a default value. Required if zoneRedundant is set to true to make the resource WAF compliant.

- Required: No
- Type: string
- Default: `[take(format('ME_{0}', parameters('name')), 63)]`

### Parameter: `infrastructureSubnetId`

Resource ID of a subnet for infrastructure components. This is used to deploy the environment into a virtual network. Must not overlap with any other provided IP ranges. Required if "internal" is set to true.
Resource ID of a subnet for infrastructure components. This is used to deploy the environment into a virtual network. Must not overlap with any other provided IP ranges. Required if "internal" is set to true. Required if zoneRedundant is set to true to make the resource WAF compliant.

- Required: No
- Type: string
- Default: `''`

### Parameter: `internal`

Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP resource. If set to true, then "infrastructureSubnetId" must be provided. Required if zoneRedundant is set to true to make the resource WAF compliant.

- Required: No
- Type: bool
- Default: `False`

### Parameter: `platformReservedCidr`

IP range in CIDR notation that can be reserved for environment infrastructure IP addresses. It must not overlap with any other provided IP ranges and can only be used when the environment is deployed into a virtual network. If not provided, it will be set with a default value by the platform. Required if zoneRedundant is set to true to make the resource WAF compliant.

- Required: No
- Type: string
- Default: `''`

### Parameter: `platformReservedDnsIP`

An IP address from the IP range defined by "platformReservedCidr" that will be reserved for the internal DNS server. It must not be the first address in the range and can only be used when the environment is deployed into a virtual network. If not provided, it will be set with a default value by the platform. Required if zoneRedundant is set to true to make the resource WAF compliant.

- Required: No
- Type: string
- Default: `''`

### Parameter: `workloadProfiles`

Workload profiles configured for the Managed Environment. Required if zoneRedundant is set to true to make the resource WAF compliant.

- Required: No
- Type: array
- Default: `[]`

### Parameter: `certificatePassword`

Password of the certificate used by the custom domain.
Expand Down Expand Up @@ -484,14 +574,6 @@ DNS suffix for the environment domain.
- Type: string
- Default: `''`

### Parameter: `dockerBridgeCidr`

CIDR notation IP range assigned to the Docker bridge, network. It must not overlap with any other provided IP ranges and can only be used when the environment is deployed into a virtual network. If not provided, it will be set with a default value by the platform.

- Required: No
- Type: string
- Default: `''`

### Parameter: `enableTelemetry`

Enable/Disable usage telemetry for module.
Expand All @@ -500,22 +582,6 @@ Enable/Disable usage telemetry for module.
- Type: bool
- Default: `True`

### Parameter: `infrastructureResourceGroupName`

Name of the infrastructure resource group. If not provided, it will be set with a default value.

- Required: No
- Type: string
- Default: `[take(format('ME_{0}', parameters('name')), 63)]`

### Parameter: `internal`

Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP resource. If set to true, then "infrastructureSubnetId" must be provided.

- Required: No
- Type: bool
- Default: `False`

### Parameter: `location`

Location for all Resources.
Expand Down Expand Up @@ -568,22 +634,6 @@ Logs destination.
- Type: string
- Default: `'log-analytics'`

### Parameter: `platformReservedCidr`

IP range in CIDR notation that can be reserved for environment infrastructure IP addresses. It must not overlap with any other provided IP ranges and can only be used when the environment is deployed into a virtual network. If not provided, it will be set with a default value by the platform.

- Required: No
- Type: string
- Default: `''`

### Parameter: `platformReservedDnsIP`

An IP address from the IP range defined by "platformReservedCidr" that will be reserved for the internal DNS server. It must not be the first address in the range and can only be used when the environment is deployed into a virtual network. If not provided, it will be set with a default value by the platform.

- Required: No
- Type: string
- Default: `''`

### Parameter: `roleAssignments`

Array of role assignments to create.
Expand Down Expand Up @@ -680,21 +730,13 @@ Tags of the resource.
- Required: No
- Type: object

### Parameter: `workloadProfiles`

Workload profiles configured for the Managed Environment.

- Required: No
- Type: array
- Default: `[]`

### Parameter: `zoneRedundant`

Whether or not this Managed Environment is zone-redundant.

- Required: No
- Type: bool
- Default: `False`
- Default: `True`


## Outputs
Expand Down
Loading

0 comments on commit b01b855

Please sign in to comment.