AZURE
URLS
- https://resources.azure.com/
- https://portal.azure.com/
- https://preview.portal.azure.com/
- Azure Affinity Map
- Azure Enterprise Portal
Instancia
Virtual Machines
Create Instance
az login az group create -n EASTUS -l eastus az disk create --resource-group EASTUS -n disco-app01-01-B --source https://<conta>.blob.core.windows.net/vhds/disco-app01-01-B.vhd az vm create -g EASTUS -n disco-app01-01 --size Standard_f2s --attach-os-disk disco-app01-01-B --os-type linux
Upload de Linux Como imagem
Passos:
- Clonar guest
- Reconfigurar guest
- Converter disco para RAW
qemu-img convert -f vmdk -O raw image.vmdk image.raw
- Resize do RAW
qemu-img convert -f vpc -O raw MyLinuxVM.vhd MyLinuxVM.raw
rawdisk="MyLinuxVM.raw"
vhddisk="MyLinuxVM.vhd"
MB=$((1024*1024))
size=$(qemu-img info -f raw --output json "$rawdisk" | \
gawk 'match($0, /"virtual-size": ([0-9]+),/, val) {print val[1]}')
rounded_size=$((($size/$MB + 1)*$MB))
echo "Rounded Size = $rounded_size"
qemu-img resize MyLinuxVM.raw $rounded_size
qemu-img convert -f raw -o subformat=fixed -O vpc MyLinuxVM.raw MyLinuxVM.vhd
qemu-img convert -f raw -o subformat=fixed,force_size -O vpc MyLinuxVM.raw MyLinuxVM.vhd
- Converter para VHD
qemu-img convert -f raw -o subformat=fixed -O vpc image.raw image.vhd
- UPLOAD
- os arquivos .VHD são do tipo "Page" no Azure
LINUX
- CENTOS
- REDHAT
- ORACLE
- GENERIC
- CREATE AND UPLOAD
- Configure Serial Console on boot on old distributions(GRUB 1)
PYTHON
BLOBXFER
Antes de construir o virtualenv, setar a codificação:
export LC_ALL="en_US.UTF-8" export LC_CTYPE="en_US.UTF-8"
AZURE-CLI
AZ-COPY
(AWS) to Azure with Azure Site Recovery
Links
Linux
AZURE CLI
Impersonalização do usuário
Executar antes de gerar nova imagem de linux.
- sudo waagent -force -deprovision
- export HISTSIZE=0
- logout
Name Search
Configura o name search no dhclient.conf do host linux.
Acessos
Backup
Automação
Rest API
Billing
Manage Roles
Helps manage specific roles for specific groups to one or more resource groups.
Docs
- Comparativo AWS -> Azure
- RoadMap Azure
- http://www.azurespeed.com/
- Troubleshoot Azure Backup failure: Issues with the agent or extension
- Configure NSG for Azure Bastion
- Common Microsoft Resources in Azure Active Directory
Serviços
Preços e Tamanhos
SDK
- Getting Started with Azure Management Libraries for Java
- Azure management libraries for Java generally available now
- Azure for Java developers
- Azure SDK Latest Releases
- Azure REST API Reference
GITHUB
- https://github.com/Azure/azure-sdk-for-python
- https://github.com/Azure-Samples
- https://github.com/rocko83/AzureToolBox
Procedures
- Conversor de disco
- AZURE-CLI shortcuts
- AZURE-POWERSHELL
- Remove Boot Diagnostics from storage
- Azure Orphan Resource Report
- Take SnapShot fom all disks on VM
- CrowdStrike Azure VM