File tree Expand file tree Collapse file tree 2 files changed +54
-5
lines changed
src/azure-cli-core/azure/cli/core Expand file tree Collapse file tree 2 files changed +54
-5
lines changed Original file line number Diff line number Diff line change 5252 " WaitOnNormalExit" ,
5353 " RedirectOutput"
5454 ]
55+ },
56+ {
57+ "name" : " Debug VM Create What-If" ,
58+ "type" : " debugpy" ,
59+ "request" : " launch" ,
60+ "python" : " ${workspaceRoot}/env/Scripts/python.exe" ,
61+ "program" : " ${workspaceRoot}/src/azure-cli/azure/cli/__main__.py" ,
62+ "cwd" : " ${workspaceRoot}" ,
63+ // "args": [
64+ // "vm",
65+ // "create",
66+ // "--resource-group",
67+ // "azcli-script-insight",
68+ // "--name",
69+ // "MyVM_01",
70+ // "--image",
71+ // "UbuntuLTS",
72+ // "--size",
73+ // "Standard_D2s_v3",
74+ // "--admin-username",
75+ // "azureuser",
76+ // "--generate-ssh-keys",
77+ // "--what-if",
78+ // "--debug"
79+ // ],
80+ // az sql server create --name sql-server-123 --resource-group azure-cli-test-rg --location eastus --admin-user azureadmin --admin-password P@ssw0rd-123 --what-if
81+ "args" : [
82+ " sql" ,
83+ " server" ,
84+ " create" ,
85+ " --name" ,
86+ " sql-server-123" ,
87+ " --resource-group" ,
88+ " azure-cli-test-rg1" ,
89+ " --location" ,
90+ " eastus" ,
91+ " --admin-user" ,
92+ " azureadmin" ,
93+ " --admin-password" ,
94+ " P@ssw0rd-123" ,
95+ " --what-if" ,
96+ " --debug"
97+ ],
98+ // "args": [
99+ // "vm",
100+ // "list",
101+ // "--debug"
102+ // ],
103+ "console" : " integratedTerminal" ,
104+ "justMyCode" : false ,
105+ "stopOnEntry" : false ,
106+ "env" : {
107+ "PYTHONPATH" : " ${workspaceRoot}/src/azure-cli-core:${workspaceRoot}/src/azure-cli:${workspaceRoot}/src/azure-cli-telemetry:${workspaceRoot}/src/azure-cli-testsdk"
108+ }
55109 }
56110 ]
57111}
Original file line number Diff line number Diff line change 1010IMPORTANT: The what-if service requires client-side authentication to operate under the
1111caller's subscription and permissions. Server-side authentication is not supported for
1212what-if operations as it would not provide access to the caller's subscription.
13-
14- This client now uses AzureCliCredential to obtain an access token for the caller's subscription.
15-
16- The what-if service will use your configured credentials to access your subscription
17- and preview deployment changes under your permissions.
1813"""
1914from typing import Dict , Any , Optional
2015from knack .log import get_logger
You can’t perform that action at this time.
0 commit comments