Skip to content

Commit d39cff0

Browse files
committed
minor fix
1 parent 2b61732 commit d39cff0

File tree

2 files changed

+54
-5
lines changed

2 files changed

+54
-5
lines changed

.vscode/launch.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,60 @@
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
}

src/azure-cli-core/azure/cli/core/what_if.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
IMPORTANT: The what-if service requires client-side authentication to operate under the
1111
caller's subscription and permissions. Server-side authentication is not supported for
1212
what-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
"""
1914
from typing import Dict, Any, Optional
2015
from knack.log import get_logger

0 commit comments

Comments
 (0)