{"id":20697459,"url":"https://github.com/epomatti/azure-arm-templates","last_synced_at":"2026-05-02T08:31:41.740Z","repository":{"id":108711641,"uuid":"484589955","full_name":"epomatti/azure-arm-templates","owner":"epomatti","description":"Azure ARM templates","archived":false,"fork":false,"pushed_at":"2023-12-13T22:29:14.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-11T02:51:11.903Z","etag":null,"topics":["arm-templates","azure","azure-arm","azure-security","keyvault","powershell","shell"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/epomatti.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}},"created_at":"2022-04-22T22:38:11.000Z","updated_at":"2023-12-13T22:31:37.000Z","dependencies_parsed_at":"2023-12-13T23:31:28.477Z","dependency_job_id":"77495d8d-6e38-4d0e-b4f8-c88b8169cfff","html_url":"https://github.com/epomatti/azure-arm-templates","commit_stats":null,"previous_names":["epomatti/azure-arm-templates"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/epomatti/azure-arm-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fazure-arm-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fazure-arm-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fazure-arm-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fazure-arm-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epomatti","download_url":"https://codeload.github.com/epomatti/azure-arm-templates/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fazure-arm-templates/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32528157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["arm-templates","azure","azure-arm","azure-security","keyvault","powershell","shell"],"created_at":"2024-11-17T00:18:08.945Z","updated_at":"2026-05-02T08:31:41.699Z","avatar_url":"https://github.com/epomatti.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ARM Templates\n\n## Virtual Machine\n\nEnter the VM folder:\n\n```sh\ncd virtual-machine\n```\n\nExample creating Virtual Machines using ARM Templates.\n\nYou'll need to have either **PowerShell Azure Extensions** or **Azure CLI**.\n\n### Create the Resource Group\n\nFor this example you create the resource group separately (or reuse one you have).\n\n```ps1\n# PowerShell\n$resourceGroupName=\"your-resource-group-name\"\n$location=\"eastus2\"\n\nConnect-AzAccount\nNew-AzResourceGroup -Name $resourceGroupName -Location $location\n```\n\n```bash\n# Azure CLI\nresourceGroupName=\"your-resource-group-name\"\nlocation=\"eastus2\"\n\naz login\naz group create --name $resourceGroupName --location $location\n```\n### Deploy the Template\n\nSet the variables:\n\n```ps1\n# PowerShell\n$templateFile=\"azuredeploy.json\"\n\n$storageName=\"st888999arm\"\n$storageSku=\"Standard_GRS\"\n$storageKind=\"StorageV2\"\n$vmSize=\"Standard_A2_v2\"\n```\n\n```bash\n# Azure CLI\ntemplateFile=\"azuredeploy.json\"\n\nstorageName=\"st888999arm\"\nstorageSku=\"Standard_GRS\"\nstorageKind=\"StorageV2\"\nvmSize=\"Standard_A2_v2\"\n```\n\nTrigger the deployment:\n\n```ps1\n# PowerShell\nNew-AzResourceGroupDeployment `\n  -Name DeployLocalTemplate `\n  -ResourceGroupName $resourceGroupName `\n  -TemplateFile $templateFile `\n  -storageName $storageName `\n  -storageSku $storageSku `\n  -storageKind $storageKind `\n  -vmSize $vmSize `\n  -verbose\n```\n\n```bash\n# Azure CLI\naz deployment group create \\\n  --name DeployLocalTemplate \\\n  --resource-group $resourceGroupName \\\n  --template-file $templateFile \\\n  --parameters \\\n  storageName=$storageName \\\n  storageSku=$storageSku \\\n  storageKind=$storageKind \\\n  vmSize=$vmSize \\\n  --verbose\n```\n\n## Key Vault\n\nEnter the `keyvault` directory:\n\n```sh\ncd keyvault\n```\n\nDirectly copied/implemented from the documentation [tutorial][1].\n\n```sh\naz group create --name ExampleGroup --location eastus2\naz keyvault create \\\n  --name kvarmtemplate999 \\\n  --resource-group ExampleGroup \\\n  --location centralus \\\n  --enabled-for-template-deployment true\n\naz keyvault secret set --vault-name kvarmtemplate999 --name \"ExamplePassword\" --value \"hVFkk965BuUv\"\n```\n\n### Static\n\nCreate the `static-parameters.json` file from the sample:\n\n```sh\n# Set the variables manually\ncp static-parameters-sample.json static-parameters.json\n```\n\nTo deploy it with `STATIC` id:\n\n\u003e ℹ️ The Key Vault resource ID is statically defined in the static-parameters.json` file.\n\n```sh\naz deployment group create \\\n  --resource-group ExampleGroup \\\n  --template-file static-resources.json \\\n  --parameters static-parameters.json\n```\n\n### Dynamic\n\nCreate the `dynamic-parameters.json` file from the sample:\n\n```sh\n# Set the variables manually\ncp dynamic-parameters-sample.json dynamic-parameters.json\n```\n\nTo deploy it with `DYNAMIC` id:\n\n```sh\naz deployment group create \\\n  --resource-group ExampleGroup \\\n  --template-file dynamic-resources.json \\\n  --parameters dynamic-parameters.json\n```\n\n\n[1]: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/key-vault-parameter?tabs=azure-cli\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepomatti%2Fazure-arm-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepomatti%2Fazure-arm-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepomatti%2Fazure-arm-templates/lists"}