id | title |
---|---|
AzureGettingStarted |
Azure Getting Started |
This document describes how to get started with GruCloud on Azure.
import TOCInline from '@theme/TOCInline';
Visit the azure portal and ensure you have an azure account as well as a subscription.
Install the Azure Command-Line Interface az from here
At this point, ensure the az command is installed:
az --version
The GruCloud CLI, gc
, is written in Javascript running on Node.js
Install it globally with:
npm i -g @grucloud/core
Use the new command to create a new project:
The boilerplate project is now created and configured.
Visualize your current infrastructure with the list command:
gc list --graph
The gencode command fetches the live resources and generate the code in resource.js
gc gencode
The following flowchart explains in more detail the process of generating the code from the live infrastructure.
The graph command creates a dependency graph of the target resources:
gc graph
The
graph
command requires graphviz to convert the generatedartifacts/diagram-target.dot
into an image such asartifacts/diagram-target.svg
To update the infrastructure, either use the Azure portal and run gc gencode, or modify directly the file resource.js. Once done, use the apply command to update the infrastructure:
gc apply
To destroy the infrastructure, use the destroy command:
gc destroy
-
Browse the various examples which helps to find out how to use this software.
-
Available Azure Resources