worried-hydrogen-32482
08/06/2021, 4:12 PMException: invoke of azure-native:datafactory:listIntegrationRuntimeAuthKeys failed: invocation of azure-native:datafactory:listIntegrationRuntimeAuthKeys returned an error: request failed /subscriptions/xxxxxx/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys: autorest/azure: Service returned an error. Status=404 Code="ResourceGroupNotFound" Message="Resource group '{resourceGroupName}' could not be found.
Here is a sample code:
from pulumi import export
from pulumi_azure_native import resources, datafactory
# Resource Group
resource_group = resources.ResourceGroup(
"self-hosted-runtime", resource_group_name="self-hosted-runtime")
# Data Factory
adf = datafactory.factory.Factory(
"self-hosted-runtime",
factory_name="self-hosted-runtime",
resource_group_name=resource_group.name
)
# Self Hosted Runtime
shr = datafactory.IntegrationRuntime(
"self-hosted-runtime",
integration_runtime_name="self-hosted-runetime",
factory_name=adf.name,
resource_group_name=resource_group.name,
properties=datafactory.SelfHostedIntegrationRuntimeArgs(
type="SelfHosted",
)
)
# Self Hosted Runtime Auth Keys
shr_auth_keys = datafactory.list_integration_runtime_auth_keys(
adf.name, shr.name, resource_group.name)
export("shr", shr)
export("shr-auth-keys", shr_auth_keys)
red-match-15116
08/06/2021, 4:28 PMshr_auth_keys = pulumi.Output.all(adf.name, shr.name, resource_group.name).apply(lambda args: datafactory.list_integration_runtime_auth_keys(*args))