The Wayback Machine - https://web.archive.org/web/20200522110246/https://github.com/Azure/azure-powershell/issues/11554
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-AzCdnProfileSupportedOptimizationType output did not match with docs example #11554

Open
t-bzhan opened this issue Apr 13, 2020 · 1 comment
Open

Comments

@t-bzhan
Copy link
Contributor

@t-bzhan t-bzhan commented Apr 13, 2020

Description

The output of Get-AzCdnProfileSupportedOptimizationType did not match with the docs example.
I guess we could override the ToString method of the PSOptimizationType to fix that, but I did not know how to verify the PS output using the assert statements described here.

Steps to reproduce

Get-AzCdnProfileSupportedOptimizationType -ProfileName {profile name} -ResourceGroupName {resource group name}

The output is like:
image

Environment data

Name                           Value
----                           -----
PSVersion                      5.1.18362.628
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.18362.628
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Module versions

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     1.4.2      Az.Cdn                              {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile...}
Script     1.3.1      Az.Cdn                              {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile...}

Debug output

DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions/4d894474-aa7f-4611-b830-344860c3eb9c/resourceGroups/bin-foo/providers/Microsoft.Cdn/profiles/bin-location-ms1/getSupportedOptimizationTypes?api-version=2019-04-15

Headers:
x-ms-client-request-id        : 37b48e58-a369-4aa0-8628-47e6f03daf33
accept-language               : en-US

Body:


DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Pragma                        : no-cache
x-ms-request-id               : c13eb03f-1064-4c3a-9367-a022ae6bd9a3
x-ms-client-request-id        : 10bc4adb-9258-4689-af21-c7904516e9ff
OData-Version                 : 4.0
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-correlation-request-id   : 54cf0aca-21e2-4ca3-96d9-6d8b346026c8
x-ms-routing-request-id       : SOUTHEASTASIA:20200413T042954Z:54cf0aca-21e2-4ca3-96d9-6d8b346026c8
X-Content-Type-Options        : nosniff
Cache-Control                 : no-cache
Date                          : Mon, 13 Apr 2020 04:29:53 GMT
Server                        : Microsoft-IIS/8.5
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET

Body:
{
  "supportedOptimizationTypes": [
    "GeneralWebDelivery"
  ]
}

VERBOSE: Success!

Error output

N/A
@t-bzhan t-bzhan added the triage label Apr 13, 2020
@dingmeng-xue
Copy link
Contributor

@dingmeng-xue dingmeng-xue commented Apr 13, 2020

It needs CDN team to review this issue. @1VarunCh1, @lsmith130

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.