Hi i'm trying to import an existing Event hub Clus...
# general
b
Hi i'm trying to import an existing Event hub Cluster in Azure. But geting allways same error imputs no match with the resource . Using the same program to create a new cluster works. and i see no diference in the ARM Templates for the 2 clusters. This is my program. Can someone help me understand this error and where it's not working.
Copy code
def import_cluster(self) -> None:
        """
        Import an event hub cluster.
        Args:
        Returns:
          None
        """
        cluster_name = environment_variables.CLUSTER_NAME
        cluster_id_import = '/subscriptions/' + self.eh_subscription_id + '/resourceGroups/' + self.eh_rg + '/providers/Microsoft.EventHub/clusters/' + cluster_name
        azure_native.eventhub.Cluster(
            resource_name=cluster_name,
            cluster_name=cluster_name,
            location='West Europe',
            resource_group_name='streamming-pulumi-poc',
            sku=azure_native.eventhub.ClusterSkuArgs(
                capacity=1,
                name="Dedicated",
            ),
            tags={
            },
            opts=pulumi.ResourceOptions(import_=cluster_id_import)
        )