Skip to content

Commit dbfd70d

Browse files
committed
Refine parameters for set cmdlet
1 parent c89ba57 commit dbfd70d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/AzureRM.Storage.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ function Set-AzureRmStorageAccount
4949
param(
5050
[string] [Parameter(Position=0, ValueFromPipelineByPropertyName=$true)] $ResourceGroupName,
5151
[string] [Parameter(Position=1, ValueFromPipelineByPropertyName=$true)][alias("StorageAccountName")] $Name,
52-
[string] [Parameter(Position=2, ValueFromPipelineByPropertyName=$true)] $Location,
5352
[string] [Parameter(Position=3, ValueFromPipelineByPropertyName=$true)] $Type,
5453
[Hashtable[]] [Parameter(Position=4, ValueFromPipelineByPropertyName=$true)] $Tags)
5554
BEGIN {
@@ -59,7 +58,7 @@ BEGIN {
5958
PROCESS {
6059
$createParms = New-Object -Type Microsoft.Azure.Management.Storage.Models.StorageAccountUpdateParameters
6160
$createParms.AccountType = [Microsoft.Azure.Management.Storage.Models.AccountType]::StandardLRS
62-
$createParms.Location = $Location
61+
6362
$getTask = $client.StorageAccounts.UpdateAsync($ResourceGroupName, $Name, $createParms, [System.Threading.CancellationToken]::None)
6463
$sa = $getTask.Result
6564
}

0 commit comments

Comments
 (0)