Skip to content

new files for telemetry - #27

Merged
Barbara Kess (barbkess) merged 3 commits into
microsoft:masterfrom
sidneyh:make-directory
May 9, 2016
Merged

Barbara Kess (barbkess) merged 3 commits into
microsoft:masterfrom
sidneyh:make-directory

Conversation

@sidneyh

Copy link
Copy Markdown
Contributor

No description provided.

@sidneyh

Copy link
Copy Markdown
Contributor Author

Barbara Kess (@barbkess)

@barbkess
Barbara Kess (barbkess) merged commit 9264429 into microsoft:master May 9, 2016
Umachandar Jayachandran (uc-msft) pushed a commit that referenced this pull request Aug 31, 2026
The result-checking added for SQL VMs covered only one of five 'az ... update'
call sites. Managed Instances, SQL Databases, elastic pools and instance pools
still piped the CLI output straight into ConvertFrom-Json without inspecting
LASTEXITCODE, and appended their CSV row before the attempt, so a failed update
was recorded identically to a successful one.

The elastic pool path was the worst case:

  az sql elastic-pool update ... 2>\ | ConvertFrom-Json -ErrorAction SilentlyContinue

which discarded the service error text entirely and reported only 'No result
returned', giving no indication of why the update failed.

All five paths now route through a shared Invoke-AzCliLicenseUpdate helper that
checks LASTEXITCODE, surfaces the real service error, and returns a result
object used to populate UpdateResult/UpdateError.

The helper initially wrote its success message with Write-Output from inside the
function, which in PowerShell merges into the return value: callers received a
two-element array rather than the result object, and the message never reached
the transcript. The helper is now silent on the success stream and each caller
logs its own line.

Adds TESTPLAN cases #27-#28 and re-syncs the embedded copy.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants