Skip to content

Azure vm deploy#11

Merged
PCBZ merged 4 commits intomainfrom
AzureVM_Deploy
Apr 23, 2026
Merged

Azure vm deploy#11
PCBZ merged 4 commits intomainfrom
AzureVM_Deploy

Conversation

@PCBZ
Copy link
Copy Markdown
Owner

@PCBZ PCBZ commented Apr 22, 2026

No description provided.

PCBZ added 2 commits April 21, 2026 17:44
- Create .envrc for environment variable management
- Implement bootstrap.sh for VM setup and OpenClaw installation
- Define main.tf for Azure resources including VM, networking, and security groups
- Add openclaw.json.tpl for OpenClaw configuration
- Set up outputs.tf for VM details and health check URL
- Introduce poll_b1s_availability.sh for SKU availability checks
- Configure provider.tf and variables.tf for Azure authentication and resource parameters
…2 VM

- Deleted old configuration files related to B1s VM including openclaw.json.tpl, outputs.tf, poll_b1s_availability.sh, provider.tf, and variables.tf.
- Added new configuration files for B2pts_v2 VM including main.tf, outputs.tf, provider.tf, and variables.tf.
- Updated bootstrap script to accommodate new VM specifications and configurations.
- Introduced .envrc for environment variable management.
- Adjusted OpenClaw configuration to reflect changes in VM type and resource allocation.
@PCBZ PCBZ requested a review from Copilot April 22, 2026 18:22
@PCBZ PCBZ self-assigned this Apr 22, 2026
@PCBZ PCBZ added the enhancement New feature or request label Apr 22, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 9 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread terraform/azure_vm/main.tf Outdated
Comment thread terraform/azure_vm/main.tf Outdated
Comment thread terraform/azure_vm/main.tf Outdated
Comment thread terraform/azure_vm/main.tf Outdated
Comment on lines +3 to +17
variable "subscription_id" {
sensitive = true
}

variable "client_id" {
sensitive = true
}

variable "client_secret" {
sensitive = true
}

variable "tenant_id" {
sensitive = true
}
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Several variables omit an explicit type (and some omit description). For Azure auth values, omitting type = string makes them any, which can allow unintended types and leads to less helpful validation/errors. Also telegram_owner_id has a default but no type, which makes the interface less clear (string vs number). Add explicit type (and preferably descriptions) for these variables to make the module contract clearer and error messages more actionable.

Copilot uses AI. Check for mistakes.
Comment on lines +114 to +117
variable "telegram_owner_id" {
description = "Your Telegram numeric user ID (get it from @userinfobot). Grants /model and other privileged commands."
default = ""
}
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Several variables omit an explicit type (and some omit description). For Azure auth values, omitting type = string makes them any, which can allow unintended types and leads to less helpful validation/errors. Also telegram_owner_id has a default but no type, which makes the interface less clear (string vs number). Add explicit type (and preferably descriptions) for these variables to make the module contract clearer and error messages more actionable.

Copilot uses AI. Check for mistakes.
Comment thread terraform/azure_vm/bootstrap.sh
Comment thread terraform/azure_vm/bootstrap.sh
Comment thread terraform/azure_vm/.envrc
# Auto-load secrets from .env into Terraform variables
# Requires: brew install direnv && eval "$(direnv hook zsh)" >> ~/.zshrc

dotenv ../../.env
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using dotenv ../../.env will error when the .env file is absent, which can break direnv allow for new setups/CI checkouts. Use a guarded load (e.g., dotenv_if_exists) or a file-existence check so the environment can still be entered without local secrets.

Copilot uses AI. Check for mistakes.
PCBZ added 2 commits April 22, 2026 19:08
…Claw

- Removed deprecated inline Python code for approving operator approvals and replaced it with a separate script.
- Updated the bootstrap script to create and execute the new approval script.
- Adjusted cron job timings to reflect Pacific Time.
- Cleaned up main.tf by removing old Azure resource configurations, streamlining the file for future updates.
- Added Azure as a deployment option alongside DigitalOcean.
- Updated deployment instructions to reflect changes in supported platforms.
- Included specific configuration details for Azure VM setup.
@PCBZ PCBZ merged commit 794e77b into main Apr 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants