Skip to content

Commit 4a747f7

Browse files
authored
azurerm_cognitive_deployment - mark rai_policy_name as Computed (#32131)
[ENHANCEMENT] * `azurerm_cognitive_deployment` - the `rai_policy_name` property is now Optional + Computed as Azure returns a value when not set in the creation request
1 parent 8308a81 commit 4a747f7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/services/cognitive/cognitive_deployment_resource.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,10 @@ func (r CognitiveDeploymentResource) Arguments() map[string]*pluginsdk.Schema {
166166
},
167167

168168
"rai_policy_name": {
169-
Type: pluginsdk.TypeString,
170-
Optional: true,
169+
Type: pluginsdk.TypeString,
170+
Optional: true,
171+
// NOTE: O+C `raiPolicyName` has default value when `rai_policy_name` is not set. So, `O+C` is required otherwise it will incur difference.
172+
Computed: true,
171173
ValidateFunc: validation.StringIsNotEmpty,
172174
},
173175

0 commit comments

Comments
 (0)