Skip to content

Commit e0c9bb1

Browse files
authored
Merge pull request #102004 from neilboyd/patch-1
storage context is not used any more
2 parents 2bc991a + 660715b commit e0c9bb1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

articles/key-vault/secrets/overview-storage-keys-powershell.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,9 @@ The commands in this section complete the following actions:
200200

201201
First, set the variables to be used by the PowerShell cmdlets in the following steps. Be sure to update the \<YourStorageAccountName\> and \<YourKeyVaultName\> placeholders.
202202

203-
We will also use the Azure PowerShell [New-AzStorageContext](/powershell/module/az.storage/new-azstoragecontext) cmdlets to get the context of your Azure storage account.
204-
205203
```azurepowershell-interactive
206204
$storageAccountName = <YourStorageAccountName>
207205
$keyVaultName = <YourKeyVaultName>
208-
209-
$storageContext = New-AzStorageContext -StorageAccountName $storageAccountName -Protocol Https -StorageAccountKey Key1 #(or "Primary" for Classic Storage Account)
210206
```
211207

212208
### Define a shared access signature definition template

0 commit comments

Comments
 (0)