Server Failed To Authenticate Request - Azure Image Creation

5857
2
04-13-2015 12:09 PM
AndrewBrown
New Contributor III

I've been trying to create the initial image for the AGS on Azure tech preview.

I've downloaded and installed Azure Powershell, I'm running windows 7 with Powershell 3.0.

I have an MS Azure Subscription and I've created the publishsettings file.

I have an ArcGIS Server 10.2.2 installation folder and the provisioning file.

The first errors I got were from line 357 in the agsAzureVMTools.ps1.  The $azModDef variable was looking for Azure.psd1 in this path ....

$azModDef = "C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\ServiceManagement\Azure\Azure.psd1"

Yet on my computer, the path to Azure.psd1 was

"C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Azure.psd1"

I modified agsAzureVMTools.ps1 to point to the correct path and it got a little further.

Now I am getting this message.

Test-AzureName : ForbiddenError: The server failed to authenticate the
request. Verify that the certificate is valid and is associated with this
subscription.

Has anyone experienced this problem before?

Thanks,

Andrew

0 Kudos
2 Replies
AndrewBrown
New Contributor III

Here is the log file generated.

I don't know why it can't find the storage account.  I've tried my original storage, and also created a new storage account.

[04-13-2015 14:53:13.131991] logging to file enabled : D:\Files\Software\ESRI\ArcGIS-On-Azure-TechPreview\Server\logs\Create-Image-13-Apr-2015-T14-53-13.log
[04-13-2015 14:53:13.178791] Current PowerShell version : 3.0
[04-13-2015 14:53:14.010591] Current Azure version : 0.8.16
[04-13-2015 14:53:14.026191] Checking Create-Image.ps1 input parameters
[04-13-2015 14:53:14.057391] Connecting to subscription Visual Studio Premium with MSDN
VERBOSE: Setting: Microsoft.Azure.Common.Authentication.Models.AzureSubscription as the default and current subscription. To view other subscriptions use Get-AzureSubscription
[04-13-2015 14:53:15.835791] Create-Image.ps1 : FAILED
ERROR: Storage account agsazurestorage not found
At D:\Files\Software\ESRI\ArcGIS-On-Azure-TechPreview\Server\PSScripts\agsAzure
VMTools.ps1:446 char:7
+       throw (fls "Storage account {0} not found" -p $StorageAccountName)
+       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Storage account...orage not f
   ound:String) [], RuntimeException
    + FullyQualifiedErrorId : Storage account agsazurestorage not found

0 Kudos
NikhilShampur
New Contributor III

Andrew - can u try the following commands in a PowerShell window

Import-AzurePublishSettingsFile <pathToYourFIle>

Select-AzureSubscription -Name 'Visual Studio Premium with MSDN'

Get-AzureStorageAccount 'agsazurestoreage'

Also I would recommend that you rename your Azure subscription.

How to change the name of your Windows Azure subscription | Rick Rainey 

0 Kudos