Giter Site home page Giter Site logo

asm2arm's People

Contributors

ercenk avatar jnbuehler avatar singhkays avatar theazureguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

asm2arm's Issues

Can not install Modul

Import-Module : Die Methode "get_DefaultContext" im Typ "Microsoft.Azure.Commands.Profile.EnableAzureRmDataCollectionCommand" der Assembly
"Microsoft.Azure.Commands.Profile, Version=1.0.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" hat keine Implementierung.
In Zeile:1 Zeichen:1

  • Import-Module .\asm2arm.psd1
  • - CategoryInfo          : NotSpecified: (:) [Import-Module], TypeLoadException
    - FullyQualifiedErrorId : System.TypeLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand
    

ARM Blob container was not created

I received a success message after executing the transfer however no files were visible in the azure portal.

_PS C:\asm2arm-master> $blob1 = Start-AzureStorageBlobCopy -Context $srcContext -AbsoluteUri $srcVhd -DestContainer $destContainerName -DestBlob $destVhdName -DestContex
t $destContext -Verbose

VERBOSE: Transfer Summary

Total: 1.
Successful: 1.
Failed: 0.

$blob1 | Get-AzureStorageBlobCopyState_ command would produce nothing

I realized later that this was due to the missing container (in my case "vhds') in the blob. After adding it manually the blob was copied properly. Note that I had previously set $destContainerName = "vhds"

Not sure if this is a bug or perhaps something that should be added to the doc.

East US 2?

My systems are in East US 2. This doesn't work because it's not in the verify list. Is there a technical reason why it is not?

Azure throttling requests

When moving a large VM (this VM has 16 disks attached) I get errors from Azure saying that I'm being throttled.

Get-AzureRmStorageAccount : TooManyRequests: The request is being throttled.
At C:\Users\Denny\asm2arm\asm2armStorage.ps1:52 char:32

  •         $storageAccounts = Get-AzureRmStorageAccount
    
  •                            ~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : CloseError: (:) [Get-AzureRmStorageAccount], CloudException
    • FullyQualifiedErrorId : Microsoft.Azure.Commands.Management.Storage.GetAzureStorageAccountCommand

This is with Azure PowerShell 1.1.0.

Bad StorageAccountName

Hi, I've a problem with my VM migration.

After the start migration, the script ask me to enter the new storagename but, in the creation, the storagename is ignored. The script use the Azure Subscription name but, after the creation of the storage, the script wait the end of creation of storage with entered name.

Hangs with a "WARNING: GeoReplicationEnabled property ...." message

Thanks for creating these scripts, they look just what I need.

I guess this is a basic error, but I can't seem to get started. If I run Add-AzureSMVmToRM then the script just hangs after this message:
"WARNING: GeoReplicationEnabled property will be deprecated in a future release of Azure PowerShell. The value will be merged into the AccountType property."

And then a flashing cursor, and nothing further, until I break out.

Any ideas? Any way to run more verbose so I can see where it gets stuck?

Thanks

New-AzureRmResourceGroupDeployment : A parameter cannot be found that matches parameter name 'Location'.

Hi

While testing your awesome script, I cannot get further than generating all necessary files.

Step 1:
"Add-AzureSMVmToRM -ServiceName ARX-MIGTST-001 -Name ARX-MIGTST-001 -ResourceGroupName MIG-ASM -DiskAction CopyDisks -OutputFileFolder C:\asmdisks -AppendTimeStampForFiles"

Step 2 (command is generated by step 1):
"New-AzureSmToRMDeployment -ResourceGroupName 'MIG-ASM' -Location 'West Europe' -ServiceName 'ARX-MIGTST-001' -Name 'ARX-MIGTST-001' -StorageAccountName 'cronosgoldsponsors00arm' -SetupTemplateFileName 'C:\asmdisks\ARX-MI
GTST-001-ARX-MIGTST-001-setup-160115-0448.json' -ParametersFileName 'C:\asmdisks\ARX-MIGTST-001-ARX-MIGTST-001-parameters-160115-0448.json' -DeployTemplateFileName 'C:\asmdisks\ARX-MIGTST-001-ARX-MIGTST-001-deploy-160115
-0448.json' -CopyDisksScript 'C:\asmdisks\ARX-MIGTST-001-ARX-MIGTST-001-copydisks-160115-0448.ps1' -ImperativeScript 'C:\asmdisks\ARX-MIGTST-001-ARX-MIGTST-001-setextensions-160115-0448.ps1'
Same commandline can also be found in C:\asmdisks\ARX-MIGTST-001-ARX-MIGTST-001-deploy-160115-0448.ps1"

After this command powershell gives met the following error:
New-AzureRmResourceGroupDeployment : A parameter cannot be found that matches parameter name 'Location'.
At C:\Users\mathi\Google Drive\Git\azure\asm2arm\asm2arm.psm1:701 char:185

  • ... ileName -TemplateParameterFile $ParametersFileName -Location $Locati ...
  •                                                     ~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [New-AzureRmResourceGroupDeployment], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Azure.Commands.Resources.NewAzureResourceGroupDeploymentCommand

What am I doing wrong?

Thanks in advance!

Prompted for StorageAccountName

When I run this I am prompted for StorageAccountName in cmdlet New-AzureSmToRMDeployment.

I was unsure which storage account to provide but it turned out I had to give the name of the new account created by the script.

Could this be caused by the fact that my subsription name contains the '(' character?

The subsription name I used was "Pallados Consulting (Bizspark)"

Migrated VM has input endpoints which is not right since endpoints don't exist in ARM

I see that the migrated VM has input endpoints in the networkProfile which is incorrect since endpoints concept does not exist in ARM. What needs to be done instead is to create NSGs and restrict access for the equivalent endpoints. Azure only checks for networkInterface id in the networkProfile and discards everything else.

        "networkProfile" : {
          "networkInterfaces" : [{
              "id" : "[resourceId('Microsoft.Network/networkInterfaces','win2012kay_win2012kay_nic')]"
            }
          ],
          "inputEndpoints" : [{
              "endpointName" : "PowerShell",
              "privatePort" : 5986,
              "publicPort" : 5986,
              "protocol" : "tcp",
              "enableDirectServerReturn" : false
            }, {
              "endpointName" : "Remote Desktop",
              "privatePort" : 3389,
              "publicPort" : 61597,
              "protocol" : "tcp",
              "enableDirectServerReturn" : false
            }
          ]
        },

Error getting storage account key

When running this with Azure PoweShell 1.5.1 I get an error that the parameter "key1" isn't valid. This is when the copy command is attempting to get the key for the RM storage account. I worked around this by getting the key manually and hard coding it into the powershell script.

network interface error

I have error when running commands:

VERBOSE: Adding a resource definition for 'servicename_vmname_armpublicip' public IP address
You cannot call a method on a null-valued expression.
At C:\tools\asm2armVm.ps1:491 char:5

  • $dnsSuffix = '{0}.cloudapp.azure.com' -f $Location.Replace(' ','' ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

The property 'Length' cannot be found on this object. Verify that the property exists.
At C:\tools\asm2armVm.ps1:492 char:5

  • $maxServiceNameLength = 253 - $dnsSuffix.Length
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
    • FullyQualifiedErrorId : PropertyNotFoundStrict

Any idea?

South East Asia

You have to use Southeast Asia and not South East Asia in location in order to deploy there

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.