Skip to content

Commit fed0fd1

Browse files
authored
Merge pull request #24 from cloudgraphdev/fix/expressRouteGateways-unknown-field
Fix/express route gateways unknown field
2 parents 18062c3 + 43f1af9 commit fed0fd1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/services/expressRouteGateways/format.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,21 @@ export default ({
3030
name,
3131
type,
3232
region,
33+
subscriptionId: account,
3334
etag,
3435
autoScaleConfiguration,
3536
expressRouteConnections: expressRouteConnections?.map(connection => ({
36-
...connection,
3737
id: id || cuid(),
38+
name: connection?.name,
39+
provisioningState: connection?.provisioningState,
40+
authorizationKey: connection?.authorizationKey,
41+
routingWeight: connection?.routingWeight,
42+
enableInternetSecurity: connection?.enableInternetSecurity,
43+
expressRouteGatewayBypass: connection?.expressRouteGatewayBypass,
3844
expressRouteCircuitPeering: {
3945
id: connection?.expressRouteCircuitPeering?.id,
4046
},
4147
routingConfiguration: {
42-
...connection?.routingConfiguration,
4348
associatedRouteTable: {
4449
id: connection?.routingConfiguration?.associatedRouteTable?.id || cuid(),
4550
},

0 commit comments

Comments
 (0)