Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Add-AzureHDInsightStorage

Add-AzureHDInsightStorage

microsoft.windowsazure.commands.hdinsight.dll

Synopsis

Adds a Microsoft Azure Blob Storage account entry to a target HDInsight configuration.

Syntax

Add-AzureHDInsightStorage [-Config] [-StorageAccountKey] [-StorageAccountName] [<CommonParameters>]

Detailed Description

This topic describes the cmdlet in the .7.2 version of the Microsoft Azure PowerShell module. To find out the version of the module you're using, from the Azure PowerShell console, type (get-module azure).version.

Parameters

-Config <AzureHDInsightConfig>

The target configuration to which storage account information is added.

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-StorageAccountKey <String>

The storage account key needed to access the storage account that is being added to the target configuration.

Aliases

None

Required?

true

Position

2

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-StorageAccountName <String>

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Unknown --------------------------

PS C:\>

-------------------------- Unknown --------------------------

Add storage

PS C:\> Add a storage account.
          PS C:\>$storeconfig = Add-AzureHDInsightStorage -Config $config -StorageAccountName name -StorageAccountKey key


          Configure storage accounts and access.
          PS C:\>$subid = (Get-AzureSubscription ???Current).SubscriptionId
          $key1 = Get-AzureStorageKey yourblobstorage | %{ $_.Primary }
          $key2 = Get-AzureStorageKey yoursecondblobstorage | %{ $_.Primary }
          $creds = Get-Credential
          $oozieCreds = Get-Credential
          $hiveCreds = Get-Credential
          New-AzureHDInsightClusterConfig -ClusterSizeInNodes 4 `
          | Set-AzureHDInsightDefaultStorage -StorageAccountName yourblobstorage.blob.core.windows.net
          -StorageAccountKey $key1 -StorageContainerName &quot;yourcontainer&quot;
          | Add-AzureHDInsightStorage -StorageAccountName yoursecondbobstorage.blob.core.windows.net -StorageAccountKey $key2 `
          | Add-AzureHDInsightMetastore -SqlAzureServerName &quot;yoursqlserver.database.windows.net&quot; -DatabaseName &quot;yourOozieDatabaseName&quot; -Credential $oozieCreds -MetastoreType OozieMetastore `
          | Add-AzureHDInsightMetastore -SqlAzureServerName &quot;yoursqlserver.database.widows.net&quot; -DatabaseName &quot;yourHiveDatabaseName&quot; -Credential $hiveCreds -MetastoreType HiveMetastore  `
          | New-AzureHDInsightCluster -Subscription $subid -Credential $creds

Online Version