< Back
Set-AzureRmCurrentStorageAccount
Post
NAME Set-AzureRmCurrentStorageAccount
SYNOPSIS
Modifies the current Storage account of the specified subscription.
SYNTAX
Set-AzureRmCurrentStorageAccount -Context <IStorageContext> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
Set-AzureRmCurrentStorageAccount [-DefaultProfile <IAzureContextContainer>] -Name <String> -ResourceGroupName <String> [<CommonParameters>]
DESCRIPTION
The Set-AzureRmCurrentStorageAccount cmdlet modifies the current Azure Storage account of the specified Azure subscription in Azure PowerShell.
The current Storage account is used as the default when you access Storage without specifying a Storage account name.
PARAMETERS
-Context <IStorageContext>
Specifies an AzureStorageContext object for the current Storage account. To obtain a storage context object, use the New-AzureStorageContext
cmdlet.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName, ByValue)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with Azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the Storage account that this cmdlet modifies.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the resource group that contains the Storage account to modify.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
IStorageContext
Parameter 'Context' accepts value of type 'IStorageContext' from the pipeline
OUTPUTS
System.String
NOTES
Example 1: Set the current Storage account
PS C:\\>Set-AzureRmCurrentStorageAccount -ResourceGroupName "RG01" -AccountName "mystorageaccount"
This command sets the default Storage account for the specified subscription.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ageaccount
Set-AzureRmStorageAccount
SYNOPSIS
Modifies the current Storage account of the specified subscription.
SYNTAX
Set-AzureRmCurrentStorageAccount -Context <IStorageContext> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
Set-AzureRmCurrentStorageAccount [-DefaultProfile <IAzureContextContainer>] -Name <String> -ResourceGroupName <String> [<CommonParameters>]
DESCRIPTION
The Set-AzureRmCurrentStorageAccount cmdlet modifies the current Azure Storage account of the specified Azure subscription in Azure PowerShell.
The current Storage account is used as the default when you access Storage without specifying a Storage account name.
PARAMETERS
-Context <IStorageContext>
Specifies an AzureStorageContext object for the current Storage account. To obtain a storage context object, use the New-AzureStorageContext
cmdlet.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName, ByValue)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with Azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the Storage account that this cmdlet modifies.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the resource group that contains the Storage account to modify.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
IStorageContext
Parameter 'Context' accepts value of type 'IStorageContext' from the pipeline
OUTPUTS
System.String
NOTES
Example 1: Set the current Storage account
PS C:\\>Set-AzureRmCurrentStorageAccount -ResourceGroupName "RG01" -AccountName "mystorageaccount"
This command sets the default Storage account for the specified subscription.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ageaccount
Set-AzureRmStorageAccount