Skip to content

Commit cf5b8f5

Browse files
authored
Enable admin user when deploying via deployImageApi (#573)
1 parent 59585f5 commit cf5b8f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/commands/image/deployImageApi/deployImage.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { showContainerAppNotification } from "../../createContainerApp/showConta
1313
import { ContainerAppUpdateStep } from "../imageSource/ContainerAppUpdateStep";
1414
import { ImageSourceListStep } from "../imageSource/ImageSourceListStep";
1515
import { ContainerRegistryImageSourceContext } from "../imageSource/containerRegistry/ContainerRegistryImageSourceContext";
16+
import { RegistryEnableAdminUserStep } from "../imageSource/containerRegistry/acr/RegistryEnableAdminUserStep";
1617
import type { DeployImageApiContext } from "./deployImageApi";
1718

1819
export async function deployImage(context: IActionContext & Partial<ContainerRegistryImageSourceContext>, node: ContainerAppItem): Promise<void> {
@@ -29,6 +30,7 @@ export async function deployImage(context: IActionContext & Partial<ContainerReg
2930
wizardContext.telemetry.properties.revisionMode = containerApp.revisionsMode;
3031

3132
const promptSteps: AzureWizardPromptStep<DeployImageApiContext>[] = [
33+
new RegistryEnableAdminUserStep(),
3234
new ImageSourceListStep(),
3335
new ContainerAppOverwriteConfirmStep(),
3436
];

0 commit comments

Comments
 (0)