<%@ control language="VB" autoeventwireup="false" inherits="RCC_O365_CC_TenantMissingServicePrincipalControl, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>

<asp:Panel ID="Pnl_ConsentServicePrincipalError" runat="server" Style="display: none" CssClass="width-modal-popup-auto">

    <div class="card">
        <div class="header container-fluid">
            <h3 class="pull-left"><%= Resources.Content.strStepsRequired%></h3>
            <span>
                <button type="button" class="close" onclick="$find('<%=MPE_ConsentServicePrincipalError.ClientID%>').hide();">&times;</button>
            </span>
        </div>
        <div class="body">
            <div class="row">
                <div class="col-xs-12">
                    <asp:Label ID="Lbl_ConsentServicePrincipalError" runat="server"></asp:Label>
                    <br />
                    <asp:Literal ID="Ltrl_AddServicePrincipalInTenant" runat="server" Text="<% $Resources:Content,strAddServicePrincipalInTenant %>"></asp:Literal>
                    <p>
                        <pre>
Disconnect-MgGraph
Connect-MgGraph -Scopes "Application.ReadWrite.All"
$ServicePrincipalID=@{
    "AppId" = "<asp:Literal ID='Ltrl_MissingServiceAppId' runat="server"></asp:Literal>"
}
New-MgServicePrincipal -BodyParameter $ServicePrincipalId
                        </pre>
                    </p>
                </div>
            </div>
        </div>
    </div>


</asp:Panel>
<asp:Button ID="Btn_ConsentServicePrincipalError" runat="server" CssClass="btn-dummy" />
<EM:ModalPopupExtender runat="server" ID="MPE_ConsentServicePrincipalError" BackgroundCssClass="modalBackground"
    DropShadow="false" PopupControlID="Pnl_ConsentServicePrincipalError" TargetControlID="Btn_ConsentServicePrincipalError">
</EM:ModalPopupExtender>
