Skip to content

Commit

Permalink
fix: Fixed incorrect PE schema, not utilizing correct property (#826)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr authored Apr 6, 2024
1 parent d6b391d commit fd189a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/static/includes/interfaces/int.pe.udt.schema1.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ module >singularMainResourceType<_privateEndpoints 'br/public:avm/res/network/pr
params: {
// Variant 1: A default service can be assumed (i.e., for services that only have one private endpoint type)
name: privateEndpoint.?name ?? 'pep-${last(split(>singularMainResourceType<.id, '/'))}-${privateEndpoint.?service ?? '>defaultServiceName<'}-${index}'
privateLinkServiceConnections: privateEndpoint.?manualPrivateLinkServiceConnections != true ? [
privateLinkServiceConnections: privateEndpoint.?isManualConnection != true ? [
{
name: privateEndpoint.?privateLinkServiceConnectionName ?? '${last(split(>singularMainResourceType<.id, '/'))}-${privateEndpoint.?service ?? '>defaultServiceName<'}-${index}'
properties: {
Expand All @@ -94,7 +94,7 @@ module >singularMainResourceType<_privateEndpoints 'br/public:avm/res/network/pr
}
}
] : null
manualPrivateLinkServiceConnections: privateEndpoint.?manualPrivateLinkServiceConnections == true ? [
manualPrivateLinkServiceConnections: privateEndpoint.?isManualConnection == true ? [
{
name: privateEndpoint.?privateLinkServiceConnectionName ?? '${last(split(>singularMainResourceType<.id, '/'))}-${privateEndpoint.?service ?? '>defaultServiceName<'}-${index}'
properties: {
Expand Down
4 changes: 2 additions & 2 deletions docs/static/includes/interfaces/int.pe.udt.schema2.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ module >singularMainResourceType<_privateEndpoints 'br/public:avm/res/network/pr
params: {
// Variant 2: A default service cannot be assumed (i.e., for services that have more than one private endpoint type, like Storage Account)
name: privateEndpoint.?name ?? 'pep-${last(split(>singularMainResourceType>.id, '/'))}-${privateEndpoint.service}-${index}'
privateLinkServiceConnections: privateEndpoint.?manualPrivateLinkServiceConnections != true ? [
privateLinkServiceConnections: privateEndpoint.?isManualConnection != true ? [
{
name: privateEndpoint.?privateLinkServiceConnectionName ?? '${last(split(>singularMainResourceType<.id, '/'))}-${privateEndpoint.service}-${index}'
properties: {
Expand All @@ -94,7 +94,7 @@ module >singularMainResourceType<_privateEndpoints 'br/public:avm/res/network/pr
}
}
] : null
manualPrivateLinkServiceConnections: privateEndpoint.?manualPrivateLinkServiceConnections == true ? [
manualPrivateLinkServiceConnections: privateEndpoint.?isManualConnection == true ? [
{
name: privateEndpoint.?privateLinkServiceConnectionName ?? '${last(split(>singularMainResourceType<.id, '/'))}-${privateEndpoint.service}-${index}'
properties: {
Expand Down

0 comments on commit fd189a4

Please sign in to comment.