https://pulumi.com logo
#azure
Title
# azure
s

stale-insurance-9177

05/15/2020, 3:49 PM
Hi All, I'm getting unexpected behavior when trying to access properties of an existing Data Factory instance. Am I missing something, or are others seeing the same weirdness? Here is the code to access three existing resources:
Copy code
let keyVault = vznaz.azure.keyvault.getKeyVault({ name: "kv-dp-test",
resourceGroupName: resourcegroupName
 })
  
let storage = vznaz.azure.storage.getAccount({ name: "storagedptest", 
resourceGroupName: resourcegroupName
})

let  dataFactory = vznaz.azure.datafactory.getFactory({name: "adf-dp-test",
 resourceGroupName: resourcegroupName
 })

 export const test = "key vault name is:" +  keyVault.vaultUri;
 export const test2 = "factory name is:" + dataFactory.id ;
 export const test3 = "storage host endpoint is" + storage.primaryBlobHost;

Outputs:
    test : "key vault name is:<https://kv-dp-test.vault.azure.net/>"
    test2: "factory name is:undefined"
    test3: "storage host endpoint <http://isstoragedptest.blob.core.windows.net|isstoragedptest.blob.core.windows.net>"
There is no output for the Data Factory id! I have triple checked the name of the resource, resource group and that it exists. Any ideas what is happening?
t

tall-librarian-49374

05/15/2020, 3:59 PM
That’s weird. Even if the ID is undefined, you should see “factory name is:“, right?
s

stale-insurance-9177

05/15/2020, 4:10 PM
Yeah I copied the wrong output, sorry. I updated the post with th e right output. It does show factory name is : undefined.
t

tall-librarian-49374

05/15/2020, 4:29 PM
Which
@pulumi/azure
version are you on?
s

stale-insurance-9177

05/18/2020, 4:14 PM
Sorry for delay. v2.0.0
And I didn't answer your question. @pulumi/azure version is "1.13.0"
t

tall-librarian-49374

05/18/2020, 6:54 PM
I believe this error has been fixed in recent versions
I suggest updating to 3.5.1 or whatever is the latest, if you can
3 Views