Hi all, I am trying to create an Azure integration...
# azure
c
Hi all, I am trying to create an Azure integration runtime in Data Factory Managed Virtual Network. When using the code below, I get an error like {"code":"ManagedVNetReferencedNotExist","message":"Invalid reference to the managed Virtual Network 'default'. The managed Virtual Network does not exist.","target":null,"details":null}}
Copy code
import pulumi
import pulumi_azure_native as azure_native

integration_runtime1 = azure_native.datafactory.IntegrationRuntime("integrationRuntime1",
    factory_name="df-my-test-0001",
    integration_runtime_name="integrationRuntime1",
    properties=azure_native.datafactory.ManagedIntegrationRuntimeArgs(
        compute_properties=azure_native.datafactory.IntegrationRuntimeComputePropertiesArgs(
            data_flow_properties=azure_native.datafactory.IntegrationRuntimeDataFlowPropertiesArgs(
                compute_type="General",
                core_count=8,
                time_to_live=10,
            ),
            location="West Europe",
        ),
        managed_virtual_network=azure_native.datafactory.ManagedVirtualNetworkReferenceArgs(
            reference_name="default",
            type="ManagedVirtualNetworkReference",
        ),
        type="Managed",
    ),
    resource_group_name="rg-my-test-000",
    opts=pulumi.ResourceOptions(protect=True))
So I assume the managed vnet need to be created first. However I am not able to find a respective resource provider in azure native / datafactory. Any ideas?
a
Need to create the VNet first, and subnet . Also needs private link and private endpoint, seems that also requires a load balancer from what I've encountered, maybe there's a different way
c
Hi Peter, thanks for your reply. Yes, I agree, that the Vnet has to be created first, but I cannot find a respective resource provider in azure native. The REST API call to create a managed Vnet for ADF is this:
PUT <https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}?api-version=2018-06-01>
However, as said I was not able to locate the respective resource provider in azure native yet.
a
It's all part of the network apis where you look to build all the network pieces, it had me baffled for a bit. Then it's a somewhat simple link in the ADF config to link the network details
c
Did some more digging. It's not part of azure native so far. https://github.com/pulumi/pulumi-azure-native/issues/896.