Added Additional Purview Outputs (#196)

This commit is contained in:
Marvin Buss 2021-10-19 08:58:31 +02:00 коммит произвёл GitHub
Родитель ef2881c903
Коммит 18215e948a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 33 добавлений и 3 удалений

Просмотреть файл

@ -197,6 +197,8 @@ resource managementResourceGroup 'Microsoft.Resources/resourceGroups@2021-01-01'
output vnetId string = networkServices.outputs.vnetId output vnetId string = networkServices.outputs.vnetId
output firewallPrivateIp string = networkServices.outputs.firewallPrivateIp output firewallPrivateIp string = networkServices.outputs.firewallPrivateIp
output purviewId string = governanceResources.outputs.purviewId output purviewId string = governanceResources.outputs.purviewId
output purviewManagedStorageId string = governanceResources.outputs.purviewManagedStorageId
output purviewManagedEventHubId string = governanceResources.outputs.purviewManagedEventHubId
output privateDnsZoneIdKeyVault string = enableDnsAndFirewallDeployment ? globalDnsZones.outputs.privateDnsZoneIdKeyVault : '' output privateDnsZoneIdKeyVault string = enableDnsAndFirewallDeployment ? globalDnsZones.outputs.privateDnsZoneIdKeyVault : ''
output privateDnsZoneIdDataFactory string = enableDnsAndFirewallDeployment ? globalDnsZones.outputs.privateDnsZoneIdDataFactory : '' output privateDnsZoneIdDataFactory string = enableDnsAndFirewallDeployment ? globalDnsZones.outputs.privateDnsZoneIdDataFactory : ''
output privateDnsZoneIdDataFactoryPortal string = enableDnsAndFirewallDeployment ? globalDnsZones.outputs.privateDnsZoneIdDataFactoryPortal : '' output privateDnsZoneIdDataFactoryPortal string = enableDnsAndFirewallDeployment ? globalDnsZones.outputs.privateDnsZoneIdDataFactoryPortal : ''

Просмотреть файл

@ -5,7 +5,7 @@
"_generator": { "_generator": {
"name": "bicep", "name": "bicep",
"version": "0.4.613.9944", "version": "0.4.613.9944",
"templateHash": "9055763377870284445" "templateHash": "4087825762436790606"
} }
}, },
"parameters": { "parameters": {
@ -2055,7 +2055,7 @@
"_generator": { "_generator": {
"name": "bicep", "name": "bicep",
"version": "0.4.613.9944", "version": "0.4.613.9944",
"templateHash": "7767679708356243486" "templateHash": "4473469867800634757"
} }
}, },
"parameters": { "parameters": {
@ -2147,7 +2147,7 @@
"_generator": { "_generator": {
"name": "bicep", "name": "bicep",
"version": "0.4.613.9944", "version": "0.4.613.9944",
"templateHash": "9950942984261810285" "templateHash": "17646672709394268624"
} }
}, },
"parameters": { "parameters": {
@ -2463,6 +2463,14 @@
"purviewId": { "purviewId": {
"type": "string", "type": "string",
"value": "[resourceId('Microsoft.Purview/accounts', parameters('purviewName'))]" "value": "[resourceId('Microsoft.Purview/accounts', parameters('purviewName'))]"
},
"purviewManagedStorageId": {
"type": "string",
"value": "[reference(resourceId('Microsoft.Purview/accounts', parameters('purviewName'))).managedResources.storageAccount]"
},
"purviewManagedEventHubId": {
"type": "string",
"value": "[reference(resourceId('Microsoft.Purview/accounts', parameters('purviewName'))).managedResources.eventHubNamespace]"
} }
} }
} }
@ -2680,6 +2688,14 @@
"purviewId": { "purviewId": {
"type": "string", "type": "string",
"value": "[reference(resourceId('Microsoft.Resources/deployments', 'purview001'), '2019-10-01').outputs.purviewId.value]" "value": "[reference(resourceId('Microsoft.Resources/deployments', 'purview001'), '2019-10-01').outputs.purviewId.value]"
},
"purviewManagedStorageId": {
"type": "string",
"value": "[reference(resourceId('Microsoft.Resources/deployments', 'purview001'), '2019-10-01').outputs.purviewManagedStorageId.value]"
},
"purviewManagedEventHubId": {
"type": "string",
"value": "[reference(resourceId('Microsoft.Resources/deployments', 'purview001'), '2019-10-01').outputs.purviewManagedEventHubId.value]"
} }
} }
} }
@ -3131,6 +3147,14 @@
"type": "string", "type": "string",
"value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, format('{0}-governance', variables('name'))), 'Microsoft.Resources/deployments', 'governanceResources'), '2019-10-01').outputs.purviewId.value]" "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, format('{0}-governance', variables('name'))), 'Microsoft.Resources/deployments', 'governanceResources'), '2019-10-01').outputs.purviewId.value]"
}, },
"purviewManagedStorageId": {
"type": "string",
"value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, format('{0}-governance', variables('name'))), 'Microsoft.Resources/deployments', 'governanceResources'), '2019-10-01').outputs.purviewManagedStorageId.value]"
},
"purviewManagedEventHubId": {
"type": "string",
"value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, format('{0}-governance', variables('name'))), 'Microsoft.Resources/deployments', 'governanceResources'), '2019-10-01').outputs.purviewManagedEventHubId.value]"
},
"privateDnsZoneIdKeyVault": { "privateDnsZoneIdKeyVault": {
"type": "string", "type": "string",
"value": "[if(parameters('enableDnsAndFirewallDeployment'), reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, format('{0}-global-dns', variables('name'))), 'Microsoft.Resources/deployments', 'globalDnsZones'), '2019-10-01').outputs.privateDnsZoneIdKeyVault.value, '')]" "value": "[if(parameters('enableDnsAndFirewallDeployment'), reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, format('{0}-global-dns', variables('name'))), 'Microsoft.Resources/deployments', 'globalDnsZones'), '2019-10-01').outputs.privateDnsZoneIdKeyVault.value, '')]"

Просмотреть файл

@ -61,3 +61,5 @@ module purviewKeyVaultRoleAssignment 'auxiliary/purviewRoleAssignment.bicep' = {
// Outputs // Outputs
output purviewId string = purview001.outputs.purviewId output purviewId string = purview001.outputs.purviewId
output purviewManagedStorageId string = purview001.outputs.purviewManagedStorageId
output purviewManagedEventHubId string = purview001.outputs.purviewManagedEventHubId

Просмотреть файл

@ -254,3 +254,5 @@ resource purviewPrivateEndpointNamespaceARecord 'Microsoft.Network/privateEndpoi
// Outputs // Outputs
output purviewId string = purview.id output purviewId string = purview.id
output purviewManagedStorageId string = purview.properties.managedResources.storageAccount
output purviewManagedEventHubId string = purview.properties.managedResources.eventHubNamespace