Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.68k stars 5.1k forks source link

`automation` does not return data for `advancedSchedule` in `softwareUpdateConfigurations` #24436

Open jackofallops opened 1 year ago

jackofallops commented 1 year ago

Response from PUT and GET on softwareUpdateConfigurations always returns null for advancedSchedule making the configuration unavailable for reading. This data should be included in the response.

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/softwareUpdateConfiguration.json#LL220C6-L220C175

API Version: 2019-06-01

:authority: management.azure.com
:method: PUT
:path: /subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571/providers/Microsoft.Automation/automationAccounts/acctest-230614140339288571/softwareUpdateConfigurations/acctest-suc-230614140339288571?api-version=2019-06-01
:scheme: https
content-type: application/json; charset=utf-8
user-agent: Go/go1.19.3 (amd64-darwin) go-autorest/v14.2.1 hashicorp/go-azure-sdk/softwareupdateconfiguration/2019-06-01 HashiCorp Terraform/1.4.6 (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-azurerm/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820
authorization: Bearer [REDACTED]
x-ms-correlation-request-id: 578e8bb5-1dff-6fca-5484-98f9e48de775
content-length: 1050
accept-encoding: gzip

{"properties":{"scheduleInfo":{"advancedSchedule":{"monthDays":[1,10,15],"monthlyOccurrences":[{"day":"Tuesday","occurrence":1}],"weekDays":["Monday","Tuesday"]},"description":"foo-schedule","expiryTime":"","expiryTimeOffsetMinutes":0,"frequency":"Hour","interval":1,"isEnabled":true,"nextRun":"","nextRunOffsetMinutes":0,"startTime":"2023-06-14T22:03:39Z","startTimeOffsetMinutes":0,"timeZone":"Etc/UTC"},"updateConfiguration":{"duration":"PT1H1M1S","linux":{"excludedPackageNameMasks":["apt"],"includedPackageClassifications":"Security","includedPackageNameMasks":["vim"],"rebootSetting":"IfRequired"},"operatingSystem":"Linux","targets":{"azureQueries":[{"locations":["westus"],"scope":["/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571"]}],"nonAzureQueries":[{"functionAlias":"savedSearch1","workspaceId":"/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571/providers/Microsoft.OperationalInsights/workspaces/acctestLAW-230614140339288571"}]}}}}

:status: 201
cache-control: no-cache
pragma: no-cache
content-length: 1696
content-type: application/json; charset=utf-8
expires: -1
location: https://management.azure.com/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571/providers/Microsoft.Automation/automationAccounts/acctest-230614140339288571/softwareUpdateConfigurations/acctest-suc-230614140339288571?api-version=2019-06-01
x-ms-request-id: 849ff343-3894-4790-beb7-da734417800b
x-ms-ratelimit-remaining-subscription-resource-requests: 99
server: Microsoft-HTTPAPI/2.0
x-ms-correlation-request-id: 578e8bb5-1dff-6fca-5484-98f9e48de775
x-ms-routing-request-id: GERMANYWESTCENTRAL:20230614T120527Z:c3f70045-d12d-44aa-8ccc-8b1efb0854d1
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
date: Wed, 14 Jun 2023 12:05:27 GMT

{"id":"/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571/providers/Microsoft.Automation/automationAccounts/acctest-230614140339288571/softwareUpdateConfigurations/acctest-suc-230614140339288571","name":"acctest-suc-230614140339288571","type":null,"properties":{"updateConfiguration":{"operatingSystem":"Linux","windows":null,"linux":{"includedPackageClassifications":"Security","excludedPackageNameMasks":["apt"],"includedPackageNameMasks":["vim"],"rebootSetting":"IfRequired"},"targets":{"azureQueries":[{"scope":["/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571"],"tagSettings":null,"locations":["westus"]}],"nonAzureQueries":[{"functionAlias":"savedSearch1","workspaceId":"/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571/providers/Microsoft.OperationalInsights/workspaces/acctestLAW-230614140339288571"}]},"duration":"PT1H1M1S","azureVirtualMachines":null,"nonAzureComputerNames":null},"scheduleInfo":{"description":"foo-schedule","startTime":"2023-06-14T22:03:00+00:00","startTimeOffsetMinutes":0.0,"expiryTime":"9999-12-31T23:59:00+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":true,"nextRun":"2023-06-14T22:03:00+00:00","nextRunOffsetMinutes":0.0,"interval":1,"frequency":"Hour","creationTime":"2023-06-14T12:05:27.15+00:00","lastModifiedTime":"2023-06-14T12:05:27.15+00:00","timeZone":"Etc/UTC","advancedSchedule":null},"provisioningState":"Provisioning","createdBy":"{scrubbed}","error":null,"tasks":null,"creationTime":"2023-06-14T12:05:27.3+00:00","lastModifiedBy":null,"lastModifiedTime":"2023-06-14T12:05:27.3166667+00:00"}}
:authority: management.azure.com
:method: GET
:path: /subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571/providers/Microsoft.Automation/automationAccounts/acctest-230614140339288571/softwareUpdateConfigurations/acctest-suc-230614140339288571?api-version=2019-06-01
:scheme: https
content-type: application/json; charset=utf-8
user-agent: Go/go1.19.3 (amd64-darwin) go-autorest/v14.2.1 hashicorp/go-azure-sdk/softwareupdateconfiguration/2019-06-01 HashiCorp Terraform/1.4.6 (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-azurerm/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820
authorization: Bearer [REDACTED]
x-ms-correlation-request-id: 578e8bb5-1dff-6fca-5484-98f9e48de775
accept-encoding: gzip

:status: 200
cache-control: no-cache
pragma: no-cache
content-type: application/json; charset=utf-8
content-encoding: gzip
expires: -1
vary: Accept-Encoding
x-ms-request-id: fcf1699b-36ee-43d7-b3a8-f95888d1c1f3
x-ms-ratelimit-remaining-subscription-reads: 11998
server: Microsoft-HTTPAPI/2.0
x-ms-correlation-request-id: 578e8bb5-1dff-6fca-5484-98f9e48de775
x-ms-routing-request-id: GERMANYWESTCENTRAL:20230614T120607Z:b50403ae-a5de-4f7b-8524-3d4db1ec516c
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
date: Wed, 14 Jun 2023 12:06:07 GMT

{"id":"/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571/providers/Microsoft.Automation/automationAccounts/acctest-230614140339288571/softwareUpdateConfigurations/acctest-suc-230614140339288571","name":"acctest-suc-230614140339288571","type":null,"properties":{"updateConfiguration":{"operatingSystem":"Linux","windows":null,"linux":{"includedPackageClassifications":"Security","excludedPackageNameMasks":["apt"],"includedPackageNameMasks":["vim"],"rebootSetting":"IfRequired"},"targets":{"azureQueries":[{"scope":["/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571"],"tagSettings":null,"locations":["westus"]}],"nonAzureQueries":[{"functionAlias":"savedSearch1","workspaceId":"/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571/providers/Microsoft.OperationalInsights/workspaces/acctestLAW-230614140339288571"}]},"duration":"PT1H1M1S","azureVirtualMachines":null,"nonAzureComputerNames":null},"scheduleInfo":{"description":"foo-schedule","startTime":"2023-06-14T22:03:00+00:00","startTimeOffsetMinutes":0.0,"expiryTime":"9999-12-31T23:59:00+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":true,"nextRun":"2023-06-14T22:03:00+00:00","nextRunOffsetMinutes":0.0,"interval":1,"frequency":"Hour","creationTime":"2023-06-14T12:05:27.15+00:00","lastModifiedTime":"2023-06-14T12:05:27.15+00:00","timeZone":"Etc/UTC","advancedSchedule":null},"provisioningState":"Succeeded","createdBy":"{scrubbed}","error":null,"tasks":null,"creationTime":"2023-06-14T12:05:27.3+00:00","lastModifiedBy":null,"lastModifiedTime":"2023-06-14T12:05:27.3166667+00:00"}}
ghost commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jaspkaur28.

Issue Details
Response from PUT and GET on `softwareUpdateConfigurations` always returns `null` for `advancedSchedule` making the configuration unavailable for reading. This data should be included in the response. https://github.com/Azure/azure-rest-api-specs/blob/main/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/softwareUpdateConfiguration.json#LL220C6-L220C175 API Version: `2019-06-01` ``` :authority: management.azure.com :method: PUT :path: /subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571/providers/Microsoft.Automation/automationAccounts/acctest-230614140339288571/softwareUpdateConfigurations/acctest-suc-230614140339288571?api-version=2019-06-01 :scheme: https content-type: application/json; charset=utf-8 user-agent: Go/go1.19.3 (amd64-darwin) go-autorest/v14.2.1 hashicorp/go-azure-sdk/softwareupdateconfiguration/2019-06-01 HashiCorp Terraform/1.4.6 (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-azurerm/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820 authorization: Bearer [REDACTED] x-ms-correlation-request-id: 578e8bb5-1dff-6fca-5484-98f9e48de775 content-length: 1050 accept-encoding: gzip {"properties":{"scheduleInfo":{"advancedSchedule":{"monthDays":[1,10,15],"monthlyOccurrences":[{"day":"Tuesday","occurrence":1}],"weekDays":["Monday","Tuesday"]},"description":"foo-schedule","expiryTime":"","expiryTimeOffsetMinutes":0,"frequency":"Hour","interval":1,"isEnabled":true,"nextRun":"","nextRunOffsetMinutes":0,"startTime":"2023-06-14T22:03:39Z","startTimeOffsetMinutes":0,"timeZone":"Etc/UTC"},"updateConfiguration":{"duration":"PT1H1M1S","linux":{"excludedPackageNameMasks":["apt"],"includedPackageClassifications":"Security","includedPackageNameMasks":["vim"],"rebootSetting":"IfRequired"},"operatingSystem":"Linux","targets":{"azureQueries":[{"locations":["westus"],"scope":["/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571"]}],"nonAzureQueries":[{"functionAlias":"savedSearch1","workspaceId":"/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571/providers/Microsoft.OperationalInsights/workspaces/acctestLAW-230614140339288571"}]}}}} :status: 201 cache-control: no-cache pragma: no-cache content-length: 1696 content-type: application/json; charset=utf-8 expires: -1 location: https://management.azure.com/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571/providers/Microsoft.Automation/automationAccounts/acctest-230614140339288571/softwareUpdateConfigurations/acctest-suc-230614140339288571?api-version=2019-06-01 x-ms-request-id: 849ff343-3894-4790-beb7-da734417800b x-ms-ratelimit-remaining-subscription-resource-requests: 99 server: Microsoft-HTTPAPI/2.0 x-ms-correlation-request-id: 578e8bb5-1dff-6fca-5484-98f9e48de775 x-ms-routing-request-id: GERMANYWESTCENTRAL:20230614T120527Z:c3f70045-d12d-44aa-8ccc-8b1efb0854d1 strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff date: Wed, 14 Jun 2023 12:05:27 GMT {"id":"/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571/providers/Microsoft.Automation/automationAccounts/acctest-230614140339288571/softwareUpdateConfigurations/acctest-suc-230614140339288571","name":"acctest-suc-230614140339288571","type":null,"properties":{"updateConfiguration":{"operatingSystem":"Linux","windows":null,"linux":{"includedPackageClassifications":"Security","excludedPackageNameMasks":["apt"],"includedPackageNameMasks":["vim"],"rebootSetting":"IfRequired"},"targets":{"azureQueries":[{"scope":["/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571"],"tagSettings":null,"locations":["westus"]}],"nonAzureQueries":[{"functionAlias":"savedSearch1","workspaceId":"/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571/providers/Microsoft.OperationalInsights/workspaces/acctestLAW-230614140339288571"}]},"duration":"PT1H1M1S","azureVirtualMachines":null,"nonAzureComputerNames":null},"scheduleInfo":{"description":"foo-schedule","startTime":"2023-06-14T22:03:00+00:00","startTimeOffsetMinutes":0.0,"expiryTime":"9999-12-31T23:59:00+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":true,"nextRun":"2023-06-14T22:03:00+00:00","nextRunOffsetMinutes":0.0,"interval":1,"frequency":"Hour","creationTime":"2023-06-14T12:05:27.15+00:00","lastModifiedTime":"2023-06-14T12:05:27.15+00:00","timeZone":"Etc/UTC","advancedSchedule":null},"provisioningState":"Provisioning","createdBy":"{scrubbed}","error":null,"tasks":null,"creationTime":"2023-06-14T12:05:27.3+00:00","lastModifiedBy":null,"lastModifiedTime":"2023-06-14T12:05:27.3166667+00:00"}} ``` ``` :authority: management.azure.com :method: GET :path: /subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571/providers/Microsoft.Automation/automationAccounts/acctest-230614140339288571/softwareUpdateConfigurations/acctest-suc-230614140339288571?api-version=2019-06-01 :scheme: https content-type: application/json; charset=utf-8 user-agent: Go/go1.19.3 (amd64-darwin) go-autorest/v14.2.1 hashicorp/go-azure-sdk/softwareupdateconfiguration/2019-06-01 HashiCorp Terraform/1.4.6 (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-azurerm/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820 authorization: Bearer [REDACTED] x-ms-correlation-request-id: 578e8bb5-1dff-6fca-5484-98f9e48de775 accept-encoding: gzip :status: 200 cache-control: no-cache pragma: no-cache content-type: application/json; charset=utf-8 content-encoding: gzip expires: -1 vary: Accept-Encoding x-ms-request-id: fcf1699b-36ee-43d7-b3a8-f95888d1c1f3 x-ms-ratelimit-remaining-subscription-reads: 11998 server: Microsoft-HTTPAPI/2.0 x-ms-correlation-request-id: 578e8bb5-1dff-6fca-5484-98f9e48de775 x-ms-routing-request-id: GERMANYWESTCENTRAL:20230614T120607Z:b50403ae-a5de-4f7b-8524-3d4db1ec516c strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff date: Wed, 14 Jun 2023 12:06:07 GMT {"id":"/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571/providers/Microsoft.Automation/automationAccounts/acctest-230614140339288571/softwareUpdateConfigurations/acctest-suc-230614140339288571","name":"acctest-suc-230614140339288571","type":null,"properties":{"updateConfiguration":{"operatingSystem":"Linux","windows":null,"linux":{"includedPackageClassifications":"Security","excludedPackageNameMasks":["apt"],"includedPackageNameMasks":["vim"],"rebootSetting":"IfRequired"},"targets":{"azureQueries":[{"scope":["/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571"],"tagSettings":null,"locations":["westus"]}],"nonAzureQueries":[{"functionAlias":"savedSearch1","workspaceId":"/subscriptions/[REDACTED]/resourceGroups/acctestRG-auto-230614140339288571/providers/Microsoft.OperationalInsights/workspaces/acctestLAW-230614140339288571"}]},"duration":"PT1H1M1S","azureVirtualMachines":null,"nonAzureComputerNames":null},"scheduleInfo":{"description":"foo-schedule","startTime":"2023-06-14T22:03:00+00:00","startTimeOffsetMinutes":0.0,"expiryTime":"9999-12-31T23:59:00+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":true,"nextRun":"2023-06-14T22:03:00+00:00","nextRunOffsetMinutes":0.0,"interval":1,"frequency":"Hour","creationTime":"2023-06-14T12:05:27.15+00:00","lastModifiedTime":"2023-06-14T12:05:27.15+00:00","timeZone":"Etc/UTC","advancedSchedule":null},"provisioningState":"Succeeded","createdBy":"{scrubbed}","error":null,"tasks":null,"creationTime":"2023-06-14T12:05:27.3+00:00","lastModifiedBy":null,"lastModifiedTime":"2023-06-14T12:05:27.3166667+00:00"}} ```
Author: jackofallops
Assignees: -
Labels: `question`, `Automation`, `Service Attention`, `customer-reported`
Milestone: -
navba-MSFT commented 1 year ago

Adding Service team to look into this.