Azure / Azure/azure-rest-api-specs
`automation`: descNodeConfiguration `IncrementNodeConfigurationBuild` field returned wrong value
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
set `incrementNodeConfigurationBuild` to `true` in PUT, the response of `PUT` is correct as true. but the success GET response the `incrementNodeConfigurationBuild` as `false`.
```
PUT https://management.azure.com/subscriptions/xxx/resourceGroups/acctestRG-auto-230822103806615980/providers/Microsoft.Automation/automationAccounts/acctest-230822103806615980/nodeConfigurations/acctest.localhost?api-version=2022-08-08 HTTP/2.0
content-type: application/json; charset=utf-8
user-agent: HashiCorp/go-azure-sdk (Go-http-Client/1.1 dscnodeconfiguration/2022-08-08) HashiCorp Terraform/1.3.7 (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-azurerm/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820
authorization: Bearer xxxx-A
x-ms-correlation-request-id: c7429087-f185-9b98-ea36-83db8858c4eb
content-length: 857
accept-encoding: gzip
{"name":"acctest.localhost","properties":{"configuration":{"name":"acctest"},"incrementNodeConfigurationBuild":true,"source":{"type":"embeddedContent","value":"instance of MSFT_FileDirectoryConfiguration as $MSFT_FileDirectoryConfiguration1ref\n{\n TargetResourceID = \"[File]bla\";\n Ensure = \"Present\";\n Contents = \"bogus Content\";\n DestinationPath = \"c:\\\\bogus.txt\";\n ModuleName = \"PSDesiredStateConfiguration\";\n SourceInfo = \"::3::9::file\";\n ModuleVersion = \"1.0\";\n ConfigurationName = \"bla\";\n};\ninstance of OMI_ConfigurationDocument\n{\n Version=\"2.0.0\";\n MinimumCompatibleVersion = \"1.0.0\";\n CompatibleVersionAdditionalProperties= {\"Omi_BaseResource:ConfigurationName\"};\n Author=\"bogusAuthor\";\n GenerationDate=\"06/15/2018 14:06:24\";\n GenerationHost=\"bogusComputer\";\n Name=\"acctest\";\n};\n"}}}
HTTP/2.0 201
cache-control: no-cache
pragma: no-cache
content-length: 541
content-type: application/json; charset=utf-8
expires: -1
location: https://management.azure.com/subscriptions/xxxx/resourceGroups/acctestRG-auto-230822103806615980/providers/Microsoft.Automation/automationAccounts/acctest-230822103806615980/nodeConfigurations/acctest.localhost?api-version=2022-08-08
x-ms-request-id: 2e83487b-ee0b-406d-87ae-7bba9f5e8444
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-correlation-request-id: c7429087-f185-9b98-ea36-83db8858c4eb
x-ms-routing-request-id: EASTASIA:20230822T023834Z:6edbc972-3a84-40c9-b194-d89a46f472fe
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-cache: CONFIG_NOCACHE
x-msedge-ref: Ref A: 1F19E035082242E7A7E12E3C75F1CA3D Ref B: SEL221051503037 Ref C: 2023-08-22T02:38:32Z
date: Tue, 22 Aug 2023 02:38:33 GMT
{"id":"/subscriptions/xxxx/resourceGroups/acctestRG-auto-230822103806615980/providers/Microsoft.Automation/automationAccounts/acctest-230822103806615980/nodeConfigurations/acctest.localhost","name":"acctest.localhost","type":"Microsoft.Automation/AutomationAccounts/nodeConfigurations","properties":{"lastModifiedTime":"2023-08-22T02:38:34.2430032+00:00","creationTime":"2023-08-22T02:38:34.2430032+00:00","configuration":{"name":"acctest"},"source":null,"nodeCount":0,"incrementNodeConfigurationBuild":true}}
```
GET after PUT:
```
GET https://management.azure.com/subscriptions/xxxx/resourceGroups/acctestRG-auto-230822103806615980/providers/Microsoft.Automation/automationAccounts/acctest-230822103806615980/nodeConfigurations/acctest.localhost?api-version=2022-08-08 HTTP/2.0
odata-maxversion: 4.0
odata-version: 4.0
accept: application/json; charset=utf-8; IEEE754Compatible=false
authorization: Bearer xxxx-A
x-ms-correlation-request-id: c7429087-f185-9b98-ea36-83db8858c4eb
content-type: application/json; charset=utf-8
user-agent: HashiCorp/go-azure-sdk (Go-http-Client/1.1 dscnodeconfiguration/2022-08-08) HashiCorp Terraform/1.3.7 (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-azurerm/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820
accept-encoding: gzip
content-length: 0
HTTP/2.0 200
cache-control: no-cache
pragma: no-cache
content-length: 542
content-type: application/json; charset=utf-8
expires: -1
x-ms-request-id: 63f63a58-e3c6-446a-b53e-3cfb34c4950e
x-ms-ratelimit-remaining-subscription-reads: 11999
x-ms-correlation-request-id: c7429087-f185-9b98-ea36-83db8858c4eb
x-ms-routing-request-id: EASTASIA:20230822T023845Z:8ea977fa-f5bc-4a1e-ad09-9f2891fb6108
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-cache: CONFIG_NOCACHE
x-msedge-ref: Ref A: 2825B46491F940419A40101AC57995B3 Ref B: SEL221051503021 Ref C: 2023-08-22T02:38:44Z
date: Tue, 22 Aug 2023 02:38:45 GMT
{"id":"/subscriptions/xxxx/resourceGroups/acctestRG-auto-230822103806615980/providers/Microsoft.Automation/automationAccounts/acctest-230822103806615980/nodeConfigurations/acctest.localhost","name":"acctest.localhost","type":"Microsoft.Automation/AutomationAccounts/nodeConfigurations","properties":{"lastModifiedTime":"2023-08-22T02:38:34.2502195+00:00","creationTime":"2023-08-22T02:38:34.2502195+00:00","configuration":{"name":"acctest"},"source":null,"nodeCount":0,"incrementNodeConfigurationBuild":false}}
```
Contributor guide
Research direction
No repository file or test is named. Start by locating the Azure Automation nodeConfigurations specification for API version 2022-08-08 and compare the PUT and GET definitions for incrementNodeConfigurationBuild. Done means the specification correctly represents the field so a value set to true remains true in a subsequent GET response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, openapi
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100