fullscale180 / asm2arm Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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
- CategoryInfo : NotSpecified: (:) [Import-Module], TypeLoadException
- FullyQualifiedErrorId : System.TypeLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand
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
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.
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?
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
~~~~~~~~~~~~~~~~~~~~~~~~~
This is with Azure PowerShell 1.1.0.
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.
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
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
~~~~~~~~~
What am I doing wrong?
Thanks in advance!
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)"
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
}
]
},
New-AzureRmResourceGroupDeployment : 10:45:53 - Resource Microsoft.Compute/virtualMachines 'ktmsrvconfig' failed with message 'Blob name in URL https://payasyougoaboconvarm.blob.core.windows.net/vhds/"diskname" must end with '.vhd' extension.'
The Server is migrated by Azure Site Recovery and the diskname was without vhd extension, but the server runs in the ASM
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.
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(' ','' ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Any idea?
You have to use Southeast Asia and not South East Asia in location in order to deploy there
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.