ARM Deployment using KeyVault and certificates for Azure Data Lake Store -


i want create hdi/spark cluster accesses azure data lake store using arm templates , azure key vault.

so far created cluster manually , stored arm template. tried populate sensitive values azure key vault struggeling how pass in "identitycertificate" correctly.

i followed steps create certificate , everything: https://github.com/azure/azure-quickstart-templates/tree/master/201-hdinsight-datalake-store-azure-storage , steps upload certificate keyvault: https://blogs.technet.microsoft.com/kv/2016/09/26/get-started-with-azure-key-vault-certificates/

however, referenceing keyvault secret in arm template ends in error:

{ "status": "failed", "error": { "code": "resourcedeploymentfailure", "message": "the resource operation completed terminal provisioning state 'failed'.", "details": [ { "code": "invaliddocumenterrorcode", "message": "deploymentdocument 'ambariconfiguration_1_7' failed validation. error: 'error while getting access datalake storage account gbhdi: specified network password not correct.\r\n.'" } ] } }

doing manually in azure portal using same certificate etc. works fine tried set "identitycertificate" parameter manually using base64 encoded value of certificate did not work either value would need pass parameter if hard-code it?

any other ideas on this?

thanks in advance, -gerhard

seems found issue , related failed arm deployments leave fragments of hdi cluster , new deployments not overwrite these fragments use old settings

after deleting cluster (which not working anyway) deploy expected.

however, worth mentioning certificate has stored in keyvault secret , not key , has base64 encoded!

here powershell script used:

#add certificate keyvault  $base64cert = [system.convert]::tobase64string((get-content $certfilepath -encoding byte)) $base64cert | out-file $certfilepath.replace(".pfx", ".base64.txt") $cer3 = set-azurekeyvaultsecret -vaultname $vaultname -name $certname -  secretvalue (convertto-securestring –string $base64cert –asplaintext –force) 

hope helps other people facing same issue!

-gerhard


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -