Skip to content

Commit

Permalink
Updated based on PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadabdalla committed Aug 2, 2022
1 parent 5620898 commit 6cc5455
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/Microsoft.DataFactory/factories/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ param name string
@description('Optional. The name of the Managed Virtual Network.')
param managedVirtualNetworkName string = ''

@description('Optional. Configuration Details for managed private endpoints in the managed virtual network.')
@description('Optional. An array of managed private endpoints objects created in the Data Factory managed virtual network.')
param managedPrivateEndpoints array = []

@description('Optional. The object for the configuration of a Integration Runtime.')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ param dataFactoryName string
@description('Required. The name of the Managed Virtual Network.')
param name string

@description('Optional. Enable telemetry via the Customer Usage Attribution ID (GUID).')
@description('Optional. An array of managed private endpoints objects created in the Data Factory managed virtual network.')
param managedPrivateEndpoints array = []

@description('Optional. Enable telemetry via the Customer Usage Attribution ID (GUID).')
param enableDefaultTelemetry bool = true

var enableReferencedModulesTelemetry = false

resource defaultTelemetry 'Microsoft.Resources/deployments@2021-04-01' = if (enableDefaultTelemetry) {
name: 'pid-47ed15a6-730a-4827-bcb4-0fd963ffbd82-${uniqueString(deployment().name)}'
properties: {
Expand Down Expand Up @@ -41,7 +43,7 @@ module managedVirtualNetwork_managedPrivateEndpoint 'managedPrivateEndpoints/dep
fqdns: managedPrivateEndpoint.fqdns
groupId: managedPrivateEndpoint.groupId
privateLinkResourceId: managedPrivateEndpoint.privateLinkResourceId
enableDefaultTelemetry: enableDefaultTelemetry
enableDefaultTelemetry: enableReferencedModulesTelemetry
}
}]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This module deploys a Managed Virtual Network for an Azure Data Factory
| Parameter Name | Type | Default Value | Description |
| :-- | :-- | :-- | :-- |
| `enableDefaultTelemetry` | bool | `True` | Enable telemetry via the Customer Usage Attribution ID (GUID). |
| `managedPrivateEndpoints` | _[managedPrivateEndpoints](managedPrivateEndpoints/readme.md)_ array | `[]` | Enable telemetry via the Customer Usage Attribution ID (GUID). |
| `managedPrivateEndpoints` | _[managedPrivateEndpoints](managedPrivateEndpoints/readme.md)_ array | `[]` | An array of managed private endpoints objects created in the Data Factory managed virtual network. |


### Parameter Usage: `managedPrivateEndpoints`
Expand Down
2 changes: 1 addition & 1 deletion modules/Microsoft.DataFactory/factories/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
| `integrationRuntime` | _[integrationRuntime](integrationRuntime/readme.md)_ object | `{object}` | | The object for the configuration of a Integration Runtime. |
| `location` | string | `[resourceGroup().location]` | | Location for all Resources. |
| `lock` | string | `''` | `['', CanNotDelete, ReadOnly]` | Specify the type of lock. |
| `managedPrivateEndpoints` | array | `[]` | | Configuration Details for managed private endpoints in the managed virtual network. |
| `managedPrivateEndpoints` | array | `[]` | | An array of managed private endpoints objects created in the Data Factory managed virtual network. |
| `managedVirtualNetworkName` | string | `''` | | The name of the Managed Virtual Network. |
| `privateEndpoints` | array | `[]` | | Configuration Details for private endpoints. For security reasons, it is recommended to use private endpoints whenever possible. |
| `publicNetworkAccess` | string | `''` | `['', Disabled, Enabled]` | Whether or not public network access is allowed for this resource. For security reasons it should be disabled. If not specified, it will be disabled by default if private endpoints are set. |
Expand Down

0 comments on commit 6cc5455

Please sign in to comment.