Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Task 02: Prepare the environments and solution

Key tasks

01: Create Power Platform environments

  1. In a new tab, go to Power Platform admin center .

    This will open the Power Platform admin center.

  2. In the leftmost pane, select Manage.

    You’ll create three environments.

  3. Wait until the environments list loading error goes away.

    This may take 15-20 minutes following the launch of the lab to finish provisioning your account in Power Platform.

    oxb84440.jpg

    Periodically refresh the page.

  4. On the top bar of the Environments page, select New.

    foq1to90.jpg

  5. In the flyout pane:

    1. Enter the following details:

      Item Value
      Name Zava Retail - Dev
      Region United States
      Type Developer

      k9im0v6q.jpg

    2. At the bottom of the flyout pane, select Next.

    3. Keep the defaults, then select Save.

      9ocpjpyf.jpg

  6. On the top bar, select New again.

  7. In the flyout pane:

    1. Enter the following details:

      Item Value
      Name Zava Retail - UAT
      Region United States
      Type Developer
    2. Select Next.

    3. Select Save.

    You could also use Sandbox instead of Developer in a real-world environment.

  8. On the top bar, select New again.

  9. In the flyout pane:

    1. Enter the following details:

      Item Value
      Name Zava Retail - Prod
      Region United States
      Type Developer
    2. Select Next.

    3. Select Save.

    Use Production instead of Developer in a real-world environment.

    bbxw3tfk.jpg

  10. Select Zava Retail - Dev.

    vvyugt4r.jpg

  11. Under Environment ID, copy and paste the value into a notepad for later use.

    Delete any leading or trailing spaces from the text box.

    hr6p8mz8.jpg

  12. Go back to the Environments page, then paste the Environment ID of the other two environments in the notepad.

    Item Value
    UAT @lab.TextBox(uat)
    Prod @lab.TextBox(prod)

    These values will be used for reference in future instructions and must be filled in.

    Delete any leading or trailing spaces from the text box.


02: Set environments as Managed

  1. On the VM’s taskbar, open Windows PowerShell ISE.

  2. In PowerShell ISE, select File > New.

  3. In the top pane, enter the following:

    Select Copy in the following block, then paste with Ctrl+V.

     # Environment IDs - Uses the values you pasted in the text boxes.
     $dev  = '@lab.Variable(dev)'
     $uat  = '@lab.Variable(uat)'
     $prod = '@lab.Variable(prod)'
    
     $environmentIds = @($dev, $uat, $prod)
    
     $GovernanceConfiguration = [pscustomobject]@{
         protectionLevel = "Standard"
         settings = [pscustomobject]@{
             extendedSettings = @{}
         }
     }
    
     foreach ($envId in $environmentIds) {
         # Skip placeholders (optional safety)
         if ([string]::IsNullOrWhiteSpace($envId) -or $envId -eq "placeholder") {
             Write-Host "Skipping envId='$envId' (placeholder/empty)" -ForegroundColor Yellow
             continue
         }
    
         Write-Host "Applying governance config to environment: $envId" -ForegroundColor Cyan
    
         Set-AdminPowerAppEnvironmentGovernanceConfiguration `
             -EnvironmentName $envId `
             -UpdatedGovernanceConfiguration $GovernanceConfiguration
     }
    

    $dev, $uat, and $prod use the values entered in the prior text boxes.

  4. On the top bar, select Run Script (4i5w6k00.jpg).

    wvyptqrd.jpg

  5. In the dialog, sign in with your lab credentials.

  6. The output in the bottom pane should show Code: 202 and Accepted for all three environments.

    yaypapzr.jpg

  7. Go back to your tab for the Power Platform admin center.

  8. Under the Manage menu, select Environments.

    2mnthijq.jpg

  9. Refresh the page.

  10. The Managed column should show Yes for all three environments.

    qn9quhwd.jpg

  11. Close PowerShell ISE without saving.


03: Change environments

  1. In a new browser tab, go to the PowerApps homepage.

  2. In the dialog, select Get started.

  3. Near the upper-right corner of the page, select Environment, then select Zava Retail - Dev.

    roahebog.jpg

    eodk3mcu.jpg

    Depending on screen resolution, you may need to select the globe icon to open the Select environment pane.

    jtajbitz.jpg


04: Import the retail service solution

  1. In the leftmost pane of Power Apps, select Solutions.

  2. On the top bar, select Import solution.

    7aepl7mc.jpg

  3. In the flyout pane, select Browse.

  4. In the Open window, in C:\LabFiles, select ZavaGlobalServiceDesk_@lab.LabInstance.Id_1_0_0_0, then select Open.

    sz0s5fan.jpg

  5. At the bottom of the flyout pane, select Next.

  6. Select Import.

  7. Wait until the top banner shows the solution imported successfully.

    kko8nmg1.jpg

    4qrfnd4v.jpg

    This may take 5-10 minutes.

    If waiting longer than 10 minutes, refresh the page. If you see an error like the following, try importing again:

    • Solution “Zava Global Service Desk” failed to import: Cannot start another [Import] because there is a previous [Import] running at this moment…

05: Import data into the tables

  1. Select the new Zava Global Service Desk solution.

    There are four tables included in the solution, which you’ll import sample data to.

    2r4u96ks.jpg

  2. Select Customer.

    dhe5lygo.jpg

  3. On the top bar, select Import > Import data from Excel.

    tnh8jmbr.jpg

    If you see the following error, close the flyout pane, refresh the page, then try again.

    6kh4b416.jpg

  4. In the flyout pane:

    1. Select Upload.

    2. In C:\LabFiles, select crd_customers, then select Open.

    3. Wait until Mapping status shows Mapping was successful.

      nwwogw8m.jpg

    4. In the upper-right corner of the flyout pane, select Import.

      zl3khvut.jpg

      mlw1xjv4.jpg

      If you see Import failed with Status: -1, refresh the page to see if the data imported successfully, as it’s likely a transient error.

      7ch7ax8e.jpg

      For any other errors, refresh the page then try the import again.

    5. Once imported, close the flyout pane.

  5. Refresh the page to see the imported data.

    38mda1wm.jpg

  6. Below the page’s top bar, select the Tables breadcrumb link.

    pz4u7ggq.jpg

  7. Repeat the same upload steps for the following tables, in this order:

    1. Order - Using crd_orders.

      ugjmq5ef.jpg

    2. Case - Using crd_cases.

      Mapping warnings exist can be ignored.

      0gfdhex8.jpg

      hgwi54np.jpg

    3. Return Request - Using crd_returnrequests.

      sgyr8xzd.jpg

    If you see Import failed with Status: -1, refresh the page to see if the table data imported successfully, as it’s likely a transient error.

    7ch7ax8e.jpg

    For any other errors, refresh the page then try the import again.

  8. Confirm you see the imported data in the tables.