Skip to content

Commit

Permalink
[Cloud Machine] Fix code to generate correct Bicep for Storage and Op…
Browse files Browse the repository at this point in the history
…enAI (Azure#47853)

[Cloud Machine] Fix code to generate correct Bicep for storage and OpenAI
  • Loading branch information
ShivangiReja authored Jan 15, 2025
1 parent 3de0169 commit 229349b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ protected override ProvisionableResource EmitResources(CloudMachineInfrastructur
},
Sku = new CognitiveServicesSku
{
Capacity = 120,
Capacity = 10,
Name = "Standard"
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ protected override ProvisionableResource EmitResources(CloudMachineInfrastructur
Sku = new StorageSku { Name = _skuName },
IsHnsEnabled = true,
AllowBlobPublicAccess = false,
AllowSharedKeyAccess = false,
Identity = new()
{
ManagedServiceIdentityType = ManagedServiceIdentityType.UserAssigned,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ resource cm_storage 'Microsoft.Storage/storageAccounts@2023-01-01' = {
}
properties: {
allowBlobPublicAccess: false
allowSharedKeyAccess: false
isHnsEnabled: true
}
identity: {
Expand Down Expand Up @@ -328,7 +329,7 @@ resource openai_cm0c420d2f21084cd_chat 'Microsoft.CognitiveServices/accounts/dep
}
sku: {
name: 'Standard'
capacity: 120
capacity: 10
}
parent: openai
}
Expand All @@ -346,7 +347,7 @@ resource openai_cm0c420d2f21084cd_embedding 'Microsoft.CognitiveServices/account
}
sku: {
name: 'Standard'
capacity: 120
capacity: 10
}
parent: openai
dependsOn: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ resource cm_storage 'Microsoft.Storage/storageAccounts@2023-01-01' = {
}
properties: {
allowBlobPublicAccess: false
allowSharedKeyAccess: false
isHnsEnabled: true
}
identity: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ resource cm_storage 'Microsoft.Storage/storageAccounts@2023-01-01' = {
}
properties: {
allowBlobPublicAccess: false
allowSharedKeyAccess: false
isHnsEnabled: true
}
identity: {
Expand Down Expand Up @@ -283,7 +284,7 @@ resource openai_cm0c420d2f21084cd_chat 'Microsoft.CognitiveServices/accounts/dep
}
sku: {
name: 'Standard'
capacity: 120
capacity: 10
}
parent: openai
}
Expand All @@ -301,7 +302,7 @@ resource openai_cm0c420d2f21084cd_embedding 'Microsoft.CognitiveServices/account
}
sku: {
name: 'Standard'
capacity: 120
capacity: 10
}
parent: openai
dependsOn: [
Expand Down

0 comments on commit 229349b

Please sign in to comment.