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
 

Set-AzureHDInsightDefaultStorage

Set-AzureHDInsightDefaultStorage

microsoft.windowsazure.commands.hdinsight.dll

Synopsis

Sets default storage account setting in the HDInsight cluster configuration object.

Syntax

Set-AzureHDInsightDefaultStorage [-Config] [-StorageAccountKey] [-StorageAccountName] [-StorageContainerName] [<CommonParameters>]

Detailed Description

Sets default storage account setting in the HDInsight cluster configuration object.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 configuration object in which to set default storage account information.

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 default storage account.

Aliases

None

Required?

true

Position

2

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-StorageAccountName <String>

The name of the default storage account.

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-StorageContainerName <String>

Name of the default storage container for the cluster.

Aliases

None

Required?

true

Position

3

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Sets default storage account --------------------------

Set default storage account setting in the HDInsight cluster configuration object.

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