# Azure 

## Ansible Folder
The script has been tested on Ubuntu 16.04-LTS <br/>
You can use the terraform* file to deploy the VM using TF-Ubuntu-16.04-LTS <br/>


Script usage : 
```bash
  cd /tmp/ 
  wget https://raw.githubusercontent.com/EtienneDeneuve/Azure/master/ansible.sh
  chmod +x ansible.sh
  ./ansible -s YOUR-SUBSCRIPTION-XXXX-XXXX-XXXX \ 
    -c CLIENT-ID-VIA-SERVICE-PRINCIPAL \ 
    -k SECURITY_KEY \ 
    -t TENANT_ID
```


*Terraform
The Terraform file is a quick and dirty deployment without security ! (yet ;)) <br/>
usage : 
```bash
  terraform plan TF-Ubuntu-16.04-LTS
  terraform apply TF-Ubuntu-16.04-LTS
```
## Backup Folder
In this folder you will get some sample for Azure Automation using Powershell
# Azure 

## Ansible Folder
The script has been tested on Ubuntu 16.04-LTS <br/>
You can use the terraform* file to deploy the VM using TF-Ubuntu-16.04-LTS <br/>


Script usage : 
```bash
  cd /tmp/ 
  wget https://raw.githubusercontent.com/EtienneDeneuve/Azure/master/ansible.sh
  chmod +x ansible.sh
  ./ansible -s YOUR-SUBSCRIPTION-XXXX-XXXX-XXXX \ 
    -c CLIENT-ID-VIA-SERVICE-PRINCIPAL \ 
    -k SECURITY_KEY \ 
    -t TENANT_ID
```


*Terraform
The Terraform file is a quick and dirty deployment without security ! (yet ;)) <br/>
usage : 
```bash
  terraform plan TF-Ubuntu-16.04-LTS
  terraform apply TF-Ubuntu-16.04-LTS
```
## Backup Folder
In this folder you will get some sample for Azure Automation using Powershell

- Get-cAzureSubscription Function :
```Powershell
PS C:\WINDOWS\system32> Get-cAzureSubscription
Azure connected successfully
Select the subscription for the azure backup deployement
Subscription 1 :

         Subscription Name
         XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX
         XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX


Subscription 2 :

         Subscription Name
         XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX
         XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX


What is the Id of the subscription?

1
Here is the Subscription choosed :

         Subscription Name
         XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX
         XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX
```
Add detail about powershell function in azure
Add detail about powershell function in azure
