none
Error when trying to connect Windows Admin Center to Azure RRS feed

  • Question

  • Hi Team,

    I am trying to run the New-AadApp.ps1 script to connect Windows Admin Center to Azure and I am getting errors and cannot create the SME App. I have tried different options and the result is the same. The required Azure modules are installed before running the script, I installed the following;

     Install-Module AzureRM.Resources -verbose
     Install-Module AzureAD -verbose

    I then run the following command (I have tried both commands with the same result)

    First I run,

    .\New-AadApp.ps1 -GatewayEndpoint "https://xxxxxxxx01/" 

    when that fails I run the next command

    .\New-AadApp.ps1 -GatewayEndpoint "https://xxxxxxxx01/" -Credential $cred

    I have not been able to connect Windows Admin Center to Azure, the errors are below 

    ============================================================================

    New-AzureADApplication : Error occurred while executing NewApplication 
    Code: Request_BadRequest
    Message: Invalid value specified for property 'resourceAppId' of resource 'RequiredResourceAccess'.
    RequestId: b34cd413-509a-4ded-b842-2bd84ceca911
    DateTimeStamp: Wed, 02 May 2018 18:21:37 GMT
    Details: PropertyName  - resourceAppId, PropertyErrorCode  - InvalidValue
    HttpStatusCode: BadRequest
    HttpStatusDescription: Bad Request
    HttpResponseStatus: Completed
    At C:\Temp\Windows Admin Center\Connet To Azure PS Script\New-AadApp.ps1:180 char:24
    + ... b_aad_app = New-AzureADApplication -DisplayName $app_display_name -Ap ...
    +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-AzureADApplication], ApiException
        + FullyQualifiedErrorId : Microsoft.Open.AzureAD16.Client.ApiException,Microsoft.Open.AzureAD16.PowerShell.NewApplication

    Cannot create application 'SME-https://xxxxxxxx01/' in Azure AD
    At C:\Temp\Windows Admin Center\Connet To Azure PS Script\New-AadApp.ps1:188 char:13
    +             throw $err
    +             ~~~~~~~~~~
        + CategoryInfo          : OperationStopped: (Cannot create a...1/' in Azure AD:String) [], RuntimeException
        + FullyQualifiedErrorId : Cannot create application 'SME-https://xxxxxxxx01/' in Azure AD

    ============================================================================


    Charles A. Windom Sr.


    • Edited by cwindom Wednesday, May 2, 2018 6:39 PM
    Wednesday, May 2, 2018 6:37 PM

All replies