Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

Simple script to manage Azure Resource Group.

```
az login

export 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
```