Skip to content

Commit a0fd2a0

Browse files
CopilotalexweiningerMicroFish91
authored
Use StorageV2 for storage account creation (#4892)
* Initial plan * Update storage account creation from v1 to v2 (StorageV2) Co-authored-by: alexweininger <12476526+alexweininger@users.noreply.github.com> * Final verification complete - all checks passed Co-authored-by: alexweininger <12476526+alexweininger@users.noreply.github.com> * Revert unintended changes to main.js Co-authored-by: MicroFish91 <40250218+MicroFish91@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: alexweininger <12476526+alexweininger@users.noreply.github.com> Co-authored-by: MicroFish91 <40250218+MicroFish91@users.noreply.github.com>
1 parent be9e460 commit a0fd2a0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/commands/addBinding/settingSteps/StorageTypePromptStep.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class StorageTypePromptStep extends AzureWizardPromptStep<IFunctionWizard
4040

4141
if (!context.useStorageEmulator) {
4242
promptSteps.push(new StorageAccountListStep(
43-
{ kind: StorageAccountKind.Storage, performance: StorageAccountPerformance.Standard, replication: StorageAccountReplication.LRS },
43+
{ kind: StorageAccountKind.StorageV2, performance: StorageAccountPerformance.Standard, replication: StorageAccountReplication.LRS },
4444
{ kind: [StorageAccountKind.BlobStorage], learnMoreLink: 'https://aka.ms/T5o0nf' }
4545
));
4646
}

src/commands/appSettings/connectionSettings/azureWebJobsStorage/StorageConnectionListStep.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class StorageConnectionListStep<T extends IStorageConnectionWizardContext
7474
if (!(context as IStorageAzureConnectionWizard).storageAccount) {
7575
promptSteps.push(new StorageAccountListStep(
7676
{ // INewStorageAccountDefaults
77-
kind: StorageAccountKind.Storage,
77+
kind: StorageAccountKind.StorageV2,
7878
performance: StorageAccountPerformance.Standard,
7979
replication: StorageAccountReplication.LRS
8080
},

src/commands/createFunctionApp/createCreateFunctionAppComponents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export async function createCreateFunctionAppComponents(context: ICreateFunction
4848
const executeSteps: AzureWizardExecuteStep<IFunctionAppWizardContext>[] = [];
4949

5050
const storageAccountCreateOptions: INewStorageAccountDefaults = {
51-
kind: StorageAccountKind.Storage,
51+
kind: StorageAccountKind.StorageV2,
5252
performance: StorageAccountPerformance.Standard,
5353
replication: StorageAccountReplication.LRS
5454
};

0 commit comments

Comments
 (0)