Last active
October 16, 2017 20:49
-
-
Save eduardobaitello/ac9defc73fe6da8098836de5caaf397c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### SOME VALUES ARE OBFUSCATED FOR SECURITY REASONS | |
PS /home/user> Add-AzureRmVhd -ResourceGroupName "myresourcegroup" -Destination "https://mystorageaccount.blob.core.windows.net/mycontainer/my_vhd_filename.vhd" -LocalFilePath "/home/user/files/my_disk_file_to_upload.vhd" | |
DEBUG: 7:53:47 PM - AddAzureVhdCommand begin processing with ParameterSet '__AllParameterSets'. | |
DEBUG: 7:53:47 PM - using account id 'eduardobaitello@gmail.com'... | |
The specified drive root "net:[4026532417]" either does not exist, or it is not a folder. | |
Found existing page blob. Resuming upload... | |
MD5 hash is being calculated for the file /home/user/files/my_disk_file_to_upload.vhd. | |
MD5 hash calculation is completed. | |
Elapsed time for the operation: 00:05:04 | |
DEBUG: [Common.Authentication]: Authenticating using Account: 'eduardobaitello@gmail.com', environment: 'AzureCloud', tenant: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' | |
DEBUG: ============================ HTTP REQUEST ============================ | |
HTTP Method: | |
POST | |
Absolute Uri: | |
https://management.azure.com/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAcc | |
ounts/mystorageaccount/listKeys?api-version=2017-06-01 | |
Headers: | |
x-ms-client-request-id : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | |
accept-language : en-US | |
Body: | |
DEBUG: ============================ HTTP RESPONSE ============================ | |
Status Code: | |
OK | |
Headers: | |
Cache-Control : no-cache | |
Pragma : no-cache | |
x-ms-request-id : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | |
Server : Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 | |
x-ms-ratelimit-remaining-subscription-writes: 1199 | |
x-ms-correlation-request-id : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | |
x-ms-routing-request-id : EASTUS2:20171016T195347Z:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | |
Strict-Transport-Security : max-age=31536000; includeSubDomains | |
Date : Mon, 16 Oct 2017 19:53:47 GMT | |
Body: | |
{ | |
"keys": [ | |
{ | |
"keyName": "key1", | |
"permissions": "Full", | |
"value": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==" | |
}, | |
{ | |
"keyName": "key2", | |
"permissions": "Full", | |
"value": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==" | |
} | |
] | |
} | |
DEBUG: ============================ HTTP REQUEST ============================ | |
HTTP Method: | |
POST | |
Absolute Uri: | |
https://management.azure.com/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAcc | |
ounts/mystorageaccount/listKeys?api-version=2017-06-01 | |
Headers: | |
x-ms-client-request-id : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | |
accept-language : en-US | |
Body: | |
DEBUG: ============================ HTTP RESPONSE ============================ | |
Status Code: | |
OK | |
Headers: | |
Cache-Control : no-cache | |
Pragma : no-cache | |
x-ms-request-id : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | |
Server : Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 | |
x-ms-ratelimit-remaining-subscription-writes: 1198 | |
x-ms-correlation-request-id : 8592cb63-9cd4-4748-85fb-3fe907965085 | |
x-ms-routing-request-id : EASTUS2:20171016T195347Z:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | |
Strict-Transport-Security : max-age=31536000; includeSubDomains | |
Date : Mon, 16 Oct 2017 19:53:47 GMT | |
Body: | |
{ | |
"keys": [ | |
{ | |
"keyName": "key1", | |
"permissions": "Full", | |
"value": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==" | |
}, | |
{ | |
"keyName": "key2", | |
"permissions": "Full", | |
"value": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==" | |
} | |
] | |
} | |
Add-AzureRmVhd : Object reference not set to an instance of an object. | |
At line:1 char:1 | |
+ Add-AzureRmVhd -ResourceGroupName "myresourcegroup" -Destination "https://myres ... | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : CloseError: (:) [Add-AzureRmVhd], NullReferenceException | |
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.StorageServices.AddAzureVhdCommand | |
DEBUG: 7:58:53 PM - AddAzureVhdCommand end processing. | |
DEBUG: 7:58:53 PM - AddAzureVhdCommand end processing. | |
#### STACK TRACE | |
PS /home/user> Resolve-AzureRmError -Last | |
DEBUG: 8:44:24 PM - ResolveError begin processing with ParameterSet 'LastErrorParameterSet'. | |
HistoryId: 10 | |
Message : Object reference not set to an instance of an object. | |
StackTrace : at Microsoft.WindowsAzure.Commands.Sync.ServicePointHandler.GetWebProxy() in | |
D:\workspace\powershell-sign-netcore\src\ServiceManagement\Compute\Sync\ServicePointHandler.cs:line 36 | |
at Microsoft.WindowsAzure.Commands.Sync.ServicePointHandler..ctor(Uri uri, Int32 connectionLimit) in | |
D:\workspace\powershell-sign-netcore\src\ServiceManagement\Compute\Sync\ServicePointHandler.cs:line 27 | |
at Microsoft.WindowsAzure.Commands.Sync.Upload.BlobSynchronizer.Synchronize() in | |
D:\workspace\powershell-sign-netcore\src\ServiceManagement\Compute\Sync\Upload\BlobSynchronizer.cs:line 50 | |
at Microsoft.Azure.Commands.Compute.Models.VhdUploaderModel.Upload(UploadParameters uploadParameters) in | |
D:\workspace\powershell-sign-netcore\src\ResourceManager\Compute\Commands.Compute\Models\VhdUploaderModel.cs:line 39 | |
at Microsoft.Azure.Commands.Compute.StorageServices.AddAzureVhdCommand.ExecuteCmdlet() in | |
D:\workspace\powershell-sign-netcore\src\ResourceManager\Compute\Commands.Compute\StorageServices\AddAzureVhdCommand.cs:line 187 | |
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord() in | |
D:\workspace\powershell-sign-netcore\src\Common\Commands.Common\AzurePSCmdlet.cs:line 642 | |
Exception : System.NullReferenceException | |
InvocationInfo : {Add-AzureRmVhd} | |
Line : Add-AzureRmVhd -ResourceGroupName "myresourcegroup" -Destination "https://mystorageaccount.blob.core.windows.net/mycontainer/my_vhd_filename.vhd" -LocalFilePath | |
"/home/user/files/my_disk_file_to_upload.vhd" | |
Position : At line:1 char:1 | |
+ Add-AzureRmVhd ResourceGroupName "myresourcegroup" -Destination "https://myres ... | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
HistoryId : 10 | |
DEBUG: 8:44:24 PM - ResolveError end processing. | |
DEBUG: 8:44:24 PM - ResolveError end processing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment