Skip to content

Commit

Permalink
feat: Updated PE version references (Azure#621)
Browse files Browse the repository at this point in the history
## Description

- Updated PE version references
- Added test cases
- Updated casing

| Pipeline |
| - |
|
[![avm.res.cognitive-services.account](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.cognitive-services.account.yml/badge.svg?branch=users%2Falsehr%2FpeUpdate)](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.cognitive-services.account.yml)
|
|
[![avm.res.batch.batch-account](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.batch.batch-account.yml/badge.svg?branch=users%2Falsehr%2FpeUpdate)](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.batch.batch-account.yml)
|
|
[![avm.res.key-vault.vault](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.key-vault.vault.yml/badge.svg?branch=users%2Falsehr%2FpeUpdate)](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.key-vault.vault.yml)
|
|
[![avm.res.network.private-endpoint](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.network.private-endpoint.yml/badge.svg?branch=users%2Falsehr%2FpeUpdate)](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.network.private-endpoint.yml)
|
|
[![avm.res.search.search-service](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.search.search-service.yml/badge.svg?branch=users%2Falsehr%2FpeUpdate)](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.search.search-service.yml)
|
|
[![avm.res.sql.server](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.sql.server.yml/badge.svg?branch=users%2Falsehr%2FpeUpdate&event=workflow_dispatch)](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.sql.server.yml)
|

---------

Co-authored-by: Erika Gressi <[email protected]>
  • Loading branch information
AlexanderSehr and eriqua authored Nov 30, 2023
1 parent 1ced523 commit 73d081c
Show file tree
Hide file tree
Showing 24 changed files with 1,409 additions and 309 deletions.
88 changes: 77 additions & 11 deletions avm/res/batch/batch-account/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,24 @@ module batchAccount 'br/public:avm/res/batch/batch-account:<version>' = {
poolAllocationMode: 'BatchService'
privateEndpoints: [
{
customDnsConfigs: [
{
fqdn: 'abc.batch.com'
ipAddresses: [
'10.0.0.10'
]
}
]
ipConfigurations: [
{
name: 'myIPconfig'
properties: {
groupId: 'batchAccount'
memberName: 'batchAccount'
privateIPAddress: '10.0.0.10'
}
}
]
privateDnsZoneResourceIds: [
'<privateDNSZoneResourceId>'
]
Expand Down Expand Up @@ -343,6 +361,24 @@ module batchAccount 'br/public:avm/res/batch/batch-account:<version>' = {
"privateEndpoints": {
"value": [
{
"customDnsConfigs": [
{
"fqdn": "abc.batch.com",
"ipAddresses": [
"10.0.0.10"
]
}
],
"ipConfigurations": [
{
"name": "myIPconfig",
"properties": {
"groupId": "batchAccount",
"memberName": "batchAccount",
"privateIPAddress": "10.0.0.10"
}
}
],
"privateDnsZoneResourceIds": [
"<privateDNSZoneResourceId>"
],
Expand Down Expand Up @@ -895,14 +931,20 @@ Optional. Custom DNS configurations.

| Name | Required | Type | Description |
| :-- | :-- | :--| :-- |
| [`fqdn`](#parameter-privateendpointscustomdnsconfigsfqdn) | No | string | |
| [`ipAddresses`](#parameter-privateendpointscustomdnsconfigsipaddresses) | Yes | array | |
| [`fqdn`](#parameter-privateendpointscustomdnsconfigsfqdn) | No | string | Required. Fqdn that resolves to private endpoint IP address. |
| [`ipAddresses`](#parameter-privateendpointscustomdnsconfigsipaddresses) | Yes | array | Required. A list of private IP addresses of the private endpoint. |

### Parameter: `privateEndpoints.customDnsConfigs.fqdn`

Required. Fqdn that resolves to private endpoint IP address.

- Required: No
- Type: string

### Parameter: `privateEndpoints.customDnsConfigs.ipAddresses`

Required. A list of private IP addresses of the private endpoint.

- Required: Yes
- Type: array

Expand Down Expand Up @@ -930,28 +972,52 @@ Optional. A list of IP configurations of the private endpoint. This will be used

| Name | Required | Type | Description |
| :-- | :-- | :--| :-- |
| [`groupId`](#parameter-privateendpointsipconfigurationsgroupid) | Yes | string | |
| [`memberName`](#parameter-privateendpointsipconfigurationsmembername) | Yes | string | |
| [`name`](#parameter-privateendpointsipconfigurationsname) | Yes | string | |
| [`privateIpAddress`](#parameter-privateendpointsipconfigurationsprivateipaddress) | Yes | string | |
| [`name`](#parameter-privateendpointsipconfigurationsname) | Yes | string | Required. The name of the resource that is unique within a resource group. |
| [`properties`](#parameter-privateendpointsipconfigurationsproperties) | Yes | object | Required. Properties of private endpoint IP configurations. |

### Parameter: `privateEndpoints.ipConfigurations.name`

Required. The name of the resource that is unique within a resource group.

### Parameter: `privateEndpoints.ipConfigurations.groupId`
- Required: Yes
- Type: string

### Parameter: `privateEndpoints.ipConfigurations.memberName`
### Parameter: `privateEndpoints.ipConfigurations.properties`

Required. Properties of private endpoint IP configurations.

- Required: Yes
- Type: object

| Name | Required | Type | Description |
| :-- | :-- | :--| :-- |
| [`groupId`](#parameter-privateendpointsipconfigurationspropertiesgroupid) | Yes | string | Required. The ID of a group obtained from the remote resource that this private endpoint should connect to. |
| [`memberName`](#parameter-privateendpointsipconfigurationspropertiesmembername) | Yes | string | Required. The member name of a group obtained from the remote resource that this private endpoint should connect to. |
| [`privateIPAddress`](#parameter-privateendpointsipconfigurationspropertiesprivateipaddress) | Yes | string | Required. A private IP address obtained from the private endpoint's subnet. |

### Parameter: `privateEndpoints.ipConfigurations.properties.groupId`

Required. The ID of a group obtained from the remote resource that this private endpoint should connect to.

- Required: Yes
- Type: string

### Parameter: `privateEndpoints.ipConfigurations.name`
### Parameter: `privateEndpoints.ipConfigurations.properties.memberName`

Required. The member name of a group obtained from the remote resource that this private endpoint should connect to.

- Required: Yes
- Type: string

### Parameter: `privateEndpoints.ipConfigurations.privateIpAddress`
### Parameter: `privateEndpoints.ipConfigurations.properties.privateIPAddress`

Required. A private IP address obtained from the private endpoint's subnet.

- Required: Yes
- Type: string



### Parameter: `privateEndpoints.location`

Optional. The location to deploy the private endpoint to.
Expand Down Expand Up @@ -1154,4 +1220,4 @@ This section gives you an overview of all local-referenced module files (i.e., o

| Reference | Type |
| :-- | :-- |
| `br/public:avm/res/network/private-endpoint:0.2.0` | Remote reference |
| `br/public:avm/res/network/private-endpoint:0.3.1` | Remote reference |
34 changes: 27 additions & 7 deletions avm/res/batch/batch-account/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,21 @@ resource batchAccount_diagnosticSettings 'Microsoft.Insights/diagnosticSettings@
scope: batchAccount
}]

module batchAccount_privateEndpoints 'br/public:avm/res/network/private-endpoint:0.2.0' = [for (privateEndpoint, index) in (privateEndpoints ?? []): {
module batchAccount_privateEndpoints 'br/public:avm/res/network/private-endpoint:0.3.1' = [for (privateEndpoint, index) in (privateEndpoints ?? []): {
name: '${uniqueString(deployment().name, location)}-BatchAccount-PrivateEndpoint-${index}'
params: {
groupIds: [
privateEndpoint.?service ?? 'batchAccount'
privateLinkServiceConnections: [
{
name: name
properties: {
privateLinkServiceId: batchAccount.id
groupIds: [
privateEndpoint.?service ?? 'batchAccount'
]
}
}
]
name: privateEndpoint.?name ?? 'pep-${last(split(batchAccount.id, '/'))}-${privateEndpoint.?service ?? 'batchAccount'}-${index}'
serviceResourceId: batchAccount.id
subnetResourceId: privateEndpoint.subnetResourceId
enableTelemetry: privateEndpoint.?enableTelemetry ?? enableTelemetry
location: privateEndpoint.?location ?? reference(split(privateEndpoint.subnetResourceId, '/subnets/')[0], '2020-06-01', 'Full').location
Expand Down Expand Up @@ -343,16 +350,29 @@ type privateEndpointType = {

@description('Optional. Custom DNS configurations.')
customDnsConfigs: {
@description('Required. Fqdn that resolves to private endpoint IP address.')
fqdn: string?

@description('Required. A list of private IP addresses of the private endpoint.')
ipAddresses: string[]
}[]?

@description('Optional. A list of IP configurations of the private endpoint. This will be used to map to the First Party Service endpoints.')
ipConfigurations: {
@description('Required. The name of the resource that is unique within a resource group.')
name: string
groupId: string
memberName: string
privateIpAddress: string

@description('Required. Properties of private endpoint IP configurations.')
properties: {
@description('Required. The ID of a group obtained from the remote resource that this private endpoint should connect to.')
groupId: string

@description('Required. The member name of a group obtained from the remote resource that this private endpoint should connect to.')
memberName: string

@description('Required. A private IP address obtained from the private endpoint\'s subnet.')
privateIPAddress: string
}
}[]?

@description('Optional. Application security groups in which the private endpoint IP configuration is included.')
Expand Down
Loading

0 comments on commit 73d081c

Please sign in to comment.