Skip to content

Removing explicit parameters for creating KV-managed storage sas definitions #6006

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 23, 2018

Conversation

dragav
Copy link
Contributor

@dragav dragav commented Apr 20, 2018

Description

Removed the explicit parameters previously used to compose SAS token definitions for KeyVault-managed storage accounts. These are no longer supported by the service, and have been replaced with the 'templateUri', 'sasType' and 'validityPeriod' parameters, respectively.
Updated the Set-AKVManagedStorageSasDefinition help file, including a working example.

Checklist

…nitions

updating help file, with end-to-end example
@maddieclayton
Copy link
Contributor

PS C:\> $sa=Get-AzureRmStorageAccount -Name mysa -ResourceGroupName myrg
PS C:\> $kv=Get-AzureRmKeyVault -VaultName mykv
PS C:\> Add-AzureKeyVaultManagedStorageAccount -VaultName $kv.VaultName -AccountName $sa.StorageAccountName -AccountResourceId $sa.Id -ActiveKeyName key1 -RegenerationPeriod 180
PS C:\> $sctx=New-AzureStorageContext -StorageAccountName $sa.StorageAccountName -Protocol Https -StorageAccountKey Key1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does running this require access to the actual storage account key? Can users provide a raw "dummy" key such as 00000000?

@maddieclayton maddieclayton merged commit c219007 into Azure:keyvault_preview Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants