Accounts, Subscriptions, and Plans troubleshooting

 

Applies To: Windows Azure Pack

This topic describes troubleshooting issues that pertain to accounts, subscriptions, and plans in Windows Azure Pack for Windows Server. Recommendations are provided for the following issues:

  • Add a co-administrator to a subscription

  • Assign virtual machines to a subscription

  • Create a new user using Windows PowerShell

  • Create a plan

  • Create a subscription

  • Delete a subscription

  • Fix a plan's synchronization issues

  • Get clouds or VM templates to appear for adding to a plan

  • Make changes to a plan

  • See the expected virtual machine templates for a plan

Add a co-administrator to a subscription

Pertains to: Administer User Accounts and Subscriptions

Issue

To accommodate scenarios such as a tenant leaving an organization, a hosting service provider may need to change the ownership of a virtual machine that is to be used by the subscription.

Recommendation

Change ownership properties in System Center 2012 R2 Virtual Machine Manager. For more information, see the blog post Assigning Owner and User Role to VMs in Windows Azure Pack.

Back to top

Assign virtual machines to a subscription

Pertains to: Administer User Accounts and Subscriptions

Issue

Need to allow another administrator to administer a subscription.

Recommendation

See the blog post: Adding an already running VM in Virtual Machine Manager to a Windows Azure Pack Subscription

Back to top

Create a new user using Windows PowerShell

Pertains to: Administer User Accounts and Subscriptions

Issue

Want to automate creating a user with a script.

Recommendation

You can use the following script as a basis.

# Set Environment Specific Variables
$WAPServer = "CONTOSO-WAP01"

# Set User Specific Variables
$UserEmail = "test@test.com"
$Password = "Pass@word1"
$PasswordQ = "Demo"
$PasswordA = "With@"

# Establish Connection to WAP
$AdminURI = "https://" + $WAPServer + ":30004"
$AuthSite = "https://" + $WAPServer + ":30072"
$ClientRealm = "http://azureservices/AdminSite"
$token = Get-MgmtSvcToken -Type Windows -AuthenticationSite $AuthSite -ClientRealm $ClientRealm -DisableCertificateValidation

#Create User within WAP
$User = Add-MgmtSvcUser -Email $UserEmail -Name $UserEmail -State Active -ActivationSyncState InSync -AdminUri $AdminURI -Token $token

# Establish ASP Provider Configuration
Add-Type -Path C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Web.dll
$config = New-Object System.Collections.Specialized.NameValueCollection

# Get Connection String for WindowsAuthSite
$connectionString = (Get-MgmtSvcSetting WindowsAuthSite ApplicationServicesConnectionString).Value

# Configure Provider Settings
$config.Add('enablePasswordRetrieval','false')
$config.Add('enablePasswordReset','true')
$config.Add('requiresQuestionAndAnswer','false')
$config.Add('passwordFormat','Clear')
$config.Add('requiresUniqueEmail','false')
$config.Add('maxInvalidPasswordAttempts','5')
$config.Add('minRequiredPasswordLength','8')
$config.Add('minRequiredNonalphanumericCharacters','0')
$config.Add('passwordAttemptWindow','30')
$config.Add('applicationName','/')
$config.Add('connectionString', $connectionString)

# Create ASP Provider
$provider = New-Object System.Web.Security.SqlMembershipProvider
$provider.Initialize('AspNetSqlMembershipProvider', $config)

# Create User within ASP Provider
$status = 0
$provider.CreateUser($User.Name, $Password, $User.Email, $PasswordQ, $PasswordA, $true, $null, [ref] $status)
$status 

Back to top

Create a plan

Pertains to: Administer Plans and Add-ons

Issue

The Authoring a Hosting Plan Wizard fails.

Recommendation

Check for the following possible issues:

  • A required usage and billing system might not be set up.

  • Review the "Credentials checklist" in Security troubleshooting for possible authentication errors.

Back to top

Create a subscription

Pertains to: Administer User Accounts and Subscriptions

Issue

An error occurred while contacting one of the underlying providers, and a remote server may have responded by stopping the action.

Recommendation

Check for the following possible issues:

Back to top

Delete a subscription

Pertains to: Administer User Accounts and Subscriptions

Issue

A user account is stuck in a deletion phase, preventing that user from adding a new subscription.

Recommendation

Check that any custom resource provider that might be causing problems because it was uninstalled or renamed. You can also try the following Windows PowerShell script:

Function Remove-Subscription
{
     param 
    (
    [Parameter(Mandatory=$true)]
    $token,

            [Parameter(Mandatory=$true)]
    $adminSiteURL,

            [Parameter(Mandatory=$true)]
    $emailAddress
    )

    If($emailAddress -Ne $null)
    {
         $subscription = Get-MgmtSvcSubscription  $AdminSiteURL $token -UserName $emailAddress -First 1 -DisableCertificateValidation
         Remove-MgmtSvcSubscription  $AdminSiteURL $token -SubscriptionId $subscription.subscriptionId  -Force -DisableCertificateValidation -Confirm:$false               
    }    
}

Back to top

Fix a plan's synchronization issues

Pertains to: Administer Plans and Add-ons

Issue

The status for a plan is Syncing or Out-of-sync after being configured.

Recommendation

Click the plan to view its dashboard page to see additional information. The Syncing status occurs when the underlying management service for the plan is updating quotas, which could take a long time if there are a large number of subscriptions in the plan.

If the service fails, the status will change to out-of-sync. Verify that the endpoint URL for the resource provider is accurate. You can also set up Set up event tracing for debugging. Also see the blog post, Windows Azure Pack Sync Issues.

Back to top

Get clouds or VM templates to appear for adding to a plan

Pertains to: Administer Plans and Add-ons

Issue

When defining a plan, the expected virtual machine clouds, or VM templates for standalones, do not appear for adding to a plan.

Recommendation

Ensure the following:

  1. That the VM Cloud exists in the management portal for administrators.

  2. Make sure that there is a guest operating system is defined for the template.

Back to top

Make changes to a plan

Pertains to: Administer Plans and Add-ons

Issue

When attempting to save changes to a plan the I get the error message "failed to initialize service offer."

Recommendation

Make sure that the SCVMMService (in task manager) is running on the server with System Center 2012 R2 Virtual Machine Manager.

Back to top

See the expected virtual machine templates for a plan

Pertains to: Administer Plans and Add-ons

Issue

The expected virtual machine templates for creating a plan do not appear in the management portal for administrators.

Recommendation

Verify that the Compatibility Profile setting is correct for the template. See How to Create a Hardware Profile [VMM 2012] and How to Create a Private Cloud from Host Groups [VMM2012].

Back to top

See Also

Windows Azure Pack troubleshooting