Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michalswi/azure-rg-go
Manage Azure Resource Groups using azure-sdk-for-go
https://github.com/michalswi/azure-rg-go
azure azure-resource-group-deployment golang
Last synced: 7 days ago
JSON representation
Manage Azure Resource Groups using azure-sdk-for-go
- Host: GitHub
- URL: https://github.com/michalswi/azure-rg-go
- Owner: michalswi
- Created: 2021-05-07T14:56:08.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-10T11:08:06.000Z (over 3 years ago)
- Last Synced: 2024-11-13T22:12:57.206Z (2 months ago)
- Topics: azure, azure-resource-group-deployment, golang
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Simple script to manage Azure Resource Group.
```
az loginexport AZURE_SUBSCRIPTION_ID=`az account show --query "id" -o tsv`
go build
```#### \# list
```
./azure-rg-go list | jq
{
"name": "demo",
"details": {
"id": "/subscriptions/.../resourceGroups/demo",
"location": "westeurope",
"state": "Succeeded",
"tags": "no tags"
}
}
```#### \# create
```
./azure-rg-go create
2021/05/06 23:45:55 Created resource group: goRGtest./azure-rg-go list | jq
{
"name": "demo",
"details": {
"id": "/subscriptions/.../resourceGroups/demo",
"location": "westeurope",
"state": "Succeeded",
"tags": "no tags"
}
}
{
"name": "goRGtest",
"details": {
"id": "/subscriptions/.../resourceGroups/goRGtest",
"location": "westeurope",
"state": "Succeeded",
"tags": "no tags"
}
}
```#### \# delete
```
./azure-rg-go delete
2021/05/07 16:36:43 Deleted resource group: goRGtest
```