2
votes

I have an HDInsight cluster in Azure Government and want to add an additional storage account that resides in Azure Government. I’m attempting to do this via the portal’s Script Actions > + Submit New > Add an Azure Storage account and providing my Azure Government storage account’s name and key. This fails with the error (from the cluster’s output file in /var/lib/ambari-agent/data/output-XXXX.txt):

Key encryption is enabled STORAGE ACCOUNT IS: testgovwebiaasdiag
Validate storage account creds: Invalid Credentials provided for
storage account ('Start downloading script locally: ',

u'https://hdiconfigactions.blob.core.windows.net/linuxaddstorageaccountv01/add-storage-account-v01.sh')
Fromdos line ending conversion successful ('Unexpected error:',
"('Execution of custom script failed with exit code', 139)")

Looking at the documentation for “Add additional storage accounts to HDInsight”, there is no indication that this script supports Azure Government. What is the recommended path forward? Should I download the script and modify it? If so, what modifications are needed to support Azure Government?

1

1 Answers

1
votes

At this time, the out of the box "Add additional storage accounts to HDInsight" script does not support Azure Government.

This is because it does not allow for the storage endpoints to be set for the different Azure Government endpoints.

I have created this script which supports Azure Goverment. It is a modified version of the out of the box one that overrides the endpoints with those for Azure Government.

You can use this script via Script Actions > + Submit New > - Custom and provide this URI in the Bash script URI. You can then provide the same parameters, storage account name and storage account key and run you script.

To get support for Azure Government in the out of the box script, please vote for this in the Azure Government feedback forum: Support for Azure Government storage accounts in HDInsight