Azure / Azure/bicep-types-az

SignalR privateEndpoints provided name ignored

Open
#2,210 1 comment 0 reactions 0 assignees View on GitHub
Needs: Triage :mag:
Dominant language
TypeScript
Stars
108
Forks
44
Avg merge
18h 53m
Merged PRs (30d)
29

Description

**Describe the bug**

I have provided privateEndpoint name as `name: 'signalr-name.guid'` but it auto generated by azure like `resourcename.guid`. due to that I provided all rule that is not reflacted to signalr. e.g. `allow: [ 'ServerConnection', 'RESTAPI']`

```
resource signalR 'Microsoft.SignalRService/signalR@2024-03-01' = {
name: name
location: location
sku: {
capacity: 1
name: 'Standard_S1'
}
kind: 'SignalR'
properties: {
features: [
{
flag: 'ServiceMode'
value: 'Serverless'
}
]
cors: {
allowedOrigins: ['*']
}
networkACLs: {
defaultAction: 'Deny'
publicNetwork: {
allow: [
'ClientConnection'
]
}
privateEndpoints: [
{
name: 'signalr-name.guid'
allow: [
'ServerConnection'
'RESTAPI'
]
}
]
}
}
}

resource privateEndpoint 'Microsoft.Network/privateEndpoints@2020-08-01' = {
name: endpointName
location: location
properties: {
subnet: {
id: infrastructureSubnetId
}
privateLinkServiceConnections: [
{
properties: {
privateLinkServiceId: resourceId
groupIds: groupIds
}
name: 'pec-${endpointName}'
}
]
}
}
```
So you can see after deployed, allow privateendpoint connection is all as I provided only 'ServerConnection' and 'RESTAPI'.

![image](https://github.com/Azure/bicep/assets/3973924/9ff66bc5-7fdb-42a7-8c33-4c96103443e3)

Now the que. is this is bug?
Please help me in this situaion how to fix it.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the deployment from the supplied Bicep template for Microsoft.SignalRService/signalR@2024-03-01, then compare the requested privateEndpoints name and allow values with the deployed SignalR resource. Done means the configured private endpoint name is preserved and its ServerConnection and RESTAPI rules are reflected after deployment.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.