Skip to content

feat(azure): implement Azure Container Instances operations#52

Open
hariram4862 wants to merge 3 commits intoc2siorg:mainfrom
hariram4862:feature/azure-container-group
Open

feat(azure): implement Azure Container Instances operations#52
hariram4862 wants to merge 3 commits intoc2siorg:mainfrom
hariram4862:feature/azure-container-group

Conversation

@hariram4862
Copy link
Contributor

@hariram4862 hariram4862 commented Mar 12, 2026

Note: This PR builds on top of the Azure networking and VM implementation (#48) and the VM Scale Set implementation (#50).
Once those PRs are merged, this PR will only contain the Azure Container Instances changes.

Closes #51

Summary

This PR adds support for Azure Container Instances in RustCloud.

Azure Container Instances allow users to run containers without managing virtual machines or orchestrators. This feature extends RustCloud's Azure compute capabilities by enabling lightweight container-based workloads alongside the existing Azure Virtual Machine and VM Scale Set support.

Implemented Services

  • Azure Container Instances

Implemented Operations

  • Create Container Group
  • List Container Groups
  • Get Container Group
  • Restart Container Group
  • Delete Container Group

Methodology

Azure Container Instance resources are managed using the Azure REST API.
Authentication is handled using Azure CLI, where access tokens are retrieved from the Azure CLI session and used to authorize requests to Azure resource management APIs.

Before running tests, login using Azure CLI:

az login

Set the subscription ID as an environment variable.

Linux/macOS:

export AZURE_SUBSCRIPTION_ID=<subscription-id>

Windows PowerShell:

$env:AZURE_SUBSCRIPTION_ID="<subscription-id>"

Running Tests

cargo test test_create_container_group -- --nocapture
cargo test test_list_container_groups -- --nocapture
cargo test test_get_container_group -- --nocapture
cargo test test_restart_container_group -- --nocapture
cargo test test_delete_container_group -- --nocapture

Notes

Tests assume the Azure account has sufficient permissions to create resources.

@hariram4862 hariram4862 changed the title Feature/azure container group feat(azure): implement Azure Container Instances (container groups) Mar 12, 2026
@hariram4862 hariram4862 changed the title feat(azure): implement Azure Container Instances (container groups) feat(azure): implement Azure Container Instances Mar 12, 2026
@hariram4862 hariram4862 changed the title feat(azure): implement Azure Container Instances feat(azure): implement Azure Container Instances operations Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Azure Container Instances operations

1 participant