Logo Hardware.com.br
Richard Liberato de Souza
Richard Libe... Novo Membro Registrado
2 Mensagens 0 Curtidas

Backup de uma maquina virtual no Azure através do novo portal

#1 Por Richard Libe... 31/03/2016 - 08:55
Ola pessoal.

Estou com um problema com relação a backup na plataforma Microsoft Azure, mais precisamente no novo portal.

Em contato com a Microsoft, eles me informaram que não tem disponivel uma ferramenta que faça o backup de uma VM, sendo que a unica possibilidade seria através de comandos powershell.

Por favor, alguem teria um script de backup em powershell voltado ao Azure, ou conhecem alguma ferramenta de parceiros que realiza esse tipo de função.

Agradeço a atenção
TRONNER
TRONNER Cyber Highlander Registrado
32.2K Mensagens 7.3K Curtidas
#2 Por TRONNER
31/03/2016 - 10:26
Encontrei os conceitos direto do tecnet { https://technet.microsoft.com/pt-br/library/hh770400.aspx } mas imagino que procurando mais usando termos do tipo powershell backup to azure, encontre mais resultados ... isso_ai.png
cool.png**Quando pensar ser um Golias, cuidado para não encontrar algum Davi**
veja.png Conheça os Poderosos e Gratuitos [ Iperius Backup ] e [ Iperius Remote ]
veja.png Todo dia um software novo e grátis [ clicando aqui ]
boa.gif Faça valer a sua voz com o Mudamos+ { https://www.mudamos.org }
Richard Liberato de Souza
Richard Libe... Novo Membro Registrado
2 Mensagens 0 Curtidas
#3 Por Richard Libe...
01/04/2016 - 12:16
Tronner, obrigado.

Eu encontrei o comando em Powershell para utilizar no Azure Automation

<#
.SYNOPSIS
Demonstrates backing up an Azure VM to an Azure storage account by using Azure Automation.

.DESCRIPTION
The following script will connect to an Azure VM, stop the VM, back it up to a storage account, and start the VM.
Dependencies
Connect-Azure runbook: http://gallery.technet.microsoft.com/scriptcenter/Connect-to-an-Azure-f27a81bb
Connect-AzureVM runbook: http://gallery.technet.microsoft.com/scriptcenter/Connect-to-an-Azure-85f0782c
Daniele Grandini's PowerShell Module: http://gallery.technet.microsoft.com/Powershell-module-for-b46c9b62#content
Automation Certificate Asset containing the management certificate loaded to Azure
Automation Connection Asset containing the subscription id & name of the certificate asset


.PARAMETER AzureConnectionName
Name of the Azure Subscription defined in the Connect-Azure runbook. Reference my post for more information: http://blogs.technet.com/b/cbernier/archive/2014/04/08/microsoft-azure-automation.aspx

.PARAMETER ServiceName
Cloud Service the Azure VM is running under.

.PARAMETER VMName
Name of the Virtual Machine in Azure.

.PARAMETER StorageAccountName
Name of the Azure Storage Account to back up the VM to.

.PARAMETER backupContainerName
Name of the Container withing the Storage Account the VM will be backed up to.
#>

workflow BackupAzureVM

{

Param

(

[parameter(Mandatory=$true)]

[String]

$AzureConnectionName,

[parameter(Mandatory=$true)]

[String]

$ServiceName,

[parameter(Mandatory=$true)]

[String]

$VMName,

[parameter(Mandatory=$true)]

[String]

$StorageAccountName,

[parameter(Mandatory=$true)]

[String]

$backupContainerName

)

# Set up Azure connection by calling the Connect-Azure runbook

$Uri = Connect-AzureVM -AzureConnectionName $AzureConnectionName -serviceName $ServiceName -VMName $VMName

# Stop Azure VM

Stop-AzureVM -ServiceName $ServiceName -Name $VMName –StayProvisioned

# Backup Azure VM

Backup-AzureVM -serviceName $ServiceName -VMName $VMName -backupContainerName $backupContainerName -backupStorageAccountName $StorageAccountName –includeDataDisks

# Start Azure VM

Start-AzureVM -ServiceName $ServiceName -Name $VMName

}

Não conheço muito como gerar script em powershell, sabem onde insiro as informações do serviço, nome da VM.
© 1999-2024 Hardware.com.br. Todos os direitos reservados.
Imagem do Modal