AzurePack: Common errors seen on Websites controller

  Error 1: Exercise "FileServer" failed after the maximum number of retries. Restarting OnStart. Assessment: The exercise means “health check” and the publisher is checking if it has access to the file server using FileShareOwner credential. Action Plan: Check connectivity from the management server to the file server and from the publisher to the file…


AzurePack: Creating and configuring a plan using PowerShell

  Import-Module ‘MgmtSvcAdmin’   # environment settings $AuthSiteURL= ‘https://waptest:30072’ $AdminSiteURL= ‘https://waptest:30004’ $ClientRealmUrl = ‘http://azureservices/AdminSite’   # credentials and token $password = ConvertTo-SecureString "password" -AsPlainText -Force $credential = New-Object System.Management.Automation.PSCredential ("domain\username",$password) $token = Get-MgmtSvcToken -Type Windows -AuthenticationSite $AuthSiteURL -ClientRealm $ClientRealmUrl -User $credential -DisableCertificateValidation   # plan / service settings $PlanDisplayName = ‘PlanName’ $planServiceName = ‘systemcenter’ $serviceDisplayName…


AzurePack: How to change connectionstring in web.config of AzurePack component

  In case you have moved your WAP database to a different server or need to reset password for a SQL login, we would need the connection string from web.config of AzuPack components. The web.config files are encrypted so they should be decrypted first. You can do this through the following PowerShell code: Get-MgmtSvcNamespace |…


AzurePack: How to check if there is version mismatch in WAP components and database schema

  After installing a rollup update on AzurePack, you might sometimes get into an issue where the version of WAP component doesn’t match for database schema version. Most commonly seen error message or symptom of this behavior as seen in event logs is: System.Data.SqlClient.SqlException (0x80131904): Could not find stored procedure ‘mp.UpdatePlan_vx_xx’. Stored procedure name in…


AzurePack: Admin Portal failing with HTTP 500

  One of the common issues we get after setting up AzurePack is while trying to access Admin portal and getting HTTP 500. Moreover issue would be limited to admin portal only and tenant portal might work fine. AzurePack admin portal uses Windows authentication whereas tenant portal used forms authentication, hence the difference. The admin…


AzurePack: Unable to create a new website from Web Gallery

  Troubleshooting tricks from my wiki 1. When creating a new website from Gallery, if Gallery items are not populated, then check if these tables are populated: [Microsoft.MgmtSvc.WebAppGallery].[WebAppGallery].[MarketplaceItemProperties] [Microsoft.MgmtSvc.WebAppGallery].[WebAppGallery].[MarketplaceItems] 2. Also check the events on the server on which this service is hosted –> MgmtSvc-WebAppGallery 3. If the gallery items are populated but still unable…


AzurePack: How to re-run ADFS trust settings for AzurePack portal

  Quite often I have come across situations where ADFS trust was broken for admin or the tenant portal. And the only option we had was to rerun the trust settings again. To re-run the trust between all components, we will follow the steps mentioned in this article: https://technet.microsoft.com/en-us/library/dn457746.aspx Following steps are from my wiki…


AzurePack: How to register a custom resource provider on AzurePack portal

While working on an issue last week, I came across a nice blog with allthe steps to register a custom resource provider on AzurePack portal: http://blogs.technet.com/b/privatecloud/archive/2014/02/11/custom-resource-providers-in-windows-azure-pack-deploying-the-hello-world-sample.aspx Hope this helps!


AzurePack: How to remove a resource provider that is already been registered on the admin portal

  To remove a resource provider from WAP portal like websites resource provider or SPF Go to database to get the instance ID from [Microsoft.MgmtSvc.Store].[MP].[Resourceproviders] Open PowerShell window as Run as administrator Run Get-Help remove-MgmtSvcResourceProviderConfiguration -details Remove-MgmtSvcResourceProviderConfiguration -Name <string> -Instancename <string> Hope this helps!