Skip to content

Commit c6d70ab

Browse files
aashish1987Aashish Rajaram Salokhe
andauthored
BugFix: Set readonly flag to false for non-read only properties in Guest Configuration (#14999)
* Bug-Fix: Remove read-only properties from Guest Configuration objects * Resolved PR comments. Updated examples * Add Assignment Type * Fix Prettier check Co-authored-by: Aashish Rajaram Salokhe <aasalokh@microsoft.com>
1 parent b471a74 commit c6d70ab

File tree

9 files changed

+60
-6
lines changed

9 files changed

+60
-6
lines changed

specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/createOrUpdateGuestConfigurationAssignment.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"guestConfiguration": {
1414
"name": "WhitelistedApplication",
1515
"version": "1.*",
16+
"contentUri": "https://thisisfake/pacakge",
17+
"contentHash": "123contenthash",
18+
"assignmentType": "ApplyAndAutoCorrect",
1619
"configurationParameter": [
1720
{
1821
"name": "[InstalledApplication]bwhitelistedapp;Name",

specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/createOrUpdateGuestConfigurationHCRPAssignment.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"guestConfiguration": {
1414
"name": "WhitelistedApplication",
1515
"version": "1.*",
16+
"contentUri": "https://thisisfake/pacakge",
17+
"contentHash": "123contenthash",
18+
"assignmentType": "ApplyAndAutoCorrect",
1619
"configurationParameter": [
1720
{
1821
"name": "[InstalledApplication]bwhitelistedapp;Name",

specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/guestconfiguration.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,15 +803,27 @@
803803
"description": "Version of the guest configuration."
804804
},
805805
"contentUri": {
806-
"readOnly": true,
807806
"type": "string",
808807
"description": "Uri of the storage where guest configuration package is uploaded."
809808
},
810809
"contentHash": {
811-
"readOnly": true,
812810
"type": "string",
813811
"description": "Combined hash of the guest configuration package and configuration parameters."
814812
},
813+
"assignmentType": {
814+
"type": "string",
815+
"description": "Specifies the assignment type and execution of the configuration. Possible values are Audit, DeployAndAutoCorrect, ApplyAndAutoCorrect and ApplyAndMonitor.",
816+
"x-ms-enum": {
817+
"name": "assignmentType",
818+
"modelAsString": true
819+
},
820+
"enum": [
821+
"Audit",
822+
"DeployAndAutoCorrect",
823+
"ApplyAndAutoCorrect",
824+
"ApplyAndMonitor"
825+
]
826+
},
815827
"configurationParameter": {
816828
"type": "array",
817829
"items": {

specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2020-06-25/examples/createOrUpdateGuestConfigurationAssignment.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"guestConfiguration": {
1414
"name": "WhitelistedApplication",
1515
"version": "1.*",
16+
"contentUri": "https://thisisfake/pacakge",
17+
"contentHash": "123contenthash",
18+
"assignmentType": "ApplyAndAutoCorrect",
1619
"configurationParameter": [
1720
{
1821
"name": "[InstalledApplication]bwhitelistedapp;Name",

specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2020-06-25/examples/createOrUpdateGuestConfigurationHCRPAssignment.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"guestConfiguration": {
1414
"name": "WhitelistedApplication",
1515
"version": "1.*",
16+
"contentUri": "https://thisisfake/pacakge",
17+
"contentHash": "123contenthash",
18+
"assignmentType": "ApplyAndAutoCorrect",
1619
"configurationParameter": [
1720
{
1821
"name": "[InstalledApplication]bwhitelistedapp;Name",

specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2020-06-25/guestconfiguration.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,15 +803,27 @@
803803
"description": "Version of the guest configuration."
804804
},
805805
"contentUri": {
806-
"readOnly": true,
807806
"type": "string",
808807
"description": "Uri of the storage where guest configuration package is uploaded."
809808
},
810809
"contentHash": {
811-
"readOnly": true,
812810
"type": "string",
813811
"description": "Combined hash of the guest configuration package and configuration parameters."
814812
},
813+
"assignmentType": {
814+
"type": "string",
815+
"description": "Specifies the assignment type and execution of the configuration. Possible values are Audit, DeployAndAutoCorrect, ApplyAndAutoCorrect and ApplyAndMonitor.",
816+
"x-ms-enum": {
817+
"name": "assignmentType",
818+
"modelAsString": true
819+
},
820+
"enum": [
821+
"Audit",
822+
"DeployAndAutoCorrect",
823+
"ApplyAndAutoCorrect",
824+
"ApplyAndMonitor"
825+
]
826+
},
815827
"configurationParameter": {
816828
"type": "array",
817829
"items": {

specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2021-01-25/examples/createOrUpdateGuestConfigurationAssignment.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"guestConfiguration": {
1414
"name": "WhitelistedApplication",
1515
"version": "1.*",
16+
"contentUri": "https://thisisfake/pacakge",
17+
"contentHash": "123contenthash",
18+
"assignmentType": "ApplyAndAutoCorrect",
1619
"configurationParameter": [
1720
{
1821
"name": "[InstalledApplication]bwhitelistedapp;Name",

specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2021-01-25/examples/createOrUpdateGuestConfigurationHCRPAssignment.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"guestConfiguration": {
1414
"name": "WhitelistedApplication",
1515
"version": "1.*",
16+
"contentUri": "https://thisisfake/pacakge",
17+
"contentHash": "123contenthash",
18+
"assignmentType": "ApplyAndAutoCorrect",
1619
"configurationParameter": [
1720
{
1821
"name": "[InstalledApplication]bwhitelistedapp;Name",

specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2021-01-25/guestconfiguration.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,15 +1088,27 @@
10881088
"description": "Version of the guest configuration."
10891089
},
10901090
"contentUri": {
1091-
"readOnly": true,
10921091
"type": "string",
10931092
"description": "Uri of the storage where guest configuration package is uploaded."
10941093
},
10951094
"contentHash": {
1096-
"readOnly": true,
10971095
"type": "string",
10981096
"description": "Combined hash of the guest configuration package and configuration parameters."
10991097
},
1098+
"assignmentType": {
1099+
"type": "string",
1100+
"description": "Specifies the assignment type and execution of the configuration. Possible values are Audit, DeployAndAutoCorrect, ApplyAndAutoCorrect and ApplyAndMonitor.",
1101+
"x-ms-enum": {
1102+
"name": "assignmentType",
1103+
"modelAsString": true
1104+
},
1105+
"enum": [
1106+
"Audit",
1107+
"DeployAndAutoCorrect",
1108+
"ApplyAndAutoCorrect",
1109+
"ApplyAndMonitor"
1110+
]
1111+
},
11001112
"configurationParameter": {
11011113
"type": "array",
11021114
"items": {

0 commit comments

Comments
 (0)