You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Output Message** : [RPaaS] The resource {0} is defined without 'provisioningState' in properties bag, consider adding the provisioningState for it.
3229
+
3230
+
**Description** : Verifies if a Azure resource has a corresponding 'provisioningState' property. If the 'provisioningState' is not defining explicitly , the client will drop the state when the service does return it.
3231
+
3232
+
**CreatedAt**: January 15, 2021
3233
+
3234
+
**LastModifiedAt**: January 15, 2021
3235
+
3236
+
**Why this rule is important**: Per [Azure RPC](https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property), all Azure resources must support "provisioningState" property.
3237
+
3238
+
**How to fix the violation**: Add the 'provisioningState' for every Azure resource.
3239
+
3240
+
The following would be valid:
3241
+
3242
+
```json
3243
+
...
3244
+
resourceDefinition": {
3245
+
"description": "resource definition",
3246
+
"type": "object",
3247
+
"properties": {
3248
+
"properties": {
3249
+
"type": "object",
3250
+
"properties" :{
3251
+
"provisioningState": {
3252
+
"type": "string",
3253
+
"readOnly": true
3254
+
}
3255
+
...
3256
+
}
3257
+
}
3258
+
}
3259
+
}
3260
+
...
3261
+
```
3262
+
Links: [Index](#index) | [Error vs. Warning](#error-vs-warning) | [Automated Rules](#automated-rules) | [ARM](#arm-violations): [Errors](#arm-errors) or [Warnings](#arm-warnings) | [SDK](#sdk-violations): [Errors](#sdk-errors) or [Warnings](#sdk-warnings)
0 commit comments