Skip to content

Commit 229349b

Browse files
authored
[Cloud Machine] Fix code to generate correct Bicep for Storage and OpenAI (Azure#47853)
[Cloud Machine] Fix code to generate correct Bicep for storage and OpenAI
1 parent 3de0169 commit 229349b

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

sdk/cloudmachine/Azure.CloudMachine.OpenAI/src/OpenAIModelFeature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected override ProvisionableResource EmitResources(CloudMachineInfrastructur
118118
},
119119
Sku = new CognitiveServicesSku
120120
{
121-
Capacity = 120,
121+
Capacity = 10,
122122
Name = "Standard"
123123
},
124124
};

sdk/cloudmachine/Azure.Provisioning.CloudMachine/src/FeaturesBuiltIn/StorageAccountFeature.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ protected override ProvisionableResource EmitResources(CloudMachineInfrastructur
3030
Sku = new StorageSku { Name = _skuName },
3131
IsHnsEnabled = true,
3232
AllowBlobPublicAccess = false,
33+
AllowSharedKeyAccess = false,
3334
Identity = new()
3435
{
3536
ManagedServiceIdentityType = ManagedServiceIdentityType.UserAssigned,

sdk/cloudmachine/Azure.Provisioning.CloudMachine/tests/Data/GenerateBicep.bicep

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ resource cm_storage 'Microsoft.Storage/storageAccounts@2023-01-01' = {
1818
}
1919
properties: {
2020
allowBlobPublicAccess: false
21+
allowSharedKeyAccess: false
2122
isHnsEnabled: true
2223
}
2324
identity: {
@@ -328,7 +329,7 @@ resource openai_cm0c420d2f21084cd_chat 'Microsoft.CognitiveServices/accounts/dep
328329
}
329330
sku: {
330331
name: 'Standard'
331-
capacity: 120
332+
capacity: 10
332333
}
333334
parent: openai
334335
}
@@ -346,7 +347,7 @@ resource openai_cm0c420d2f21084cd_embedding 'Microsoft.CognitiveServices/account
346347
}
347348
sku: {
348349
name: 'Standard'
349-
capacity: 120
350+
capacity: 10
350351
}
351352
parent: openai
352353
dependsOn: [

sdk/cloudmachine/Azure.Provisioning.CloudMachine/tests/Data/JustCloudMachine.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ resource cm_storage 'Microsoft.Storage/storageAccounts@2023-01-01' = {
1818
}
1919
properties: {
2020
allowBlobPublicAccess: false
21+
allowSharedKeyAccess: false
2122
isHnsEnabled: true
2223
}
2324
identity: {

sdk/cloudmachine/Azure.Provisioning.CloudMachine/tests/Data/OpenAI.bicep

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ resource cm_storage 'Microsoft.Storage/storageAccounts@2023-01-01' = {
1818
}
1919
properties: {
2020
allowBlobPublicAccess: false
21+
allowSharedKeyAccess: false
2122
isHnsEnabled: true
2223
}
2324
identity: {
@@ -283,7 +284,7 @@ resource openai_cm0c420d2f21084cd_chat 'Microsoft.CognitiveServices/accounts/dep
283284
}
284285
sku: {
285286
name: 'Standard'
286-
capacity: 120
287+
capacity: 10
287288
}
288289
parent: openai
289290
}
@@ -301,7 +302,7 @@ resource openai_cm0c420d2f21084cd_embedding 'Microsoft.CognitiveServices/account
301302
}
302303
sku: {
303304
name: 'Standard'
304-
capacity: 120
305+
capacity: 10
305306
}
306307
parent: openai
307308
dependsOn: [

0 commit comments

Comments
 (0)