{"id":34718363,"url":"https://github.com/build-boxes/hashi-az-vm-capabilities","last_synced_at":"2026-05-24T00:33:44.618Z","repository":{"id":322134294,"uuid":"1087883841","full_name":"build-boxes/hashi-az-vm-capabilities","owner":"build-boxes","description":"Consists of 2 items. BASH Script and Terraform Custom Provider. Checks if Azure VM SKU supports Encryption-At-Host capability.","archived":false,"fork":false,"pushed_at":"2025-11-03T01:30:16.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-24T00:33:36.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/build-boxes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-01T20:56:05.000Z","updated_at":"2025-11-03T01:30:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/build-boxes/hashi-az-vm-capabilities","commit_stats":null,"previous_names":["build-boxes/hashi-az-vm-capabilities"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/build-boxes/hashi-az-vm-capabilities","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/build-boxes%2Fhashi-az-vm-capabilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/build-boxes%2Fhashi-az-vm-capabilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/build-boxes%2Fhashi-az-vm-capabilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/build-boxes%2Fhashi-az-vm-capabilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/build-boxes","download_url":"https://codeload.github.com/build-boxes/hashi-az-vm-capabilities/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/build-boxes%2Fhashi-az-vm-capabilities/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33417486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T22:14:44.296Z","status":"ssl_error","status_checked_at":"2026-05-23T22:14:43.778Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-25T01:25:06.180Z","updated_at":"2026-05-24T00:33:44.598Z","avatar_url":"https://github.com/build-boxes.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HashiCorp Az VM Capability\n\n1. Bash Script - AZ VM Capability\n2. Terraform Custom Provider - azvmcapability\n\n## Bash Script - AZ VM Capability\nChecks if Azure VM SKU supports Encryption-At-Host. Uses direct calls to Azure REST API.\n\n## Terraform Custom Provider - azvmcapability\nChecks if Azure VM SKU supports Encryption-At-Host. Uses a Terraform custom Provider to encapsulate Azure REST API calls.\n\n### How to Run\n1. Set your Azure token:\n    ```\n    export AZURE_ACCESS_TOKEN=$(az account get-access-token --query accessToken -o tsv)\n    ```\n1. Build the provider:\n    ```\n    go build -o terraform-provider-azvmcapability\n    ```\n1. Place it in your Terraform plugin directory.\n1. Run:\n    ```\n    terraform init\n    terraform plan\n    terraform apply\n    ```\n\n### How to Build\n1. Initialize Go Module.\n    Run this in the root of your provider directory:\n    ```\n    go mod init github.com/yourname/terraform-provider-azvmcapability\n    go mod init github.com/build-boxes/hashi-az-vm-capabilities\n    go mod init github.com/build-boxes/hashi-az-vm-capabilities/terraform-provider-azvmcapability\n    go mod init terraform-provider-azvmcapability\n    ```\n    Replace \"yourname\" with your Github or local namespace.\n\n1. After Any Old Updates - Tidy Up\n    Run:\n    ```\n    go mod tidy\n    ```\n\n1. Add Required Dependencies\n    Install the Terraform Plugin Framework:\n    ```\n    go get github.com/hashicorp/terraform-plugin-framework@latest\n    ```\n    You can also pin a specific version if needed:\n    ```\n    go get github.com/hashicorp/terraform-plugin-framework@v1.0.0\n    ```\n  \n    Install some more dependencies:\n    ```\n    go get github.com/hashicorp/terraform-plugin-framework/internal/fwserver@v1.16.1\n    go get github.com/hashicorp/terraform-plugin-framework/internal/logging@v1.16.1\n    go get github.com/hashicorp/terraform-plugin-framework/function@v1.16.1\n    go get github.com/hashicorp/terraform-plugin-framework/providerserver@v1.16.1\n    ```\n1. Build the Provider Binary\n    Compile the provider:\n    ```\n    go build -o terraform-provider-azvmcapability\n    ```\n    This will generate a binary named \"terraform-provider-azvmcapability\" in your current directory.\n1. Install Locally for Terraform\n    Terraform looks for custom providers in a specific directory structure. Create this under your home directory:\n    ```\n    mkdir -p ~/.terraform.d/plugins/example/azvmcapability/0.1.0/linux_amd64\n    mv terraform-provider-azvmcapability ~/.terraform.d/plugins/example/azvmcapability/0.1.0/linux_amd64/terraform-provider-example_azvmcapability\n    ```\n    The path must match the source and version you declare in your Terraform config:\n    ```Hcl\n    terraform {\n      required_providers {\n        azvmcapability = {\n          source  = \"example/azvmcapability\"\n          version = \"0.1.0\"\n        }\n      }\n    }\n    ```\n1. Test It\n    Navigate to your example/ directory:\n    ```\n    cd example\n    terraform init\n    terraform plan\n    terraform apply\n    ```\n    Make sure you have exported youre Azure token:\n    ```\n    export AZURE_ACCESS_TOKEN=$(az account get-access-token --query accessToken -o tsv)\n    ```\n1. Update .terraformrc For Local Development\n    The Terraform Init script should contain something like:\n    ```\n    provider_installation {\n        dev_overrides {\n            // \"registry.terraform.io/example/azvmcapability\" =  \"/home/\u003cUSERNAME\u003e/.terraform.d/plugins/example/azvmcapability/0.1.0/linux_amd64\"\n            \"registry.terraform.io/example/azvmcapability\" = \"/home/\u003cUSERNAME\u003e/go/bin\"\n        }\n\n        direct {}\n    }\n\n    ```\n1. (Optional:) Add a Makefile\n    To simplify builds:\n    ```Makefile\n    build:\n    \tgo build -o terraform-provider-azvmcapability\n\n    install:\n    \tmkdir -p ~/.terraform.d/plugins/example/azvmcapability/0.1.0/linux_amd64\n    \tmv terraform-provider-azvmcapability ~/.terraform.d/plugins/example/azvmcapability/0.1.0/linux_amd64/terraform-provider-example_azvmcapability\n    ```\n    Then run:\n    ```Bash\n    make build install\n    ```\n    OR  \n    ```\n    go install .\n    ```\n\n## Reference Links\n1. [https://developer.hashicorp.com/terraform/tutorials/providers-plugin-framework](https://developer.hashicorp.com/terraform/tutorials/providers-plugin-framework)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuild-boxes%2Fhashi-az-vm-capabilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuild-boxes%2Fhashi-az-vm-capabilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuild-boxes%2Fhashi-az-vm-capabilities/lists"}