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

[BUG] [Compute VM] scheduledEventsPolicy in PUT Request does not exist in PUT and GET Response #31703

Open
ms-zhenhua opened this issue Nov 29, 2024 · 1 comment
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Mgmt This issue is related to a management-plane library.

Comments

@ms-zhenhua
Copy link
Contributor

ms-zhenhua commented Nov 29, 2024

API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-03-01/virtualMachine.json

API Spec version

2024-03-01

Describe the bug

PUT response does not return scheduledEventsPolicy which exists in PUT Request, which is not consistent with the MS-DOC.

PUT Request:

PUT https: //management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acctest0001/providers/Microsoft.Compute/virtualMachines/acctest0001?api-version=2024-03-01
X-Ms-Correlation-Request-Id: 3be91d8c-1ad8-851d-64c8-701eb11965e5
{
"location": "westeurope",
"properties": {
"hardwareProfile": {
"vmSize": "Standard_DS3_v2"
},
"networkProfile": {
"networkInterfaces": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acctest0001/providers/Microsoft.Network/networkInterfaces/acctest0001",
"properties": {
"primary": false
}
}
]
},
"osProfile": {
"adminPassword": "xxx",
"adminUsername": "testadmin",
"computerName": "hostname230630032848831819",
"linuxConfiguration": {
"disablePasswordAuthentication": false
}
},
"scheduledEventsPolicy": {
"scheduledEventsAdditionalPublishingTargets": {
"eventGridAndResourceGraph": {
"enable": false
}
},
"userInitiatedReboot": {
"automaticallyApprove": true
},
"userInitiatedRedeploy": {
"automaticallyApprove": true
}
},
"securityProfile": {
"encryptionAtHost": true
},
"storageProfile": {
"imageReference": {
"offer": "UbuntuServer",
"publisher": "Canonical",
"sku": "16.04-LTS",
"version": "latest"
},
"osDisk": {
"caching": "ReadWrite",
"createOption": "FromImage",
"name": "myosdisk1",
"writeAcceleratorEnabled": false
}
}
}
}

Expected behavior

PUT response should return the same value of scheduledEventsPolicy which exists in PUT Request,

Actual behavior

PUT response does not return the value of scheduledEventsPolicy which exists in PUT Request,

Reproduction Steps

  1. Create a VM with scheduledEventsPolicy in PUT Request
  2. Check scheduledEventsPolicy in PUT Response

Environment

No response

@ms-zhenhua ms-zhenhua added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Nov 29, 2024
@v-jiaodi v-jiaodi added the Mgmt This issue is related to a management-plane library. label Dec 3, 2024
@v-jiaodi
Copy link
Member

v-jiaodi commented Dec 3, 2024

@haagha Please help take a look, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Mgmt This issue is related to a management-plane library.
Projects
None yet
Development

No branches or pull requests

3 participants