Skip to content

Commit cd3a3ce

Browse files
committed
Update allowed names and resource references in Cognitive Services policy assignments and tests
1 parent 46c0d53 commit cd3a3ce

4 files changed

Lines changed: 7 additions & 9 deletions

File tree

policyAssignments/dev/pa-d-cog-service.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
},
4747
"COG-007_listOfAllowedNames": {
4848
"value": [
49-
"grok-4"
49+
"grok-4",
50+
"grok-3"
5051
]
5152
}
5253
},

policyAssignments/prod/pa-p-cog-service.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
},
4747
"COG-007_listOfAllowedNames": {
4848
"value": [
49-
"grok-4"
49+
"grok-4",
50+
"grok-3"
5051
]
5152
}
5253
},

tests/policy-integration-tests/cognitive-service/main.good.bicep

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ resource gpt41 'Microsoft.CognitiveServices/accounts/deployments@2025-12-01' = {
5454
}
5555
}
5656

57-
resource grok4 'Microsoft.CognitiveServices/accounts/deployments@2025-12-01' = {
58-
name: 'grok-4'
57+
resource grok 'Microsoft.CognitiveServices/accounts/deployments@2025-12-01' = {
58+
name: 'grok-3'
5959
parent: cognitiveService
6060
sku: {
6161
name: 'GlobalStandard'
6262
capacity: 1
6363
}
6464
properties: {
6565
model: {
66-
name: 'grok-4'
66+
name: 'grok-3'
6767
format: 'xAI'
6868
}
6969
}

tests/policy-integration-tests/cognitive-service/tests.ps1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ $cogServicePolicyAssignmentId = $script:LocalConfig_policyAssignmentIds | Where-
3232
$privateEndpointResourceId = $script:bicepDeploymentOutputs.privateEndpointResourceId.value
3333
$privateEndpointPrivateDNSZoneGroupId = '{0}{1}' -f $privateEndpointResourceId, $script:GlobalConfig_privateEndpointPrivateDNSZoneGroupIdSuffix
3434
$violatingPolicies = @(
35-
@{
36-
policyAssignmentId = $cogServicePolicyAssignmentId
37-
policyDefinitionReferenceId = 'COG-001'
38-
}
3935
@{
4036
policyAssignmentId = $cogServicePolicyAssignmentId
4137
policyDefinitionReferenceId = 'COG-002'

0 commit comments

Comments
 (0)