Code Monkey home page Code Monkey logo

azure's People

Contributors

martin77s avatar shachafgoldstein avatar

Stargazers

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

Watchers

 avatar  avatar

azure's Issues

unexpected exception while moving VM with the script Microsoft.Rest.ValidationException: 'Kind' cannot be null.

I get this when tried to move VM to another region with Move-AzVmToRegion.ps1
The VM seem to move OK but the exceptions and warnings are confusing
Boot diagnostics is disabled on the source VM so it's strange that it mentions that at all
I also see some warnings about breaking changes

VERBOSE: 19:32:12 - Verifying target location
VERBOSE: 19:32:22 - Checking size availability in the target region
VERBOSE: Performing the operation "Move to northcentralus" on target "newvm".
VERBOSE: 19:32:23 - Verifying the resource group
VERBOSE: 19:32:24 - Collecting network configuration
VERBOSE: 19:32:32 - Verifying VM is shutdown
VERBOSE: 19:32:45 - Creating a temporary storage account
VERBOSE: 19:33:06 - Creating the target container
VERBOSE: 19:33:09 - Generating SASAccess for the OSDisk
VERBOSE: 19:33:41 - Generating SASAccess for DataDisk: ubuntu_DataDisk_0
VERBOSE: 19:34:12 - Copying the vhds to the target container
VERBOSE: Copy request to blob 'newvm_OsDisk.vhd' in container 'vhds' has been scheduled with copyId
Azure.Storage.Blobs.Models.CopyFromUriOperation.
VERBOSE: Transfer Summary

Total: 1.
Successful: 1.
Failed: 0.
WAITING: 19:34:45 - Waiting for the newvm_OsDisk.vhd blob copy process to complete (1 %)
WAITING: 19:35:15 - Waiting for the newvm_OsDisk.vhd blob copy process to complete (2 %)
WAITING: 19:35:46 - Waiting for the newvm_OsDisk.vhd blob copy process to complete (4 %)
WAITING: 19:36:17 - Waiting for the newvm_OsDisk.vhd blob copy process to complete (5 %)
WAITING: 19:36:47 - Waiting for the newvm_OsDisk.vhd blob copy process to complete (26 %)
WAITING: 19:37:18 - Waiting for the newvm_OsDisk.vhd blob copy process to complete (66 %)
WAITING: 19:37:49 - Waiting for the newvm_OsDisk.vhd blob copy process to complete (100 %)
WAITING: 19:38:20 - Waiting for the newvm_OsDisk.vhd blob copy process to complete (100 %)
VERBOSE: Copy request to blob 'ubuntu_DataDisk_0.vhd' in container 'vhds' has been scheduled with copyId
Azure.Storage.Blobs.Models.CopyFromUriOperation.
VERBOSE: Transfer Summary

Total: 1.
Successful: 1.
Failed: 0.
WAITING: 19:38:52 - Waiting for the ubuntu_DataDisk_0.vhd blob copy process to complete (100 %)
VERBOSE: 19:38:55 - Creating the new OS managed disk from the vhd
VERBOSE: 19:39:00 - Creating the new data managed disks from the vhds
VERBOSE: 19:39:00 - Generating data managed disk: ubuntu_DataDisk_0
VERBOSE: 19:39:14 - Creating the new basic VM config
VERBOSE: 19:39:14 - Updating the VM config with the storage details
VERBOSE: 19:39:15 - Verifying network configuration
WARNING: Upcoming breaking changes in the cmdlet 'New-AzVirtualNetworkSubnetConfig' :
Update Property Name
Cmdlet invocation changes :
Old Way : -ResourceId
New Way : -NatGatewayId
Update Property Name
Cmdlet invocation changes :
Old Way : -InputObject
New Way : -NatGateway
Note : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other
information on breaking changes in Azure PowerShell.
VERBOSE: 19:39:31 - Creating the new public IP
WARNING: Upcoming breaking changes in the cmdlet 'New-AzPublicIpAddress' :
Default behaviour of Zone will be changed
Cmdlet invocation changes :
Old Way : Sku = Standard means the Standard Public IP is zone-redundant.
New Way : Sku = Standard and Zone = {} means the Standard Public IP has no zones. If you want to create a
zone-redundant Public IP address, please specify all the zones in the region. For example, Zone = ['1', '2', '3'].
Note : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other
information on breaking changes in Azure PowerShell.
VERBOSE: 19:39:39 - Updating the VM config with the network details
VERBOSE: 19:39:40 - Creating the VM
WARNING: Error occurred when creating storage account for boot diagnostics. Keep creating a VM with disabling boot
diagnostics. : Microsoft.Rest.ValidationException: 'Kind' cannot be null.
at Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.StorageAccountCreateParameters.Validate()
at
Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.StorageAccountsOperations.
d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.StorageAccountsOperations.d__6.
MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.StorageAccountsOperationsExtensions.d__3.MoveNe
xt()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.StorageAccountsOperationsExtensions.Create(IStorageAccountsO
perations operations, String resourceGroupName, String accountName, StorageAccountCreateParameters parameters)
at Microsoft.Azure.Commands.Compute.NewAzureVMCommand.CreateStandardStorageAccount(StorageManagementClient client)

VERBOSE: 19:39:58 - Removing the temp storage account

Confirm
Remove Storage Account 'tempstrg2022072019324504' and all content in it
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y
IMPORTANT: The VM's OLD public IP was: Not Assigned
IMPORTANT: The VM's NEW IP Address is: Not Assigned
RequestId IsSuccessStatusCode StatusCode ReasonPhrase


                     True         OK OK

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.