-
Notifications
You must be signed in to change notification settings - Fork 11
Added ARM, bicep and terraform templates for ACI NGroups #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
shivg7795
wants to merge
15
commits into
radius-project:main
Choose a base branch
from
shivg7795:AddACINgroupsRecipes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9d8d1e2
added ARM, bicep and terraform templates for NGroups ACI
shivg7795 5e11fd8
added confidential container recipe
shivg7795 b020c2d
addressed comments
shivg7795 57a973a
Removed ARM templates
shivg7795 00fafb6
Merge branch 'main' of https://github.com/shivg7795/resource-types-co…
shivg7795 f24d77a
removed unused properties from GW
shivg7795 ed94264
Merge branch 'main' of https://github.com/shivg7795/resource-types-co…
shivg7795 951c290
Merge branch 'main' of https://github.com/shivg7795/resource-types-co…
shivg7795 b88ca36
updated load balancer bicep
shivg7795 4cd37f5
deleted gateway and basic ngroups template
shivg7795 a39683c
updated desiredCount param
shivg7795 aa42329
updated context.properties to context.resource.properties
shivg7795 598379b
updated template - fixed context properties and null checks
shivg7795 e961656
fixed LB
shivg7795 366e7f6
added UserAssignedIdentity and redis cache in app.bicep
shivg7795 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
// Variables (using var instead of parameters since the ARM template uses variables) | ||
var cgProfileName = 'cgp_1' | ||
var nGroupsName = 'ngroup_confidential_basic' | ||
var apiVersion = '2024-09-01-preview' | ||
var desiredCount = 1 | ||
var prefixCG = 'cg-confidential-' | ||
var resourcePrefix = '/subscriptions/${subscription().subscriptionId}/resourceGroups/${resourceGroup().name}/providers/' | ||
|
||
// Container Group Profile with Confidential Computing | ||
resource containerGroupProfile 'Microsoft.ContainerInstance/containerGroupProfiles@2024-09-01-preview' = { | ||
name: cgProfileName | ||
location: resourceGroup().location | ||
properties: { | ||
sku: 'Confidential' | ||
confidentialComputeProperties: { | ||
ccePolicy: '' | ||
} | ||
containers: [ | ||
{ | ||
name: 'aci-helloworld' | ||
properties: { | ||
image: 'mcr.microsoft.com/azuredocs/aci-helloworld@sha256:565dba8ce20ca1a311c2d9485089d7ddc935dd50140510050345a1b0ea4ffa6e' | ||
ports: [ | ||
{ | ||
protocol: 'TCP' | ||
port: 80 | ||
} | ||
] | ||
resources: { | ||
requests: { | ||
memoryInGB: json('1.0') | ||
cpu: json('1.0') | ||
} | ||
} | ||
} | ||
} | ||
] | ||
restartPolicy: 'Always' | ||
ipAddress: { | ||
ports: [ | ||
{ | ||
protocol: 'TCP' | ||
port: 80 | ||
} | ||
] | ||
type: 'Public' | ||
} | ||
osType: 'Linux' | ||
} | ||
} | ||
|
||
// NGroups for Confidential Computing | ||
resource nGroups 'Microsoft.ContainerInstance/NGroups@2024-09-01-preview' = { | ||
name: nGroupsName | ||
location: resourceGroup().location | ||
properties: { | ||
elasticProfile: { | ||
desiredCount: desiredCount | ||
containerGroupNamingPolicy: { | ||
guidNamingPolicy: { | ||
prefix: prefixCG | ||
} | ||
} | ||
} | ||
containerGroupProfiles: [ | ||
{ | ||
resource: { | ||
id: '${resourcePrefix}Microsoft.ContainerInstance/containerGroupProfiles/${cgProfileName}' | ||
} | ||
} | ||
] | ||
} | ||
tags: { | ||
cirrusTestScenario: 'confidential-1.basic' | ||
} | ||
dependsOn: [ | ||
containerGroupProfile | ||
] | ||
} | ||
|
||
// Outputs | ||
output containerGroupProfileId string = containerGroupProfile.id | ||
output nGroupId string = nGroups.id | ||
|
||
output result object = { | ||
values: { | ||
containerGroupProfileId: containerGroupProfile.id | ||
nGroupsId: nGroups.id | ||
location: resourceGroup().location | ||
desiredCount: desiredCount | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.