Skip to content

Commit

Permalink
fix: Corrected optional PE parameter definition (Azure#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr and eriqua authored Nov 28, 2023
1 parent 0f10b10 commit 10adf7c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 15 deletions.
16 changes: 6 additions & 10 deletions avm/res/network/private-endpoint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ module privateEndpoint 'br/public:avm/res/network/private-endpoint:<version>' =
'vault'
]
privateLinkServiceId: '<privateLinkServiceId>'
requestMessage: ''
}
}
]
Expand Down Expand Up @@ -132,8 +131,7 @@ module privateEndpoint 'br/public:avm/res/network/private-endpoint:<version>' =
"groupIds": [
"vault"
],
"privateLinkServiceId": "<privateLinkServiceId>",
"requestMessage": ""
"privateLinkServiceId": "<privateLinkServiceId>"
}
}
]
Expand Down Expand Up @@ -208,7 +206,7 @@ module privateEndpoint 'br/public:avm/res/network/private-endpoint:<version>' =
'vault'
]
privateLinkServiceId: '<privateLinkServiceId>'
requestMessage: ''
requestMessage: 'Hey there'
}
}
]
Expand Down Expand Up @@ -317,7 +315,7 @@ module privateEndpoint 'br/public:avm/res/network/private-endpoint:<version>' =
"vault"
],
"privateLinkServiceId": "<privateLinkServiceId>",
"requestMessage": ""
"requestMessage": "Hey there"
}
}
]
Expand Down Expand Up @@ -405,7 +403,6 @@ module privateEndpoint 'br/public:avm/res/network/private-endpoint:<version>' =
'vault'
]
privateLinkServiceId: '<privateLinkServiceId>'
requestMessage: ''
}
}
]
Expand Down Expand Up @@ -489,8 +486,7 @@ module privateEndpoint 'br/public:avm/res/network/private-endpoint:<version>' =
"groupIds": [
"vault"
],
"privateLinkServiceId": "<privateLinkServiceId>",
"requestMessage": ""
"privateLinkServiceId": "<privateLinkServiceId>"
}
}
]
Expand Down Expand Up @@ -772,7 +768,7 @@ Required. Properties of private link service connection.
| :-- | :-- | :--| :-- |
| [`groupIds`](#parameter-privatelinkserviceconnectionspropertiesgroupids) | Yes | array | Required. The ID of a group obtained from the remote resource that this private endpoint should connect to. |
| [`privateLinkServiceId`](#parameter-privatelinkserviceconnectionspropertiesprivatelinkserviceid) | Yes | string | Required. The resource id of private link service. |
| [`requestMessage`](#parameter-privatelinkserviceconnectionspropertiesrequestmessage) | Yes | string | Optional. A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars. |
| [`requestMessage`](#parameter-privatelinkserviceconnectionspropertiesrequestmessage) | No | string | Optional. A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars. |

### Parameter: `privateLinkServiceConnections.properties.groupIds`

Expand All @@ -792,7 +788,7 @@ Required. The resource id of private link service.

Optional. A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars.

- Required: Yes
- Required: No
- Type: string


Expand Down
2 changes: 1 addition & 1 deletion avm/res/network/private-endpoint/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ type privateLinkServiceConnectionsType = {
privateLinkServiceId: string

@description('Optional. A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars.')
requestMessage: string
requestMessage: string?
}
}[]?

Expand Down
3 changes: 2 additions & 1 deletion avm/res/network/private-endpoint/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "9677328568170167813"
"templateHash": "2821141217598568122"
},
"name": "Private Endpoints",
"description": "This module deploys a Private Endpoint.",
Expand Down Expand Up @@ -214,6 +214,7 @@
},
"requestMessage": {
"type": "string",
"nullable": true,
"metadata": {
"description": "Optional. A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars."
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ module testDeployment '../../../main.bicep' = [for iteration in [ 'init', 'idem'
groupIds: [
'vault'
]
requestMessage: ''
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ module testDeployment '../../../main.bicep' = [for iteration in [ 'init', 'idem'
groupIds: [
'vault'
]
requestMessage: ''
requestMessage: 'Hey there'
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ module testDeployment '../../../main.bicep' = [for iteration in [ 'init', 'idem'
groupIds: [
'vault'
]
requestMessage: ''
}
}
]
Expand Down

0 comments on commit 10adf7c

Please sign in to comment.