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

Add Guest Configuration VMSS changes to Swagger spec #13465

Merged
merged 10 commits into from
Mar 29, 2021
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,14 @@
"description": "The name of the virtual machine.",
"x-ms-parameter-location": "method"
},
"VMSSNameParameter": {
"name": "vmssName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the virtual machine scale set.",
"x-ms-parameter-location": "method"
},
"MachineNameParameter": {
"name": "machineName",
"in": "path",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -518,16 +518,8 @@
]
},
"allowModuleOverwrite": {
"type": "string",
"description": "If true - new configurations downloaded from the pull service are allowed to overwrite the old ones on the target node. Otherwise, false",
"x-ms-enum": {
"name": "allowModuleOverwrite",
"modelAsString": true
},
"enum": [
"True",
"False"
]
"type": "boolean",
"description": "If true - new configurations downloaded from the pull service are allowed to overwrite the old ones on the target node. Otherwise, false"
aashish1987 marked this conversation as resolved.
Show resolved Hide resolved
},
"actionAfterReboot": {
"type": "string",
Expand All @@ -549,18 +541,9 @@
"description": "The time interval, in minutes, at which the LCM checks a pull service to get updated configurations. This value is ignored if the LCM is not configured in pull mode. The default value is 30."
aashish1987 marked this conversation as resolved.
Show resolved Hide resolved
},
"rebootIfNeeded": {
"type": "string",
"type": "boolean",
"readOnly": true,
"default": "False",
"description": "Set this to true to automatically reboot the node after a configuration that requires reboot is applied. Otherwise, you will have to manually reboot the node for any configuration that requires it. The default value is false. To use this setting when a reboot condition is enacted by something other than DSC (such as Windows Installer), combine this setting with the xPendingReboot module.",
"x-ms-enum": {
"name": "rebootIfNeeded",
"modelAsString": true
},
"enum": [
"True",
"False"
]
"description": "Set this to true to automatically reboot the node after a configuration that requires reboot is applied. Otherwise, you will have to manually reboot the node for any configuration that requires it. The default value is false. To use this setting when a reboot condition is enacted by something other than DSC (such as Windows Installer), combine this setting with the xPendingReboot module."
aashish1987 marked this conversation as resolved.
Show resolved Hide resolved
},
"configurationModeFrequencyMins": {
"type": "number",
aashish1987 marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
}
],
"configurationSetting": {
"rebootIfNeeded": "False",
"rebootIfNeeded": false,
"actionAfterReboot": "ContinueConfiguration",
"configurationModeFrequencyMins": 15,
aashish1987 marked this conversation as resolved.
Show resolved Hide resolved
"configurationMode": "MonitorOnly"
}
}
Expand Down Expand Up @@ -55,9 +54,8 @@
}
],
"configurationSetting": {
"rebootIfNeeded": "False",
"rebootIfNeeded": false,
"actionAfterReboot": "ContinueConfiguration",
"configurationModeFrequencyMins": 15,
aashish1987 marked this conversation as resolved.
Show resolved Hide resolved
"configurationMode": "MonitorOnly"
}
},
Expand Down Expand Up @@ -90,9 +88,8 @@
}
],
"configurationSetting": {
"rebootIfNeeded": "False",
"rebootIfNeeded": false,
"actionAfterReboot": "ContinueConfiguration",
"configurationModeFrequencyMins": 15,
aashish1987 marked this conversation as resolved.
Show resolved Hide resolved
"configurationMode": "MonitorOnly"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
}
],
"configurationSetting": {
"rebootIfNeeded": "False",
"rebootIfNeeded": false,
"actionAfterReboot": "ContinueConfiguration",
"configurationModeFrequencyMins": 15,
"configurationMode": "MonitorOnly"
}
}
Expand Down Expand Up @@ -55,9 +54,8 @@
}
],
"configurationSetting": {
"rebootIfNeeded": "False",
"rebootIfNeeded": false,
"actionAfterReboot": "ContinueConfiguration",
"configurationModeFrequencyMins": 15,
"configurationMode": "MonitorOnly"
}
},
Expand Down Expand Up @@ -90,9 +88,8 @@
}
],
"configurationSetting": {
"rebootIfNeeded": "False",
"rebootIfNeeded": false,
"actionAfterReboot": "ContinueConfiguration",
"configurationModeFrequencyMins": 15,
"configurationMode": "MonitorOnly"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -861,16 +861,8 @@
]
},
"allowModuleOverwrite": {
"type": "string",
"description": "If true - new configurations downloaded from the pull service are allowed to overwrite the old ones on the target node. Otherwise, false",
"x-ms-enum": {
"name": "allowModuleOverwrite",
"modelAsString": true
},
"enum": [
"True",
"False"
]
"type": "boolean",
"description": "If true - new configurations downloaded from the pull service are allowed to overwrite the old ones on the target node. Otherwise, false"
aashish1987 marked this conversation as resolved.
Show resolved Hide resolved
},
"actionAfterReboot": {
"type": "string",
Expand All @@ -892,18 +884,9 @@
"description": "The time interval, in minutes, at which the LCM checks a pull service to get updated configurations. This value is ignored if the LCM is not configured in pull mode. The default value is 30."
},
"rebootIfNeeded": {
"type": "string",
"type": "boolean",
"readOnly": false,
"default": "False",
"description": "Set this to true to automatically reboot the node after a configuration that requires reboot is applied. Otherwise, you will have to manually reboot the node for any configuration that requires it. The default value is false. To use this setting when a reboot condition is enacted by something other than DSC (such as Windows Installer), combine this setting with the xPendingReboot module.",
"x-ms-enum": {
"name": "rebootIfNeeded",
"modelAsString": true
},
"enum": [
"True",
"False"
]
"description": "Set this to true to automatically reboot the node after a configuration that requires reboot is applied. Otherwise, you will have to manually reboot the node for any configuration that requires it. The default value is false. To use this setting when a reboot condition is enacted by something other than DSC (such as Windows Installer), combine this setting with the xPendingReboot module."
},
"configurationModeFrequencyMins": {
"type": "number",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
}
],
"configurationSetting": {
"rebootIfNeeded": "False",
"rebootIfNeeded": false,
"actionAfterReboot": "ContinueConfiguration",
"configurationModeFrequencyMins": 15,
"configurationMode": "MonitorOnly"
}
}
Expand Down Expand Up @@ -55,9 +54,8 @@
}
],
"configurationSetting": {
"rebootIfNeeded": "False",
"rebootIfNeeded": false,
"actionAfterReboot": "ContinueConfiguration",
"configurationModeFrequencyMins": 15,
"configurationMode": "MonitorOnly"
}
},
Expand Down Expand Up @@ -90,9 +88,8 @@
}
],
"configurationSetting": {
"rebootIfNeeded": "False",
"rebootIfNeeded": false,
"actionAfterReboot": "ContinueConfiguration",
"configurationModeFrequencyMins": 15,
"configurationMode": "MonitorOnly"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
}
],
"configurationSetting": {
"rebootIfNeeded": "False",
"rebootIfNeeded": false,
"actionAfterReboot": "ContinueConfiguration",
"configurationModeFrequencyMins": 15,
"configurationMode": "MonitorOnly"
}
}
Expand Down Expand Up @@ -55,9 +54,8 @@
}
],
"configurationSetting": {
"rebootIfNeeded": "False",
"rebootIfNeeded": false,
"actionAfterReboot": "ContinueConfiguration",
"configurationModeFrequencyMins": 15,
"configurationMode": "MonitorOnly"
}
},
Expand Down Expand Up @@ -90,9 +88,8 @@
}
],
"configurationSetting": {
"rebootIfNeeded": "False",
"rebootIfNeeded": false,
"actionAfterReboot": "ContinueConfiguration",
"configurationModeFrequencyMins": 15,
"configurationMode": "MonitorOnly"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -861,16 +861,8 @@
]
},
"allowModuleOverwrite": {
"type": "string",
"description": "If true - new configurations downloaded from the pull service are allowed to overwrite the old ones on the target node. Otherwise, false",
"x-ms-enum": {
"name": "allowModuleOverwrite",
"modelAsString": true
},
"enum": [
"True",
"False"
]
"type": "boolean",
"description": "If true - new configurations downloaded from the pull service are allowed to overwrite the old ones on the target node. Otherwise, false"
},
"actionAfterReboot": {
"type": "string",
Expand All @@ -892,18 +884,9 @@
"description": "The time interval, in minutes, at which the LCM checks a pull service to get updated configurations. This value is ignored if the LCM is not configured in pull mode. The default value is 30."
},
"rebootIfNeeded": {
"type": "string",
"type": "boolean",
"readOnly": false,
"default": "False",
"description": "Set this to true to automatically reboot the node after a configuration that requires reboot is applied. Otherwise, you will have to manually reboot the node for any configuration that requires it. The default value is false. To use this setting when a reboot condition is enacted by something other than DSC (such as Windows Installer), combine this setting with the xPendingReboot module.",
"x-ms-enum": {
"name": "rebootIfNeeded",
"modelAsString": true
},
"enum": [
"True",
"False"
]
"description": "Set this to true to automatically reboot the node after a configuration that requires reboot is applied. Otherwise, you will have to manually reboot the node for any configuration that requires it. The default value is false. To use this setting when a reboot condition is enacted by something other than DSC (such as Windows Installer), combine this setting with the xPendingReboot module."
},
"configurationModeFrequencyMins": {
"type": "number",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"parameters": {
"subscriptionId": "mySubscriptionId",
"resourceGroupName": "myResourceGroupName",
"vmName": "myVMName",
"guestConfigurationAssignmentName": "WhitelistedApplication",
"api-version": "2021-01-25",
"parameters": {
"location": "westcentralus",
"name": "WhitelistedApplication",
"properties": {
"context": "Azure policy",
"guestConfiguration": {
"name": "WhitelistedApplication",
"version": "1.*",
"configurationParameter": [
{
"name": "[InstalledApplication]bwhitelistedapp;Name",
"value": "NotePad,sql"
}
],
"configurationSetting": {
"rebootIfNeeded": false,
"actionAfterReboot": "ContinueConfiguration",
"configurationMode": "MonitorOnly"
}
}
}
}
},
"responses": {
"201": {
"headers": {},
"body": {
"location": "westcentralus",
"id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/WhitelistedApplication",
"name": "WhitelistedApplication",
"properties": {
"complianceStatus": "Pending",
"assignmentHash": null,
"latestReportId": null,
"lastComplianceStatusChecked": null,
"context": "Azure policy",
"guestConfiguration": {
"kind": null,
"name": "WhitelistedApplication",
"version": "1.0.0.3",
"contentUri": null,
"contentHash": null,
"configurationParameter": [
{
"name": "[InstalledApplication]bwhitelistedapp;Name",
"value": "NotePad,sql"
}
],
"configurationSetting": {
"rebootIfNeeded": false,
"actionAfterReboot": "ContinueConfiguration",
"configurationMode": "MonitorOnly"
}
},
"provisioningState": "Succeeded"
}
}
},
"200": {
"headers": {},
"body": {
"location": "westcentralus",
"id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/WhitelistedApplication",
"name": "WhitelistedApplication",
"properties": {
"complianceStatus": "Pending",
"assignmentHash": null,
"latestReportId": null,
"lastComplianceStatusChecked": null,
"context": "Azure policy",
"guestConfiguration": {
"kind": null,
"name": "WhitelistedApplication",
"version": "1.0.0.3",
"contentUri": null,
"contentHash": null,
"configurationParameter": [
{
"name": "[InstalledApplication]bwhitelistedapp;Name",
"value": "NotePad,sql"
}
],
"configurationSetting": {
"rebootIfNeeded": false,
"actionAfterReboot": "ContinueConfiguration",
"configurationMode": "MonitorOnly"
}
},
"provisioningState": "Succeeded"
}
}
}
}
}
Loading