none
Start-ActionPlanInstance Timeout while trying to register ASDK + ADFS RRS feed

  • Question

  • The symptome looks the same as what is described in two other questions, except the line number is now 1239 instead of 1249. I'm not allowed to post links, so here are the question titles:

    • When Trying to Register ASDK Deployment getting failure message "Action plan execution failed. Error: Execution timeout" on 1904 build (f3896426-6808-496c-86ec-8886681a5fa4)
    • Can't register ASDK + ADFS to Azure. (9e319e05-f498-4f75-a466-bf8593524395)

    Tried to extend the timeout as the answer suggested, but the argument -TimeoutInSeconds 1800 is already there. I extend it to 3600, the same. Even tried with 72000, still same. The script didn't really waited for 20 hours before it yield timeout. The timestamp between two trials are about 90 seconds, which includes the 10 seconds wait time.

    The ASDK I'm running is version 1.1910.0.58 with ADFS. The account I'm trying to register with is a free trial one. I log on to the host with azurestackadmin in remote desktop and run powershell with administrator, and run this:

    # Add the Azure cloud subscription environment name. 
    # Supported environment names are AzureCloud, AzureChinaCloud, or AzureUSGovernment depending which Azure subscription you're using.
    Add-AzureRmAccount -EnvironmentName "<environment name>"
    
    # Register the Azure Stack resource provider in your Azure subscription
    Register-AzureRmResourceProvider -ProviderNamespace Microsoft.AzureStack
    
    # Import the registration module that was downloaded with the GitHub tools
    Import-Module C:\AzureStack-Tools-master\Registration\RegisterWithAzure.psm1
    
    # If you have multiple subscriptions, run the following command to select the one you want to use:
    # Get-AzureRmSubscription -SubscriptionID "<subscription ID>" | Select-AzureRmSubscription
    
    # Register Azure Stack
    $AzureContext = Get-AzureRmContext
    $CloudAdminCred = Get-Credential -UserName AZURESTACK\CloudAdmin -Message "Enter the credentials to access the privileged endpoint."
    $RegistrationName = "<unique-registration-name>"
    Set-AzsRegistration `
    -PrivilegedEndpointCredential $CloudAdminCred `
    -PrivilegedEndpoint AzS-ERCS01 `
    -BillingModel Development `
    -RegistrationName $RegistrationName `
    -UsageReportingEnabled:$true

    And result:

    PS C:\AzureStack-Tools-master> .\register.ps1
    
    Account                    SubscriptionName TenantId                             Environment
    -------                    ---------------- --------                             -----------
    ***************            Free Trial       ********************                 AzureCloud
    
    ProviderNamespace : Microsoft.AzureStack
    RegistrationState : Registered
    ResourceTypes     : {operations, registrations, registrations/products, registrations/customerSubscriptions}
    Locations         : {Global, West Central US}
    ZoneMappings      :
    
    VERBOSE: Writing logs to file: C:\MASLogs\Registration\AzureStack.Activation.Set-AzsRegistration-2020-02-14.log
    VERBOSE: 2020-02-14.10-52-40: *********************** Begin log: Set-AzsRegistration ***********************
    VERBOSE: 2020-02-14.10-52-44: Gathering info from current Azure Powershell context...
    VERBOSE: 2020-02-14.10-52-44: Current Azure Context:
     {
        ******
    }
    VERBOSE: 2020-02-14.10-52-44: Initializing session with privileged endpoint: AzS-ERCS01. Attempt 0 of 3
    WARNING: The names of some imported commands from the module 'ECEClient' include unapproved verbs that might make them
    less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose
    parameter. For a list of approved verbs, type Get-Verb.
    VERBOSE: 2020-02-14.10-52-50: Connection to AzS-ERCS01 successful
    VERBOSE: 2020-02-14.10-52-50: Verifying stamp version.
    VERBOSE: 2020-02-14.10-52-55: Running registration actions on build 1.1910.0.58. Cloud Id: 5dafd969-d154-4015-9489-b6898c1fb585, Deployment Id: 0b716e14-d928-44e9-b70a-61b28e707c69
    VERBOSE: 2020-02-14.10-52-55: Creating Azure Active Directory service principal in tenant 'a77d40d9-dcba-4dda-b571-5f18e6da853f' Attempt 0 of 3
    VERBOSE: Looking up shared vhd product drive letter.
    WARNING: Unable to find volume with label Deployment
    VERBOSE: Get-Package returned with Success:True
    VERBOSE: Found package Microsoft.AzureStack.Solution.Deploy.Security with version 1.1910.0.58 at C:\NugetStore\Microsoft.AzureStack.Solution.Deploy.Security.1.1910.0.58\Microsoft.AzureStack.Solution.Deploy.Security.nuspec.
    VERBOSE: type added
    VERBOSE: 2020-02-14.10-54-16: *** WARNING ***
    WARNING: 2020-02-14.10-54-16: Creation of service principal failed:
    Action plan execution failed. Error: Execution timeout
    VERBOSE: 2020-02-14.10-54-16: *** End WARNING ***
    VERBOSE: 2020-02-14.10-54-16: Waiting 10 seconds and trying again...
    VERBOSE: 2020-02-14.10-54-26: Creating Azure Active Directory service principal in tenant 'a77d40d9-dcba-4dda-b571-5f18e6da853f' Attempt 1 of 3
    VERBOSE: Looking up shared vhd product drive letter.
    WARNING: Unable to find volume with label Deployment
    VERBOSE: Get-Package returned with Success:True
    VERBOSE: Found package Microsoft.AzureStack.Solution.Deploy.Security with version 1.1910.0.58 at C:\NugetStore\Microsoft.AzureStack.Solution.Deploy.Security.1.1910.0.58\Microsoft.AzureStack.Solution.Deploy.Security.nuspec.
    VERBOSE: type added
    VERBOSE: 2020-02-14.10-55-49: *** WARNING ***
    WARNING: 2020-02-14.10-55-49: Creation of service principal failed:
    Action plan execution failed. Error: Execution timeout
    VERBOSE: 2020-02-14.10-55-49: *** End WARNING ***
    VERBOSE: 2020-02-14.10-55-49: Waiting 10 seconds and trying again...
    VERBOSE: 2020-02-14.10-55-59: Creating Azure Active Directory service principal in tenant 'a77d40d9-dcba-4dda-b571-5f18e6da853f' Attempt 2 of 3
    VERBOSE: Looking up shared vhd product drive letter.
    WARNING: Unable to find volume with label Deployment
    VERBOSE: Get-Package returned with Success:True
    VERBOSE: Found package Microsoft.AzureStack.Solution.Deploy.Security with version 1.1910.0.58 at C:\NugetStore\Microsoft.AzureStack.Solution.Deploy.Security.1.1910.0.58\Microsoft.AzureStack.Solution.Deploy.Security.nuspec.
    VERBOSE: type added
    VERBOSE: 2020-02-14.10-57-18: *** WARNING ***
    WARNING: 2020-02-14.10-58-22: Creation of service principal failed:
    Action plan execution failed. Error: Execution timeout
    VERBOSE: 2020-02-14.10-58-22: *** End WARNING ***
    VERBOSE: 2020-02-14.10-58-22: Waiting 10 seconds and trying again...
    VERBOSE: 2020-02-14.10-58-32: ************************ Error ************************
    VERBOSE: 2020-02-14.10-58-32: Action plan execution failed. Error: Execution timeout
    VERBOSE: 2020-02-14.10-58-32: at Start-ActionPlanInstance, C:\Program Files\WindowsPowerShell\Modules\Microsoft.Azurestack.Activation\Microsoft.Azurestack.Activation.psm1: line 432
    at New-AzureBridgeServicePrincipal, C:\Program Files\WindowsPowerShell\Modules\Microsoft.Azurestack.Activation\Microsoft.Azurestack.Activation.psm1: line 179
    VERBOSE: 2020-02-14.10-58-32: *********************** Ending registration action during New-ServicePrincipal ***********************
    VERBOSE: 2020-02-14.10-58-32: Logs can be found at: C:\MASLogs\Registration\AzureStack.Activation.Set-AzsRegistration-2020-02-14.log  and  \\AzS-ERCS01\c$\maslogs
    VERBOSE: 2020-02-14.10-58-32: Removing any existing PSSession...
    Action plan execution failed. Error: Execution timeout
    At C:\AzureStack-Tools-master\Registration\RegisterWithAzure.psm1:1239 char:13
    +             $servicePrincipal = Invoke-Command -Session $PSSession -S ...
    +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OperationStopped: (Action plan exe...ecution timeout:String) [], RuntimeException
        + FullyQualifiedErrorId : Action plan execution failed. Error: Execution timeout
    

    And after the failure, I validated the installation again with this again:

    Enter-PSSession -ComputerName AzS-ERCS01 -ConfigurationName PrivilegedEndpoint
    Test-AzureStack

    Result is all pass and true:

    PS C:\AzureStack-Tools-master> Enter-PSSession -ComputerName AzS-ERCS01 -ConfigurationName PrivilegedEndpoint
    WARNING: The names of some imported commands from the module 'ECEClient' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with
    the Verbose parameter. For a list of approved verbs, type Get-Verb.
    [AzS-ERCS01]: PS>Test-AzureStack
    02/14/2020 11:15:22 : Starting Test-AzureStack
    02/14/2020 11:15:42 : Launching AzsInfraPerformance
    02/14/2020 11:17:33 : PASS : Azure Stack Infrastructure Role Instance Performance
    02/14/2020 11:17:33 : PASS : Azure Stack Cloud Host Performance Summary
    02/14/2020 11:17:33 : Launching AzsScenarios
    02/14/2020 11:17:33 : Launching AzsHostingInfraSummary
    02/14/2020 11:17:33 : Launching AzsInfraRoleSummary
    02/14/2020 11:17:33 : Launching AzsPortalAPISummary
    02/14/2020 11:17:34 : Launching AzsStorageSvcsSummary
    02/14/2020 11:17:34 : Launching AzsIdentityProviderConnectivity
    02/14/2020 11:17:34 : Launching AzsStorageDataPlane
    02/14/2020 11:17:37 : Launching AzsScaleUnitResources
    02/14/2020 11:17:41 : PASS : Azure Stack Identity Provider Connectivity
    02/14/2020 11:17:41 : Launching AzsScaleUnitEvents
    02/14/2020 11:17:46 : PASS : Azure Stack Scale Unit VM Resources
    02/14/2020 11:17:46 : Launching AzsVmPlacement
    02/14/2020 11:17:47 : PASS : Azure Stack Portal and API Summary
    02/14/2020 11:17:47 : PASS : Azure Stack ARM Certificate Summary
    02/14/2020 11:17:47 : Launching AzsSFRoleSummary
    02/14/2020 11:17:49 : PASS : Azure Stack Scale Unit Critical Events (Last 8 hours)
    02/14/2020 11:17:49 : Launching AzsStampBMCSummary
    02/14/2020 11:17:51 : PASS : Azure Stack Scale Unit VM Placement Summary
    02/14/2020 11:17:51 : Launching AzsStoreSummary
    02/14/2020 11:17:53 : PASS : Azure Stack Data Store Servers
    02/14/2020 11:17:53 : PASS : Azure Stack Data Store Cluster
    02/14/2020 11:17:53 : Launching AzsApplicationCrashSummary
    02/14/2020 11:17:55 : PASS : Azure Stack Application Crashes (Last 8 hours)
    02/14/2020 11:17:55 : Launching AzsDefenderSummary
    02/14/2020 11:18:02 : PASS : Azure Stack Cloud Hosting Infrastructure Summary
    02/14/2020 11:18:02 : Launching AzsAdSummary
    02/14/2020 11:18:05 : PASS : Azure Stack Privileged Endpoint Service Fabric Cluster
    02/14/2020 11:18:05 : PASS : Azure Stack Privileged Endpoint Service Fabric Nodes
    02/14/2020 11:18:05 : PASS : Azure Stack Privileged Endpoint Service Fabric Applications
    02/14/2020 11:18:05 : PASS : Azure Stack Privileged Endpoint Service Fabric Services
    02/14/2020 11:18:05 : PASS : Azure Stack Support Ring Services endpoint Service Fabric Cluster
    02/14/2020 11:18:05 : PASS : Azure Stack Support Ring Services endpoint Service Fabric Nodes
    02/14/2020 11:18:05 : PASS : Azure Stack Support Ring Services endpoint Service Fabric Applications
    02/14/2020 11:18:05 : PASS : Azure Stack Support Ring Services endpoint Service Fabric Services
    02/14/2020 11:18:05 : PASS : Azure Stack Storage Services Service Fabric Cluster
    02/14/2020 11:18:05 : PASS : Azure Stack Storage Services Service Fabric Nodes
    02/14/2020 11:18:05 : PASS : Azure Stack Storage Services Service Fabric Applications
    02/14/2020 11:18:05 : PASS : Azure Stack Storage Services Service Fabric Services
    02/14/2020 11:18:05 : PASS : Azure Stack Fabric Management Controller Service Fabric Cluster
    02/14/2020 11:18:05 : PASS : Azure Stack Fabric Management Controller Service Fabric Nodes
    02/14/2020 11:18:06 : PASS : Azure Stack Fabric Management Controller Service Fabric Applications
    02/14/2020 11:18:06 : PASS : Azure Stack Fabric Management Controller Service Fabric Services
    02/14/2020 11:18:06 : PASS : Azure Stack Network Controller Service Fabric Cluster
    02/14/2020 11:18:06 : PASS : Azure Stack Network Controller Service Fabric Nodes
    02/14/2020 11:18:06 : PASS : Azure Stack Network Controller Service Fabric Applications
    02/14/2020 11:18:06 : PASS : Azure Stack Network Controller Service Fabric Services
    02/14/2020 11:18:06 : PASS : Azure Stack Infrastructure BMC Information
    02/14/2020 11:18:06 : PASS : Azure Stack Storage Data Plane Summary
    02/14/2020 11:18:06 : Launching AzsAlertSummary
    02/14/2020 11:18:06 : Launching AzsHostingInfraFWSummary
    02/14/2020 11:18:06 : Launching AzsAcsSummary
    2/14/2020 11:18:09 AM Get-AzureStackAlert : Starting Get Alerts.
    2/14/2020 11:18:09 AM Get-AzureStackAlert : Got the Health service endpoint https://AzS-Xrp01.azurestack.local:37009
    02/14/2020 11:18:12 : PASS : Azure Stack Alert Summary
    02/14/2020 11:18:12 : Launching AzsInfraUpdateSummary
    02/14/2020 11:18:13 : PASS : Azure Stack Infrastructure Hosts BIOS Inventory
    02/14/2020 11:18:13 : PASS : Azure Stack Infrastructure Hosts Processor Inventory
    02/14/2020 11:18:13 : PASS : Azure Stack Infrastructure Hosts Network Adapter Inventory
    02/14/2020 11:18:13 : PASS : Azure Stack Infrastructure Hosts Storage Adapter Inventory
    02/14/2020 11:18:13 : Launching AzsHostingInfraUtilization
    02/14/2020 11:18:15 : PASS : Azure Stack Storage Pool Summary
    02/14/2020 11:18:15 : PASS : Azure Stack Storage Services Physical Disks Summary
    02/14/2020 11:18:15 : PASS : Azure Stack Storage Virtual Disk Summary
    02/14/2020 11:18:15 : PASS : Azure Stack Storage Volume Summary
    02/14/2020 11:18:15 : PASS : Azure Stack Storage Cluster Shared Volume Summary
    02/14/2020 11:18:15 : PASS : Azure Stack Storage File Share Summary
    02/14/2020 11:18:15 : PASS : Azure Stack Storage Job Summary
    02/14/2020 11:18:15 : PASS : Azure Stack Storage Services Summary
    02/14/2020 11:18:15 : PASS : Azure Stack Storage SubSystem Summary
    02/14/2020 11:18:15 : Launching AzsInfraCapacity
    02/14/2020 11:18:28 : PASS : Azure Stack Update Summary
    WARNING: This cmdlet is deprecated and may not be available in the future. Use Get-ClusterPerformanceHistory instead.
    02/14/2020 11:18:29 : PASS : Azure Stack Cloud Hosting Infrastructure Utilization
    02/14/2020 11:18:30 : PASS : Azure Stack ACS Blob Service Summary
    02/14/2020 11:18:41 : PASS : Azure Stack Infrastructure Role Instance Summary
    02/14/2020 11:18:41 : PASS : Azure Stack Service Resource Consumption Summary
    02/14/2020 11:18:41 : PASS : Azure Stack Infrastructure Clocks
    VERBOSE: Triggering KCC .
    VERBOSE: Triggering inter/intra-site replication [PULL].
    VERBOSE: Triggering inter/intra-site replication [PUSH]
    02/14/2020 11:18:42 : PASS : Azure Stack Active Directory Summary
    02/14/2020 11:18:50 : PASS : Azure Stack Infrastructure Capacity
    02/14/2020 11:18:50 : PASS : Azure Stack Shared Volume Capacity
    02/14/2020 11:19:13 : PASS : Azure Stack Defender Summary
    
    Azure Stack Validation Summary
    ------------------------------
    PASS Azure Stack Cloud Hosting Infrastructure Summary
    PASS Azure Stack Storage Services Summary
    PASS Azure Stack Infrastructure Role Instance Summary
    PASS Azure Stack Scale Unit VM Placement Summary
    PASS Azure Stack Infrastructure Capacity
    PASS Azure Stack Shared Volume Capacity
    PASS Azure Stack Identity Provider Connectivity
    PASS Azure Stack Active Directory Summary
    PASS Azure Stack Portal and API Summary
    PASS Azure Stack ARM Certificate Summary
    PASS Azure Stack Data Store Cluster
    PASS Azure Stack Data Store Servers
    PASS Azure Stack ACS Blob Service Summary
    PASS Azure Stack Storage Data Plane Summary
    PASS Azure Stack Defender Summary
    PASS Azure Stack Update Summary
    PASS Azure Stack Privileged Endpoint Service Fabric Cluster
    PASS Azure Stack Privileged Endpoint Service Fabric Nodes
    PASS Azure Stack Privileged Endpoint Service Fabric Applications
    PASS Azure Stack Privileged Endpoint Service Fabric Services
    PASS Azure Stack Support Ring Services endpoint Service Fabric Cluster
    PASS Azure Stack Support Ring Services endpoint Service Fabric Nodes
    PASS Azure Stack Support Ring Services endpoint Service Fabric Applications
    PASS Azure Stack Support Ring Services endpoint Service Fabric Services
    PASS Azure Stack Storage Services Service Fabric Cluster
    PASS Azure Stack Storage Services Service Fabric Nodes
    PASS Azure Stack Storage Services Service Fabric Applications
    PASS Azure Stack Storage Services Service Fabric Services
    PASS Azure Stack Fabric Management Controller Service Fabric Cluster
    PASS Azure Stack Fabric Management Controller Service Fabric Nodes
    PASS Azure Stack Fabric Management Controller Service Fabric Applications
    PASS Azure Stack Fabric Management Controller Service Fabric Services
    PASS Azure Stack Network Controller Service Fabric Cluster
    PASS Azure Stack Network Controller Service Fabric Nodes
    PASS Azure Stack Network Controller Service Fabric Applications
    PASS Azure Stack Network Controller Service Fabric Services
    PASS Azure Stack Infrastructure Role Instance Performance
    PASS Azure Stack Cloud Host Performance Summary
    PASS Azure Stack Cloud Hosting Infrastructure Utilization
    PASS Azure Stack Infrastructure Clocks
    PASS Azure Stack Service Resource Consumption Summary
    PASS Azure Stack Alert Summary
    PASS Azure Stack Scale Unit Critical Events (Last 8 hours)
    PASS Azure Stack Application Crashes (Last 8 hours)
    PASS Azure Stack Scale Unit VM Resources
    PASS Azure Stack Infrastructure Hosts BIOS Inventory
    PASS Azure Stack Infrastructure Hosts Processor Inventory
    PASS Azure Stack Infrastructure Hosts Network Adapter Inventory
    PASS Azure Stack Infrastructure Hosts Storage Adapter Inventory
    PASS Azure Stack Infrastructure BMC Information
    PASS Azure Stack Storage Job Summary
    PASS Azure Stack Storage SubSystem Summary
    PASS Azure Stack Storage Pool Summary
    PASS Azure Stack Storage Virtual Disk Summary
    PASS Azure Stack Storage Cluster Shared Volume Summary
    PASS Azure Stack Storage Volume Summary
    PASS Azure Stack Storage File Share Summary
    PASS Azure Stack Storage Services Physical Disks Summary
    
    
    True

    Please help.

    Friday, February 14, 2020 11:47 AM

All replies

  • Thank you for the initial information, logs, troubleshooting, and test-azurestack that you provided. 

    Your issue is quite strange. I am able to see that the registration is starting correctly, but the time in which the New-AzureBridgeServicePrincipal" is running is not correct. 


    2020-02-14.10-52-55: Creating Azure Active Directory service principal
    2020-02-14.10-54-16: Creation of service principal failed:
    2020-02-14.10-54-26: Creating Azure Active Directory service principal
    2020-02-14.10-55-49: Creation of service principal failed:
    2020-02-14.10-55-59: Creating Azure Active Directory service principal
    2020-02-14.10-58-22: Creation of service principal failed:
    As you stated, the time it waits is about 90 seconds. the default timeout if the -timeoutinseconds is not specified is 300, so it is not even waiting the default timeout amount.

    To move forward, I would try 3 things:
    1) Try to remove the -timeoutinseconds parameter and see if it runs for at least 300 seconds.
    2) Make sure that your ASDK has unrestricted outbound internet connectivity

    Saturday, February 15, 2020 12:43 AM
    Moderator