Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore(examples/templates/azure-windows): remove dependency onaz CLI#16039

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
phorcys420 merged 2 commits intomainfromphorcys/azure-persistent-resources
Jan 6, 2025

Conversation

phorcys420
Copy link
Member

@phorcys420phorcys420 commentedJan 4, 2025
edited
Loading

This PR makes it so that theaz CLI is not necessary anymore to run theazure-windows template, and also unifies the README between the two Azure templates while we're at it.

@@ -31,5 +31,34 @@ This template provisions the following resources:

This means, when the workspace restarts, any tools or files outside of the data directory are not persisted. To pre-bake tools into the workspace (e.g. `python3`), modify the VM image, or use a [startup script](https://registry.terraform.io/providers/coder/coder/latest/docs/resources/script).

>**Note**
>[!NOTE]
Copy link
Member

Choose a reason for hiding this comment

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

Can we render these within Coder?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Good thinking, will check!

```hcl
# Stop the VM
resource "null_resource" "stop_vm" {
count = data.coder_workspace.me.transition == "stop" ? 1 : 0
Copy link
Member

@matifalimatifaliJan 5, 2025
edited
Loading

Choose a reason for hiding this comment

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

count = data.coder_workspave.me.start_count

phorcys420 reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

@matifali I'm not sure though, the issue is that if we use it for stopping, then it will look something like count = data.coder_workspave.me.start_count == 1 ? 0 : 1, we should havedata.coder_workspave.me.stop_count i think

Copy link
Contributor

Choose a reason for hiding this comment

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

"stop" ? 1 : 0 is fine. Adding astop_count is too niche.

@matifali
Copy link
Member

The PR title gives the impression that we are merging the templates into one which we aren't.

phorcys420 reacted with thumbs up emoji

@phorcys420phorcys420 changed the titlechore: unifyazure-linux andazure-windows templateschore(examples/templates/azure-windows): remove dependency onaz CLIJan 5, 2025
@phorcys420phorcys420 merged commit0870ff2 intomainJan 6, 2025
34 checks passed
@phorcys420phorcys420 deleted the phorcys/azure-persistent-resources branchJanuary 6, 2025 05:24
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJan 6, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@matifalimatifalimatifali left review comments

@spikecurtisspikecurtisspikecurtis approved these changes

Assignees

@phorcys420phorcys420

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@phorcys420@matifali@spikecurtis

[8]ページ先頭

©2009-2025 Movatter.jp