Skip to content

Commit 0ba14ba

Browse files
committed
add-storage-account doesn't retrieve the storage account key. Closes #74
1 parent facf03e commit 0ba14ba

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Azure.Functions.Cli/Actions/LocalActions/AddStorageAccountSettingAction.cs

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public override async Task RunAsync()
5454
}
5555
else
5656
{
57+
storageAccount = await _armManager.LoadAsync(storageAccount);
5758
var name = $"{storageAccount.StorageAccountName}_STORAGE";
5859
_secretsManager.SetSecret(name, storageAccount.GetConnectionString());
5960
ColoredConsole

src/Azure.Functions.Cli/Arm/IArmManager.cs

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ internal interface IArmManager
2525
Task<Subscription> GetCurrentSubscriptionAsync();
2626
Task<Site> LoadSitePublishingCredentialsAsync(Site site);
2727
Task<IEnumerable<StorageAccount>> GetStorageAccountsAsync();
28+
Task<StorageAccount> LoadAsync(StorageAccount storageAccount);
2829
Task<IEnumerable<StorageAccount>> GetStorageAccountsAsync(Subscription subscription);
2930
Task<IEnumerable<ArmWrapper<object>>> getAzureResourceAsync(string resourceName);
3031
Task<StorageAccount> GetStorageAccountsAsync(ArmWrapper<object> armWrapper);

0 commit comments

Comments
 (0)