Closed
Description
openedon Jan 10, 2023
Proof:
IgnoreHttpsStatusCode
should be IgnoreHttpStatusCode
. In the request IgnoreHttpsStatusCode
is set to true
, in the response IgnoreHttpStatusCode
is given back as null
.
PUT /subscriptions/<subscriptionId>/resourceGroups/acctestRG-appinsights-230110201859929790/providers/Microsoft.Insights/webTests/acctestappinsightswebtests-230110201859929790?api-version=2022-06-15 HTTP/1.1
Host: management.azure.com
User-Agent: Go/go1.19.1 (amd64-darwin) go-autorest/v14.2.1 hashicorp/go-azure-sdk/webtestsapis/2022-06-15 HashiCorp Terraform/1.3.6 (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-azurerm/acc pid-222c6c49-1b0a-5959-a213-6608f9eb8820
Content-Length: 943
Content-Type: application/json; charset=utf-8
X-Ms-Authorization-Auxiliary:
X-Ms-Correlation-Request-Id: fd431c7a-5ba3-c380-033b-8cf8daaad713
Accept-Encoding: gzip
{"kind":"standard","location":"westeurope","properties":{"Description":"web_test","Enabled":true,"Frequency":900,"Kind":"standard","Locations":[{"Id":"us-tx-sn1-azr"},{"Id":"us-il-ch1-azr"}],"Name":"acctestappinsightswebtests-230110201859929790","Request":{"FollowRedirects":true,"HttpVerb":"POST","Headers":[{"key":"x-header","value":"testheader"},{"key":"x-header-2","value":"testheaderupdated"}],"ParseDependentRequests":true,"RequestBody":"eyJ0ZXN0IjogInZhbHVlIn0=","RequestUrl":"https://microsoft.com"},"RetryEnabled":true,"SyntheticMonitorId":"acctestappinsightswebtests-230110201859929790","Timeout":120,"ValidationRules":{"ExpectedHttpStatusCode":200,"IgnoreHttpsStatusCode":true,"SSLCheck":true}},"tags":{"ENV":"web_test","hidden-link:/subscriptions/<subscriptionId>/resourceGroups/acctestRG-appinsights-230110201859929790/providers/Microsoft.Insights/components/acctestappinsights-230110201859929790":"Resource"}}
2023/01/10 20:20:24 [DEBUG] AzureRM Response for https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/acctestRG-appinsights-230110201859929790/providers/Microsoft.Insights/webTests/acctestappinsightswebtests-230110201859929790?api-version=2022-06-15:
HTTP/2.0 200 OK
Access-Control-Expose-Headers: Request-Context
Cache-Control: no-cache
Content-Type: application/json; charset=utf-8
Date: Tue, 10 Jan 2023 19:20:24 GMT
Expires: -1
Pragma: no-cache
Request-Context: appId=cid-v1:7f83c1fe-8c94-4d55-9337-4ddc696f61ed
Server: Microsoft-IIS/10.0
Strict-Transport-Security: max-age=31536000; includeSubDomains
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Ms-Correlation-Request-Id: fd431c7a-5ba3-c380-033b-8cf8daaad713
X-Ms-Ratelimit-Remaining-Subscription-Writes: 1199
X-Ms-Request-Id: a76ac668-e7a4-4230-88ed-9e507a07c401
X-Ms-Routing-Request-Id: WESTEUROPE:20230110T192024Z:a76ac668-e7a4-4230-88ed-9e507a07c401
X-Powered-By: ASP.NET
{
"id": "/subscriptions/<subscriptionId>/resourceGroups/acctestRG-appinsights-230110201859929790/providers/microsoft.insights/webtests/acctestappinsightswebtests-230110201859929790",
"name": "acctestappinsightswebtests-230110201859929790",
"type": "microsoft.insights/webtests",
"location": "westeurope",
"tags": {
"ENV": "web_test",
"hidden-link:/subscriptions/<subscriptionId>/resourceGroups/acctestRG-appinsights-230110201859929790/providers/Microsoft.Insights/components/acctestappinsights-230110201859929790": "Resource"
},
"kind": "standard",
"etag": "\"4d05e634-0000-0200-0000-63bdba780000\"",
"properties": {
"SyntheticMonitorId": "acctestappinsightswebtests-230110201859929790",
"Name": "acctestappinsightswebtests-230110201859929790",
"Description": "web_test",
"Enabled": true,
"Frequency": 900,
"Timeout": 120,
"Kind": "standard",
"RetryEnabled": true,
"Locations": [
{
"Id": "us-tx-sn1-azr"
},
{
"Id": "us-il-ch1-azr"
}
],
"Configuration": null,
"Request": {
"RequestUrl": "https://microsoft.com",
"Headers": [
{
"Key": "x-header",
"Value": "testheader"
},
{
"Key": "x-header-2",
"Value": "testheaderupdated"
}
],
"HttpVerb": "POST",
"RequestBody": "eyJ0ZXN0IjogInZhbHVlIn0=",
"ParseDependentRequests": true,
"FollowRedirects": true
},
"ValidationRules": {
"ExpectedHttpStatusCode": 200,
"IgnoreHttpStatusCode": null,
"ContentValidation": null,
"SSLCheck": true,
"SSLCertRemainingLifetimeCheck": null
},
"provisioningState": "Succeeded"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment