Cloud evangelist with a passion for Microsoft Private Cloud and Public Cloud. Hopefully you will find something useful here.
-Kristian Nese

Tuesday, January 28, 2014

Troubleshooting Windows Azure Pack - Re-register a Resource Provider

As I highlighted in a blog post last week, we have gone
under the hood of Windows Azure in order to understand this business critical
solution.

This includes:

·Architecture

·Dependencies

·Performance bottlenecks

·Configuration

As a result of all this investigation, we had to “rebuild”
the WAP solution several times.

When I say rebuild, I do not necessarily mean a complete
rebuild, installing SPF, VMM and WAP all over again, but remove the connected
dependencies and so on.

This has indeed been an interesting and valuable learning.

The situation:

You have a WAP environment that you want to restart, by
flushing the configuration in the portal.

For some reason, you have lost the connection to your
resource provider, so that the VM Cloud show 0, empty, nada.

You are unable to register the VMM server(s) again, and
by looking at the Odata Management logs on the SPF server (where all the magic
is really happening), will find out that something is complaining about an item
with the same key has already been added. So to summarize, we know it's there, but it is not showing.

Before you proceed
– verify the following:

Your VMM service is running, available and actually
working. Make sure that VMM is not complaining about anything critical, as this
is key for SPF/WAP to work correctly in this context.

Also, you must ensure that no one has touched any of the
dedicated user accounts for the setup, as well as DNS is working as expected.
We have seen odd behavior in conjunction with a bad DNS server.

Removing the VM
Cloud resource provider in WAP with MgmtSvC-cmdlets

The portal will not let you remove the Service Provider
Foundation endpoint – but only update
the settings. So, if you are not pointing to another SPF connection string,
this one is currently locked at the current resource provider.