Skip to content

AI Assisted Package Validation

AI Assisted Package Validation

AI Assisted Package Validation tests a package on a clean Windows 11 virtual machine in your Azure subscription before the package reaches your users. It has two parts, and both are off until an administrator turns them on:

  • Automated validation installs the package, checks that App Store’s detection rule finds it, and uninstalls it. It doesn’t need AI.
  • AI assistance reads the evidence from a failed or inconclusive validation, explains the likely cause, and suggests a change for you to review. It needs Automated validation, and it needs a model you provide.

The two parts are separate. Turning on one doesn’t turn on the other, and you can validate packages with AI assistance off for as long as you like. With both parts off, App Store publishes, updates, and manages apps as it did before, creates no virtual machines, and calls no AI model. Opening the page, saving settings, and running setup checks don’t create a virtual machine or call a model either.

Read Check Whether Your Environment Qualifies first. It lists everything the feature depends on, who sets each item up, and how setup checks it, so you can decide whether your environment qualifies before you provision anything.

Automated ValidationAI Assistance
What it doesTests a package on a clean Windows 11 Enterprise virtual machine that’s joined to your Microsoft Entra ID and enrolled in Intune: install, detection, and uninstallReads the evidence from a failed or inconclusive validation, explains the likely cause, and suggests a change. It doesn’t decide the result and doesn’t change the package
What it needsAn Azure subscription in your Intune tenant, a resource group, a subnet, evidence storage, Microsoft Entra ID P1 or P2 and Intune with automatic enrollment, and permissions that an administrator grants once with the setup scriptAutomated validation turned on, and a model: Azure OpenAI in your subscription, or a service that uses the OpenAI API
What it costsYour Azure charges for the virtual machine, storage, and the cleanup backstop. PowerStacks charges nothingYour model charges, normally per token
What leaves your tenantNothingThe package definition, validation results, evidence extracts, and your messages go to your own model endpoint
How to turn it offAutomations > AI Assisted Package Validation (Preview) > Turn Off Automated ValidationAutomations > AI Assisted Package Validation (Preview) > Turn Off AI Assistance

A validation answers three questions about one package, on one clean virtual machine:

  1. Does it install? App Store assigns the package to the machine through Intune, the same way it reaches your devices, and reads Intune’s install result.
  2. Does detection find it? App Store runs the package’s detection rule on the machine. An app that installs but that its detection rule can’t find is a failure, because Intune would keep trying to install it.
  3. Does it uninstall? App Store assigns the uninstall and checks that the app is gone.

A validation doesn’t test how the app behaves once a person uses it, and no user signs in to the machine. It tests the package as Intune delivers it. ARM64 packages can’t be tested, because validation machines are x64. An app that installs for each user (user context) can’t be tested either: Intune installs it only when its user signs in, and no user signs in to a validation machine. Its result is Not validated: user context, which isn’t a pass.

Every validation ends in one result:

ResultWhat it means
PassedThe app installed, its detection rule found it, it uninstalled, and the evidence is stored
FailedA stage ended in a definite failure, and the validation says which step and why. An app that installs but that its detection rule can’t find shows as Install: Passed and Detection: Failed
InconclusiveA stage ran out of time without an answer, or the result can’t be trusted. For example, the app was already on the image, the run reached its 6-hour limit, or Azure refused the virtual machine
BlockedThe test environment stopped the validation before the install ran. This says nothing about the package, and the Validations list gives the cause
CancelledAn administrator canceled the validation, or the feature was turned off

AI assistance works only on a result that already exists. It doesn’t run the validation, doesn’t choose the result, and doesn’t change the package. When a validation fails or ends Inconclusive, a model reads the evidence the validation recorded, explains the likely cause, and suggests a change. The suggestion is for you to review, and nothing applies it.

App Store never implies that AI looked at a result it didn’t. Every result says which of these is true:

What the result saysWhen
AI assistance didn’t review this resultAI assistance is off, or this result isn’t one that’s analyzed on its own
AI assistance is reviewing this resultAn analysis is running
AI assistance reviewed this result. Its suggestions are below. It didn’t change the resultThe analysis finished
AI assistance couldn’t review this result, with the reasonThe model wasn’t reachable or gave a bad answer. The result isn’t affected

Details, limits, and the model setup are in AI Assistance.

Everything here can be read before you provision anything. Setup shows the same list as a checklist in its first step, before it asks you to save or create anything.

Type says whether every customer needs the item (Required) or only some do (Conditional). Who sets it up is the person with the access to do it. How setup checks it is what Check Readiness does. Check Readiness reads your Azure resources with App Store’s managed identity, creates nothing, and runs only when an administrator selects it. Can’t be checked means App Store can’t read the answer, and the first validation is the only way to find out. That first validation creates one virtual machine.

Setup holds back Turn On Automated Validation until these read Ready: your saved Azure resources, the subscription, the region, the VM size, App Store’s access to the resource group and the subnet, outbound internet access on the subnet, the evidence container, the backstop, the resource group lock check, the image, and the Microsoft Graph permissions. It also needs you to accept the licensing and usage costs notice, and a check made after your last change to the Azure resources. Anything marked Can’t be checked doesn’t hold it back, because setup could never turn on otherwise. A permission that was granted and doesn’t show yet counts as Permissions are still taking effect, and that does hold it back. See Troubleshooting.

PrerequisiteTypeWho sets it upHow setup checks it
A subscription in the same Microsoft Entra tenant as your Intune. A validation machine joins the tenant of the subscription it’s created inRequiredAzure administratorReads each subscription’s tenant when it can list subscriptions. Can’t be checked for a pasted subscription ID with no list access: the first read fails instead
The resource providers Microsoft.Compute, Microsoft.Network, and Microsoft.Automation are registered. Microsoft.CognitiveServices too, if you use Azure OpenAIRequired, and the last one ConditionalThe setup scriptCan’t be checked by App Store, because its identity has no read access to the subscription. The script registers them and reports. A missing provider shows when the first validation creates its machine
The region offers your VM size with Trusted LaunchRequiredAzure administratorThe region has to match the subnet’s network. The size is checked against Azure’s size list when App Store can read it. Can’t be checked without the optional catalog role, and a typed size is checked when the machine is created
A VM size that’s generation 2, x64, supports Trusted Launch, and has at least 2 virtual processors, 4 GB of memory, and a 64 GB disk. The default is Standard_D2s_v5RequiredAzure administratorReads each size’s capabilities, or offers a short list that meets every rule when it can’t
vCPU quota, for the size’s family and for the region. Three validations can run at once, so plan for three times the size’s virtual processorsRequiredAzure administratorReads your usage when it can, and the script warns with your own sign-in. Capacity can’t be checked. Quota isn’t capacity, and Azure can still refuse the machine. This doesn’t hold back turning on
A subnet with outbound internet access. Validation machines get no public IP address, so the machine reaches Microsoft Entra ID and Intune through the subnet’s outbound accessRequiredNetwork administrator, or the setup scriptReads the subnet and warns when a private subnet has neither a NAT gateway nor default outbound access. Can’t be checked: a route table, a firewall, or a proxy. The first validation shows it. Restricted-outbound environments aren’t supported
A private evidence container. App Store reaches it with its managed identity and no storage keyRequiredThe setup scriptReads the container, refuses a container that allows public access, and asks for a short-lived signing key. Can’t be checked: the storage account’s network rules. The first validation shows it
The backstop is running: its last job finished less than 3 hours agoRequiredThe setup scriptReads the backstop’s recent jobs. See The Backstop
No delete lock on the validation resource groupRequiredAzure administratorReads the locks on the group and above it, and refuses a CanNotDelete or ReadOnly lock, because it would stop every cleanup
Azure Policy allows the virtual machine, the extension, and the tagsConditionalPolicy ownerCan’t be checked, always. If a policy refuses, the validation that creates the machine shows Azure’s code

The default deployment of App Store creates no virtual network, so there’s nothing to reuse. Pick an existing subnet, or let the setup script create a small network named appstore-validation-vnet in the validation resource group. Virtual networks don’t bill. A subnet in a new network has no outbound access by default, so the script turns default outbound access on for its subnet, and -NatGateway gives it a NAT gateway instead, which does bill.

PrerequisiteTypeWho sets it upHow setup checks it
Windows 11 Enterprise, single-session, x64RequiredAdministratorA Marketplace image is checked by its SKU name, and a gallery image by its OS type and architecture. Can’t be checked: the edition inside a gallery image, until the first validation
Windows 11 24H2 or laterRequiredAdministratorChecked by SKU name. Can’t be checked for a gallery image’s version until the first validation. Only 24H2 has been tested
Not Windows Server, not multi-session, not Windows 11 in S modeRequiredAdministratorA SKU name ending in -avd or -cpc, or an edition other than Enterprise, is refused. Can’t be checked inside a gallery image
A Marketplace image with a pinned version. latest isn’t acceptedConditionalAdministratorChecked against the version list when App Store can read it. Without the optional catalog role, a wrong reference fails when the machine is created
A gallery image version that’s generation 2, generalized, and has the security type TrustedLaunch or TrustedLaunchSupported, and that’s replicated to the regionConditionalImage ownerReads the image definition and checks replication to the region. A gallery in another subscription hasn’t been tested
Reader access to the gallery imageConditionalThe setup scriptReads the image
The image was generalized with Sysprep and never joined to Active Directory or Microsoft Entra ID, never enrolled in Intune, and never co-managedConditionalImage ownerCan’t be checked. The first validation records the machine’s starting state and ends if it finds a previous enrollment

Windows virtualization rights. Windows 11 on Azure needs a qualifying license. See Licensing.

Prepare your own image. Start from a Windows 11 Enterprise image and add your software. Don’t join or enroll the machine.

  1. Start from a Windows 11 Enterprise image, single-session, and not an N or LTSC edition.
  2. Make the virtual machine generation 2, with no recovery partition, no data disks, and no BitLocker.
  3. Never join the machine to Active Directory or Microsoft Entra ID, never enroll it in Intune, and never enroll it for co-management. Microsoft says to never clone a device that’s joined or enrolled, because Intune then can’t tell the copies apart.
  4. Customize the machine, and then run Sysprep with /generalize /oobe /mode:vm at the end.
  5. Keep the Azure VM Agent installed and current. It runs the extension that joins and enrolls the machine, and it comes preinstalled only on Marketplace images. Don’t block the platform address 168.63.129.16 with the machine’s firewall or a proxy, because extensions fail if you do.
  6. Capture the image to an Azure Compute Gallery image definition that’s generalized, generation 2, and Trusted Launch. A managed image doesn’t support Trusted Launch.
  7. Replicate the image version to the region where validations run.

Each validation machine gets its own computer name and its own Microsoft Entra and Intune records, so an image never needs a unique name. Don’t put the app you’re validating in the image: a validation ends Inconclusive if the app is already installed.

Which source to use.

Marketplace imageYour own gallery image
SourceAzure Marketplace, written as publisher:offer:sku:version. The lab used MicrosoftWindowsDesktop:windows-11:win11-24h2-ent:26100.9725.261024A version in an Azure Compute Gallery, written as the version’s Azure resource ID
VersionA specific version, chosen from the list in setupA specific image version
PermissionNoneReader on the image, granted by the setup script when you give it the image
Where it must beAny region that offers itReplicated to the region where validations run

An image whose source carries VM guest state, such as a capture of a Trusted Launch VM, a managed OS disk, or a snapshot, needs the Trusted Launch security type. An image from a source without guest state can use Trusted Launch Supported. Only the Trusted Launch type was tested, on an image captured from a Trusted Launch VM.

The method. App Store creates the virtual machine. The machine joins Microsoft Entra ID and enrolls in Intune by itself, with no user, through Microsoft’s AADLoginForWindows extension. See How the Machine Joins and Enrolls.

PrerequisiteTypeWho sets it upHow setup checks it
An Intune subscriptionRequiredYour organizationCan’t be checked. The first validation shows it
Automatic enrollment is on, with an MDM user scope setRequiredGlobal AdministratorCan’t be checked, always. App Store’s identity can’t read the setting. Whether it works with the scope set to Some or None is an open question
Windows MDM enrollment is allowed in your platform restrictions. Don’t block personal Windows enrollment unless you’ve confirmed it doesn’t stop this pathRequiredIntune administratorCan’t be checked, always. See the open questions
Conditional Access doesn’t block the device at enrollmentConditionalIdentity administratorCan’t be checked, always. See the open questions
Microsoft Graph application permissions, core and optional, on App Store’s managed identityRequiredPrivileged Role Administrator, onceReads the roles in the identity’s token. A new grant shows only after a stop and start of the App Service
Nothing assigned to all devices changes the resultConditionalIntune administratorLists the apps assigned to all devices, once the feature is on. Can’t be checked: scripts and policies
Who can join devices to Microsoft Entra IDConditionalIdentity administratorCan’t be checked, always. The lab value was All. Whether a limit to selected users applies to a join with no user is an open question
Device limitsConditionalIntune or identity administratorCan’t be checked, always. Neither is expected to apply: Intune’s device limit can’t be applied to Microsoft Entra joined enrollments, and a validation machine has no user for Microsoft Entra’s per-user limit

Enrollment restrictions. Microsoft says enrollment restrictions apply to user-driven enrollments, and that scenarios that aren’t user-driven get the default policy. Which policy this path gets is an open question. If you need to change anything, change the default policy.

Setup can’t read your MDM scope, enrollment restrictions, Conditional Access policies, or licenses with App Store’s managed identity, and App Store doesn’t ask for broader access to read them. Only the first validation shows whether enrollment works.

Tenant settings in the lab. These are the values the tests ran with, and what wasn’t tested.

SettingValue in the labTested with another value
MDM user scope (automatic enrollment)Enabled for the lab’s users. The exact value couldn’t be readSome and None weren’t tested
Windows platform restrictionCorporate Windows enrollment allowed. Personal enrollment not blockedA policy that blocks personal enrollment wasn’t tested
Conditional AccessA policy that requires multifactor authentication for Intune enrollment was in report-only modeAn enforced policy wasn’t tested
Who can join devices to Microsoft Entra IDAllNot tested
Intune enrollment device limit15 for all usersNot tested

You hold every license. Setup can’t check any of them and says so. See Licensing. It keeps three questions apart: whether Microsoft supports the enrollment method, which Intune license covers it, and which Windows license covers a machine no user signs in to. None of the three is fully answered.

Every validation follows the same sequence. Each stage has a time limit, and a stage that runs out of time ends the validation with a reason you can read on the page. The page names the stages Creating virtual machine, Joining and enrolling, Recording starting state, Installing, Checking detection, Uninstalling, Collecting evidence, and Cleaning up.

StageWhat happensLimit
1. RequestAn administrator starts a validation on the page or through the API, or Validate Before Publishing requests one. If this exact package already passed on the same image and App Store build inside the reuse window, App Store reuses that result and starts nothing. The queue starts a validation only while the backstop reads as working, and runs up to three at onceA queued validation waits up to 6 hours
2. Creating the virtual machineApp Store creates a network interface with no public IP address, and then a Trusted Launch virtual machine from your image. The machine has a system-assigned identity and a random local administrator password. Every resource carries three tags: the validation’s ID, an expiry time, and which App Store deployment made it45 minutes
3. Joining and enrollingThe extension joins the machine to your Microsoft Entra ID and enrolls it in Intune. In the lab this took about 5 to 11 minutes from creating the machine60 minutes
4. Recording the starting stateApp Store records what’s on the image. It refuses an image that shows a previous enrollment, and it ends the validation Inconclusive if the app is already installed. It then waits up to 15 minutes for the Managed Installer policy to arrive and restarts the Intune Management Extension60 minutes
5. Assignment and installApp Store creates a temporary group, adds only the validation machine to it, creates a temporary copy of the app, and assigns that copy as Required to the group. Nothing is assigned to a user. The machine installs the app, and App Store reads Intune’s install result. The temporary app’s install can run for up to 60 minutes, which is also Intune’s default for an app150 minutes
6. DetectionApp Store checks the app’s detection rule on the machine15 minutes
7. UninstallApp Store assigns the uninstall and checks that the app is gone120 minutes
8. Collecting evidenceThe machine compresses its logs and device state and uploads one file to your evidence container through an address that can write one file and expires in an hour30 minutes
9. Cleaning upApp Store deletes the temporary app and group, and the virtual machine and its disk and network interface, and reads each one back to check that it’s gone. Cleanup runs after a failed validation too. App Store never deletes device records, so the machine’s Intune and Microsoft Entra records stay until you delete them. See Test Device Records.60 minutes, and then it carries on in the background. See Cleanup

Run limits. Beyond each stage’s limit, a run has two limits of its own:

LimitValueWhat it does
Run limit6 hours after the virtual machine was createdThe run moves to evidence collection and ends Inconclusive, with the reason on the page. It can’t report a pass
Maximum resource lifetime8 hours after the virtual machine was created. App Store writes it as the expiry tag when it creates the machine and never extends itThe backstop deletes the machine if App Store hasn’t. A healthy App Store finishes before this

When App Store is healthy, the machine is gone by about 6.5 hours after it was created, at the latest. If App Store isn’t running at all, the backstop is meant to delete the machine, its disk, and its network interface about 9 hours after it was created: 8 hours, plus up to an hour for the next backstop job. That timing is how the backstop is built to work, and it hasn’t been shown on a real subscription. See What Was and Wasn’t Tested.

A validation never keeps a machine just because its logs are being kept. Evidence is one file in your storage, and the machine goes as soon as the upload ends or its 30 minutes do.

This is the whole method, with the values App Store sends. No user, enrollment token, provisioning package, or stored credential is involved at any step.

The order. App Store does one step at a time and reads the result of each before it starts the next.

  1. It creates the network interface and waits until Azure reports it complete. Then it creates the virtual machine.
  2. It waits until Azure reports the virtual machine as succeeded. Then it tags the machine’s OS disk, because Azure’s create request can’t tag the disk.
  3. It adds the extension only after it has read all three tags on the OS disk, or Azure has accepted App Store’s write of them. A machine whose disk isn’t tagged never gets the extension.
  4. It reads Microsoft Graph until the machine’s Microsoft Entra and Intune records appear.

What App Store sets on the virtual machine. Anything not listed here is left unset.

SettingValue
IdentityA system-assigned managed identity. The machine has no other identity
Windows license typeWindows_Client
SizeThe size you chose in setup. The default is Standard_D2s_v5, and the size must be generation 2
ImageEither a version in an Azure Compute Gallery, written as the version’s Azure resource ID, or a Marketplace image written as publisher:offer:sku:version. The version must be pinned, and setup refuses latest. The lab used MicrosoftWindowsDesktop:windows-11:win11-24h2-ent:26100.9725.261024
SecurityTrusted Launch, with Secure Boot on and a virtual TPM on
Computer namesmk, then 10 characters from the validation’s ID, then a two-digit attempt number, which makes 15 characters
Local administratorThe name appstoresmoke and a random 28-character password, new for each machine. App Store sends the password in the create request, never keeps, logs, or returns it, and never uses it again
Azure VM AgentOn. App Store sets no automatic update or patch setting
OS diskCreated from the image as a Standard SSD (StandardSSD_LRS), and deleted with the machine. No data disks
Network interfaceOne, in the subnet you chose, with no public IP address, and deleted with the machine
Tagsappstore-smoke-run (the validation’s run tag), appstore-validation-expires-utc (the expiry time, never extended), and appstore-validation-deployment (which App Store deployment made it). They go on the machine and the interface when they’re created, and on the disk afterward
Not setA public IP address, an availability set or zone, boot diagnostics, data disks, Spot pricing, additional capabilities, and a user-assigned identity

What App Store sets on the extension.

SettingValue
NameAADLoginForWindows
PublisherMicrosoft.Azure.ActiveDirectory
TypeAADLoginForWindows
Type handler version2.2, with automatic minor version upgrades on
Settings{"mdmId":"0000000a-0000-0000-c000-000000000000"}
Protected settingsNone
LocationThe virtual machine’s

Who does each step.

StepWhat happensWhich identity does it
Create the machineApp Store asks Azure to create the network interface and the virtual machine, with the settings aboveApp Store’s managed identity, through the Runner role on the validation resource group and the Network role on the subnet
Join Microsoft Entra IDApp Store adds the AADLoginForWindows extension. The extension joins the machine to your Microsoft Entra IDThe machine’s own system-assigned identity, which gets a token for Microsoft Entra device registration (urn:ms-drs:enterpriseregistration.windows.net). It’s granted no role
Enroll in IntuneThe same extension carries one setting, mdmId. App Store sets it to 0000000a-0000-0000-c000-000000000000, Microsoft Intune’s application ID. No Microsoft page says what that value does for this extension. This is what App Store sets, and what the lab saw: the machines enrolled in Intune with the extension’s enrollment typeThe machine’s own system-assigned identity. The lab tenant had automatic enrollment turned on
Find the recordsApp Store reads Microsoft Graph until both records appear, and looks each one up by the computer name. It reads the Microsoft Entra record from Microsoft Graph v1.0 and the Intune record from Microsoft Graph beta. A record counts only if its enrollment type is AzureADJoinUsingAzureVMExtension in Microsoft Entra ID or azureAdJoinUsingAzureVmExtension in Intune, compared without regard to case. If both records aren’t there within 60 minutes, the validation ends InconclusiveApp Store’s managed identity, through Microsoft Graph application permissions
Assign the appApp Store creates the temporary group, adds the device, and creates and assigns the temporary appApp Store’s managed identity, through Microsoft Graph application permissions
Install and uninstallThe Intune Management Extension on the machine installs and uninstalls the app, in the system contextIntune, on the machine
Read the machineApp Store runs fixed scripts through Azure’s Run Command to record the starting state and check detectionApp Store’s managed identity, through the Runner role. The scripts run as SYSTEM
Upload evidenceThe machine uploads one fileThe machine, with a write-only address that App Store’s identity signed. The address is valid for one hour and covers one file
Delete everythingSee CleanupApp Store’s managed identity, or the backstop’s own identity for Azure resources at expiry

What happens when a stage fails.

StageWhat App Store does
Azure refuses or fails to create the machineThe validation goes to cleanup and ends Inconclusive, with Azure’s status and code as the reason. App Store doesn’t retry a refusal that would be the same next time, such as a bad image reference, a missing role, or no quota
The extension failsThe validation goes to cleanup. Nothing was assigned
No device record appears within 60 minutesThe validation collects evidence, goes to cleanup, and ends Inconclusive. The most likely cause is a tenant setting. See Troubleshooting
App Store can’t create the group or assignmentIt tries again until the stage’s time runs out, and then ends the validation Inconclusive
The install failsThe validation ends Failed, with Intune’s error
The installer is still running after 60 minutesIntune stops it, and the validation ends Failed and says so. In our lab, Intune reported this with error 0x87D300C9. That meaning is what we observed, not something Microsoft states. Check that the install command is silent and doesn’t wait for a prompt, a dialog, or a restart. An installer that really needs longer can’t be validated
Intune never starts the installThe validation ends Blocked. It says nothing about the package
Detection doesn’t find the appThe validation ends Failed, and App Store skips the uninstall, because Intune uninstalls only what it detects
The uninstall failsThe validation ends Failed or Inconclusive
The evidence upload doesn’t finish in 30 minutesA pass becomes Inconclusive, and cleanup starts
A delete fails or can’t be confirmedThe validation keeps its result, and the cleanup shows Cleanup pending and then Cleanup failed. See Cleanup

Before a result says the installer failed or the app wasn’t detected, App Store reads the Intune Management Extension’s log on the machine. While an install is still running or a retry is coming, the validation keeps waiting. If the installer’s last exit code wasn’t a success, the validation reports it as an install failure.

Every validation machine gets its own identity. The computer name is smk, then 10 characters from the validation’s ID, then a two-digit attempt number, so it’s 15 characters and never repeats. Each machine has its own Microsoft Entra device record and its own Intune record. Microsoft Entra ID refuses to join a machine whose name already exists in the tenant, so a name that repeated would fail to join. A device record from one validation is never reused by the next.

Microsoft doesn’t document this exact method. Microsoft’s pages about Azure Virtual Desktop describe enrolling a virtual machine in Intune, but they don’t name the AADLoginForWindows extension or the mdmId setting. The Microsoft Entra page for the extension on Azure virtual machines doesn’t mention mdmId either. It appears on one Microsoft page only, the one for Arc-enabled servers, where the value can be left empty. A lab enrollment proves only that it worked. It worked for 165 machines in one test run, and that isn’t a statement that Microsoft supports it or that your licensing covers it. See Licensing and Open Questions.

One-time administrator setupAt run time
WhoAdministrators who can assign Azure roles, create the resources, and grant Microsoft Graph application permissions. One person can do all of it, or two can each run their own partApp Store’s managed identity, the machine’s own identity, and the backstop’s own identity. No administrator is involved
Sign-inThe setup script signs the administrator in to Azure, and to Microsoft Graph for the grant. In Azure Cloud Shell, the Microsoft Graph sign-in is a device code that times out after 120 secondsNone. Nothing prompts anyone, and nothing asks for consent
What gets doneRegister providers, define roles, create the evidence container, network, and backstop, grant Microsoft Graph permissions, and turn on automatic enrollment in Intune, which is a manual step outside the scriptCreate, enroll, validate, collect, and clean up
CredentialsNone are storedNone are stored. The local administrator password is random, used once, and never kept

App Store uses managed identities and nothing else to reach Azure, Microsoft Graph, storage, Key Vault, and Azure OpenAI.

PhaseWhoHowStored
One-time setupThe administrators who run the setup scriptAn interactive sign-in to Azure Cloud Shell, and to Microsoft Graph for the grantNothing
Unattended operationApp Store’s system-assigned managed identityA managed identity tokenNothing new
Validation machineThe machine’s own system-assigned identityA token for Microsoft Entra device registration, used by the extension. It has no roleNothing
BackstopThe Automation account’s own system-assigned identityA managed identity token to Azure Resource ManagerNothing
Local administratorNobodyA random password, used once at creation, then never kept, logged, or sent to a modelNothing

Not used: application or client secrets, a secret-based fallback, a new app registration, a dedicated cloud user, a stored user password, and recurring interactive sign-in. The one secret that can exist is a model provider’s key, when you use a service that uses the OpenAI API, and it stays in your Key Vault. App Store saves only the secret’s address. The managed identity can’t grant itself anything, which is why a person runs the setup script once.

Every permission here belongs to App Store’s managed identity, the identity of the App Service that runs App Store, except the two marked for the backstop and the machine. No user account, app registration, or secret is involved. A validation machine has a system-assigned identity of its own, because the Microsoft Entra sign-in extension requires one, and that identity is granted nothing.

Core means App Store already holds the permission, with or without this feature. Optional means you grant it only to use this feature. Conditional means you grant it only if you use the thing it’s for.

PermissionTypeScopeWhyCore or Optional
DeviceManagementApps.ReadWrite.AllMicrosoft Graph applicationTenantCreate, assign, and delete the temporary appCore
DeviceManagementApps.Read.AllMicrosoft Graph applicationTenantRead the app install status reportCore
Group.ReadWrite.AllMicrosoft Graph applicationTenantCreate and delete the temporary group, and add the validation machine to itCore
Device.Read.AllMicrosoft Graph applicationTenantFind the machine’s Microsoft Entra recordCore
DeviceManagementManagedDevices.Read.AllMicrosoft Graph applicationTenantFind the machine’s Intune recordCore
Runner (custom role)Azure roleThe validation resource groupCreate, restart, and delete virtual machines, extensions, disks, and network interfaces. Run fixed scripts on them. List resources by tag. Read locks and effective permissionsOptional
Network (custom role)Azure roleThe subnetRead the subnet, and connect a validation machine to itOptional
ReaderAzure roleThe virtual networkRead the network’s region and list its subnetsOptional
Evidence (custom role)Azure roleThe evidence containerRead, write, and delete evidence, including its earlier versionsOptional
Storage Blob DelegatorAzure roleThe storage accountGet the key that signs the upload address. The address can write one file and expires in an hour. The role has to be at the account or aboveOptional
ReaderAzure roleThe backstop’s Automation accountRead the backstop’s jobs, because a validation isn’t started without a working backstopOptional
Cleanup (custom role)Azure role, held by the backstop’s identityThe validation resource groupDelete expired virtual machines, disks, and network interfaces when App Store can’tOptional
ReaderAzure roleThe gallery imageRead your image, and create a machine from it. Only if you use your own imageConditional
Cognitive Services OpenAI UserAzure roleThe Azure OpenAI resourceCall the model. Only with AI assistance and Azure OpenAIConditional
Key Vault Secrets UserAzure roleThe secretRead another provider’s key. Only with a Key Vault that uses Azure role-based access control. A vault that uses access policies needs your own access policy for App Store’s identity, and the script checks itConditional
Catalog Reader (custom role)Azure roleThe subscriptionList live VM sizes, images, and quota in setup. It reads Azure’s public catalog data and no resource. Off unless you choose itOptional
NothingThe machine’s own identityNoneJoin Microsoft Entra ID and enroll in IntuneNone

The custom roles are named App Store Validation <role> <App Service name>, and each is assigned only at the scope in the table. Azure can’t limit Compute actions to tagged resources, so the Runner and Cleanup roles reach every virtual machine, disk, and network interface in the validation resource group. They hold no action on storage, Key Vault, SQL, the site, networks, or identities, so the validation can’t delete those at all. For the machines, disks, and network interfaces, App Store’s own check in front of every delete is the fence. See What Cleanup Never Touches. If your policy doesn’t allow custom roles, -UseBuiltInRoles assigns Contributor, Network Contributor, and Storage Blob Data Owner instead. Contributor reaches everything in a resource group, so the script refuses it on App Store’s own resource group.

Pending live proof: that these roles are enough with no Contributor anywhere. Microsoft doesn’t document a minimum set of actions for these operations, so the lists come from the calls App Store makes. If an action is missing, App Store reports it as a missing permission.

The Microsoft Graph application permissions apply across your tenant, because Microsoft Graph has no narrower form of them. App Store acts only on objects it created for a validation: it refuses a group or app with a validation’s name that it didn’t make, and it deletes only the objects a validation recorded that carry App Store’s mark.

Turning on the feature grants nothing. App Store already holds the Microsoft Graph permissions validation uses. The setup script, Set-PackageValidationSetup.ps1, assigns the Azure roles. Without -Apply it only shows what’s missing, and it grants no Microsoft Graph permission. An upgrade to 1.40 adds no permission by itself.

If the Identity Holds a Device Write Permission

Section titled “If the Identity Holds a Device Write Permission”

App Store’s managed identity doesn’t need DeviceManagementManagedDevices.ReadWrite.All or Device.ReadWrite.All. Version 1.39.0 never granted them. Only the package validation setup of some 1.40 previews did. If the identity holds either one, the setup script says so, and App Store’s log records a warning. Neither changes how App Store works, and App Store doesn’t remove the permission for you.

To remove both, run this in Azure Cloud Shell as a Privileged Role Administrator, with the object ID of App Store’s managed identity. It removes only those two permissions and then lists what the identity still holds. Neither should be listed.

Terminal window
Connect-MgGraph -Scopes 'AppRoleAssignment.ReadWrite.All', 'Application.Read.All'
$identityId = '<object ID of the App Store managed identity>'
$retired = 'DeviceManagementManagedDevices.ReadWrite.All', 'Device.ReadWrite.All'
$graph = Get-MgServicePrincipal -Filter "appId eq '00000003-0000-0000-c000-000000000000'"
$retiredIds = @($graph.AppRoles | Where-Object { $_.Value -in $retired } | ForEach-Object { $_.Id })
Get-MgServicePrincipalAppRoleAssignment -ServicePrincipalId $identityId -All |
Where-Object { $_.ResourceId -eq $graph.Id -and $_.AppRoleId -in $retiredIds } |
ForEach-Object { Remove-MgServicePrincipalAppRoleAssignment -ServicePrincipalId $identityId -AppRoleAssignmentId $_.Id }
Get-MgServicePrincipalAppRoleAssignment -ServicePrincipalId $identityId -All |
Where-Object { $_.ResourceId -eq $graph.Id } |
ForEach-Object { $roleId = $_.AppRoleId; ($graph.AppRoles | Where-Object { $_.Id -eq $roleId }).Value } |
Sort-Object

Then stop the App Service, wait 3 minutes, and start it, because a token issued earlier keeps the permissions until it expires.

Setup is a wizard under Automations > AI Assisted Package Validation (Preview). Open it with Set Up, or Resume Setup if you’ve started. Each step saves with Save and Continue, and the wizard reads its state from the server, so you can close the browser and come back. It opens at the first step that isn’t finished, and you can revisit any step. Setup is also linked from the main setup wizard as an optional task. It isn’t a requirement for setting up or using App Store.

Four things are kept apart, and each one is a separate action:

ActionWhat it does in Azure
Saving settingsNothing
Provisioning shared prerequisitesDone by an administrator’s script, and read back by Check Readiness. The page changes nothing itself
Turning on Automated validationNothing. No machine is created, and the worker starts its normal passes
Starting a validationCreates one virtual machine. This is the only step that bills for compute
StepWhat you doChanges in Azure
1. Prerequisites, licensing, and chargesRead the checklist in Check Whether Your Environment Qualifies, the licensing notice, and the expected charges. Accept the noticeNone
2. Azure resourcesPick the subscription, resource group, region, network and subnet, and storage. App Store suggests its own subscription, resource group, and storage account, and it fills a suggestion in only where you haven’t saved a choice. If App Store’s identity can’t list a resource, paste its IDNone
3. Permissions and administrator setupCopy the command, which contains resource IDs and nothing secret, and have an administrator run it. Select Check Readiness to read the resultThe administrator’s script. The page changes nothing
4. Image and validation settingsPick the VM size and the image, and its versionNone
5. AI assistance, optionalChoose a model. Saving it doesn’t call itNone
6. ReviewRead what will be reused, created, changed, and left alone, and why a default couldn’t be usedNone
7. Readiness and first validationSelect Check Readiness, then Turn On Automated Validation, then Start Validation, which states its estimated costStart Validation creates one virtual machine

Reuse by default. The suggestions are App Store’s subscription and resource group, its storage account with a new private container named package-validation-evidence, its managed identity, and any model settings you’ve saved. App Store never overwrites a choice you’ve saved. A pick can be a different resource group, subscription, network, storage location, or image. Where a default can’t be used, setup records why. For example, it asks for a separate resource group if the App Store group has a delete lock, and it asks for another storage account if the App Store account restricts public network access, because a validation machine uploads to the public blob endpoint.

Key Vault. App Store’s vault uses access policies, and App Store’s identity already has what it needs to read a secret. To store another provider’s key there, an administrator adds their own access policy first, because the template adds none.

A repeat creates no duplicates. Saving sends the whole state with a version token. The script reads before it writes, and names are fixed, so a repeat finds what’s there. Role definitions have an ID derived from the App Service name, and the backstop’s schedule has a fixed ID.

A partial failure shows what remains. The script prints In place, Created, Granted, or Failed for each item and exits with an error if any failed. The wizard doesn’t rely on that output: Check Readiness reads each item again and shows what’s done and what’s left.

An administrator runs Set-PackageValidationSetup.ps1 once, in Azure Cloud Shell. It needs PowerShell 7.2. Without -Apply it changes nothing and shows what it would create, reuse, or change. The wizard serves the script that matches your build.

PartWhat it doesWho can run it
Azure (-Part Azure)Registers the resource providers, defines the custom roles, creates the private evidence container, creates the network if you didn’t give a subnet, creates the backstop, assigns the roles, and starts one report-only jobOwner on the resource groups, or User Access Administrator with Contributor. Contributor on the subscription if a provider isn’t registered
Graph (-Part Graph)Reads the Microsoft Graph permissions App Store’s managed identity holds, reports any that are missing, and reports a device write permission App Store no longer needs. It grants nothingPrivileged Role Administrator
BothDoes both partsOne person with both sets of roles

Two administrators can each run their own part. Intune’s automatic enrollment is a separate manual step for a Global Administrator in the Intune admin center, and the script doesn’t do it.

This feature adds no Microsoft Graph permission: App Store already holds every one it uses. None of them lets it change or delete a device: validation reads the validation machine’s Intune and Microsoft Entra records to find it, and never deletes them.

The script first checks that the object ID you give it is the system-assigned managed identity of your App Service, and it stops if it isn’t, so an app registration’s or another identity’s object ID gets nothing. It creates no app registration, no user, no secret, and no password, and it deletes nothing.

The script grants no Microsoft Graph permission, so it never stops App Store. If Check Readiness names a Microsoft Graph permission you’ve just granted, you can wait 10 minutes, stop the App Service, wait 3 minutes, and start it, because Azure caches a managed identity’s token. That can help, but it isn’t guaranteed: in testing, the permissions still didn’t show 66 minutes after the grant, after two stops. Microsoft says a change can take up to about 24 hours to reach a managed identity’s token, and that you can’t force a refresh.

Check Readiness reads your Azure resources and App Store’s permissions. It creates nothing and doesn’t cost anything. Each item shows one of these:

StateWhat it means
ReadyThe item is in place
Needs AttentionThe item is missing or wrong, or a permission was never granted or was removed. The item says why
Permissions Still Taking EffectA permission granted recently hasn’t reached App Store yet: up to 2 hours for an Azure role, and up to 24 hours for a Microsoft Graph permission. This isn’t a failure
Not Checked YetSelect Check Readiness to read it
Can’t be checkedApp Store can’t read it. The first validation shows whether it’s right

App Store can’t see the script run. If you just ran it again, for example for a new subnet or to restore a removed role, select I ran the setup script just now before you select Check Readiness, so a permission that hasn’t arrived yet shows as still taking effect.

  1. On the Validations view, under Validate a package, choose a package. The list starts with the 25 newest packages. To reach an older one, enter its name or package ID in Find a package, and then select Find.
  2. Select Start Validation. This creates a virtual machine in your Azure subscription.

In the setup wizard’s last step, the start button also shows the validation’s estimated cost. If this exact package already passed inside the reuse window, App Store reuses that result and creates no virtual machine. If the package is already being validated, App Store doesn’t start another one. You can also start a validation through the App Store API, or from a validation’s page with Validate Again.

A validation machine is a real Intune device. Anything you assign to all devices can reach it within minutes and can change the result. Those apps, scripts, and policies are part of what a validation sees. App Store can’t exclude validation machines from them, because an Intune assignment filter belongs to one assignment and App Store doesn’t own these.

In the lab, Microsoft 365 Apps reached every machine that lasted long enough, along with its Visual C++ runtimes and OneDrive. A group exclusion lost the race at enrollment, and the app still arrived. An assignment filter on the device name worked for the lab’s own test machines, whose names start with z263 and zqa. A filter on smk, the prefix of these machines, has never run against one of them.

To see what’s affected, select List All-Devices Apps. It lists apps only, not scripts or policies, and it changes nothing. To keep an assignment off validation machines, create an Intune assignment filter with the rule (device.deviceName -startsWith "smk"), and add it to that assignment as an exclude. Microsoft documents the deviceName property and the -startsWith operator, but this rule is untested here, so check the machine’s Filter evaluation report in Intune during the first validation, while the machine still exists. Cleanup deletes the virtual machine when the validation ends. Its Intune and Microsoft Entra records stay; see Test Device Records.

A passed validation stands for the same package, image, and App Store build for the number of days in Reuse window (days), so the same validation doesn’t run twice. The default is 30 days, the longest is 365, and 0 turns off reuse.

This setting is off by default, and it needs Automated validation on. With it on, a publish or an update takes about an hour longer. In the lab a passed validation took 49 to 60 minutes once it started, and one that waited on the device’s own check for new apps took 99. It works like this:

  1. A packaging job builds and stores its package, and then stops. Nothing has gone to Intune.
  2. App Store validates that package. If this exact package already passed on the same image and App Store build inside the reuse window, App Store starts no validation and doesn’t hold the job. The job goes on to Intune at once, with no decision from an administrator, and without the Release a publishing hold authority. Setting the reuse window to 0 turns this off, so every job is held.
  3. When the validation ends, the job waits under Waiting for a Decision on the page.
When the validationWhat you can do
PassedSelect Publish, or Cancel Job. If you allowed Release a publishing hold, a pass publishes on its own, up to that authority’s limits
Is still runningSelect Publish Without a Pass, or Cancel Job
Didn’t pass, or couldn’t startSelect Publish Without a Pass, or Cancel Job. A validation that can’t start still holds the job, and the page says why
Was blocked by the test environmentSelect Publish Without a Pass, or Cancel Job. The validation says nothing about the package, and it didn’t release the job. To validate the package again, cancel the job and publish again

Publish Without a Pass asks you to confirm. A job publishes the exact file that was validated, and App Store checks its hash first. It isn’t built again. Cancel Job also stops a validation that only that job was waiting for.

When Validate Before Publishing holds a job, App Store doesn’t run the Azure read that Check Readiness does. It doesn’t read the resource group, the subnet, the evidence container, or your gallery image, and it doesn’t look at permissions. A validation you start on the page or through the API gets that read first and is refused if it finds a problem.

What still runs when a job is held:

  • Automated validation must be on.
  • The saved environment must be complete: the resource group, subnet, region, image, and evidence container.
  • App Store reads the job’s stored package. A package it can’t read, an ARM64 package, and a package that installs for each user (user context) can’t be validated. A user-context package’s job stays held with the note Not validated: user context, and you publish it only by confirming that it wasn’t validated.
  • App Store then reuses a recent pass, joins a validation that’s already open for the same package, or queues a new one. The queue starts it only while the backstop reads as working.

If one of those fails, the job is still held, and Waiting for a Decision shows a note that starts “The validation couldn’t start”. If Azure can’t be read, you find out when the validation runs: it ends with the reason, and the job stays held for your decision. Run Check Readiness before you turn on Validate Before Publishing, so a problem with the environment doesn’t hold every job.

A held job waits for as long as nobody decides, with its package in blob storage. App Store refuses a second submission of that package while it waits.

Every decision is recorded in the Audit Trail (Reports > Analytics > Audit Trail).

When a validation fails or ends Inconclusive, an AI model reads the evidence, explains the likely cause, and suggests a change to the package. AI assistance works on those results, so it does nothing until Automated validation is on too. App Store tells you this and doesn’t turn on either part for you.

Turning on AI assistance allows diagnosis and suggestions, and nothing else. The model never writes to a package, and App Store checks everything the model returns before it keeps any of it. A suggested change is for you to review, and nothing applies it. Every AI authority stays off until you turn it on in a separate step.

App Store treats installer logs and device output as untrusted. An analysis can only read what the validation recorded, through three read-only tools: the package definition, the list of evidence files, and the end of one evidence file. With the Investigate a failure authority on, an investigation can also ask App Store to run read-only checks from a fixed list on the validation machine before it’s removed. App Store chooses the machine and checks every argument. The model can’t change anything, can’t write to a package, and can’t run its own scripts. App Store takes out credentials it recognizes before anything is sent.

When an investigation finds that the install worked but the detection rule doesn’t match what the installer registered on the computer, it proposes a correction to the detection rule and prechecks it on the validation machine. The correction can use only an Add or Remove Programs entry that App Store’s own check recorded for the computer, never one in a user profile, and App Store writes the rule. If the model reports the mismatch without proposing a correction, and the investigation has run enough checks for a precheck, App Store asks it once to propose one and precheck it. That request uses the investigation’s own limits, offers no other checks, and appears under Investigation Steps as App Store asked for the correction. If the model doesn’t propose a correction, the report it already gave is kept as it was. If you stop the validation during that request, App Store keeps the report and any correction, and doesn’t test the correction on a new virtual machine by itself. You can test it with Test Correction. Only an administrator can apply a correction to the package.

An analysis is told what was packaged, including the install and uninstall commands and the detection rule, and it’s told that this is what was meant to happen and that the evidence is what did happen.

Only a validation that ends Failed or Inconclusive after you turn on AI assistance is analyzed by itself, so turning it on doesn’t send earlier results to a model. A Passed validation and a Blocked one are analyzed only if you ask. Each validation gets up to three analyses and a budget of 60,000 tokens. All model use for one validation, the analyses, the investigation, and the answers to your questions, also counts toward one limit of 30 model calls and 180,000 tokens. The validation’s details show what it has used. To ask about a validation, or to try again, add a message to it under Validations. A validation holds up to 50 messages of up to 2,000 characters each.

Each model call has a two-minute limit, and each analysis has a ten-minute limit. If the provider is down or returns a bad answer, the validation shows that AI assistance couldn’t review the result and why. Publishing, updates, and validations carry on, because analysis runs apart from them.

AI service requirements apply only when AI assistance is on. With it off, you need no model, no AI subscription, and none of the roles below.

ProviderIdentityWhere data goes
Azure OpenAI in your subscriptionApp Store’s managed identity needs the Cognitive Services OpenAI User role on the resource. No key existsTo Microsoft’s Azure OpenAI service, processed according to the deployment type. See What Leaves Your Tenant
A service that uses the OpenAI APIYou put the service’s key in Key Vault yourself, and give App Store the secret’s address. App Store’s managed identity needs read access to that secret: the Key Vault Secrets User role on a vault that uses Azure role-based access control, or an access policy on a vault that uses access policies. The key isn’t stored in App Store, and no page or API accepts or returns itTo that service, under your agreement with them

In the wizard’s AI step, or under AI Model on the page, enter the provider, then select Save Model. Select Check Model to confirm it answers. That’s a model call, so it needs AI assistance on, and it runs only when you select it.

An analysis usually makes two model calls. If you see that AI assistance couldn’t review a result because of a rate limit, raise the limit on your deployment. It costs nothing by itself: you pay per token. If the provider limits a call, App Store waits as long as the provider asks, up to a minute, and tries again, up to three times. If the limit outlasts that, the validation shows that AI assistance couldn’t review the result, and that doesn’t use up one of its three. This retry hasn’t run against a real rate limit yet.

With the Investigate a failure authority on, a failed or inconclusive validation keeps its virtual machine for a short time at the step Investigating what went wrong, so AI assistance can look into the cause. The result is final before the investigation starts, and the investigation never changes it.

  • During the investigation, AI assistance reads the evidence and can ask App Store to run read-only checks on the validation’s own virtual machine: the programs registered in Add or Remove Programs, for the computer and for every user profile, what the Intune Management Extension recorded for the test app, and a search of the Intune Management Extension logs. App Store chooses the machine and the app, and checks before every request that the validation is still investigating.
  • The investigation lasts up to its time budget, 40 minutes at most. App Store shortens it when needed so cleanup always finishes before the machine’s 8-hour limit. The machine costs money while it’s kept.
  • Each investigation has fixed limits of 16 model calls, 150,000 tokens, and 20 checks. Each validation is investigated at most once.
  • To end it early, select Stop Investigation. App Store removes the virtual machine, keeps what the investigation recorded, and doesn’t change the result. Stopping the validation, turning off either part, or turning off the authority also ends it right away.

Each of these settings allows the AI one more action. Each is off by default, works only while both parts are on, and has its own limits for one validation and its retests. Every use, and every use a limit refuses, is recorded in the Audit Trail. Select Save AI Authority to save a change.

You can allow Retest, Release a publishing hold, Investigate a failure, and Try a correction. Apply a revision and Repackage aren’t available in this preview, and App Store refuses them. You can make a suggested change yourself and then validate the package again.

SettingWhat it allowsDefault attempt limitDefault time budget
Apply a revisionApply a suggested change to the package under validation. Unavailable3180 minutes
RepackageBuild a new package from an applied revision. Unavailable3180 minutes
RetestRun the validation again when an analysis finds the failure looks temporary3180 minutes
Release a publishing holdLet a package that passed continue to Intune without waiting for an administrator1180 minutes
Investigate a failureKeep a failed or inconclusive validation’s virtual machine for up to the time budget, so AI assistance can run read-only checks on it. The result doesn’t change, and the machine costs money while it’s kept140 minutes, the most it takes
Try a correctionTest a correction to the detection rule that an investigation proposed, as a separate validation on a new virtual machine. The package doesn’t change until an administrator applies the correction. A test you start with Test Correction counts toward the same limits1, at most 31,440 minutes

The attempt limit is from 1 to 10, unless the table gives a lower maximum. The time budget is from 5 to 1,440 minutes, counted from the first use on a run. You can turn on an authority only after both parts are on, and only in a request of its own.

  1. Go to Automations > AI Assisted Package Validation (Preview).
  2. For Automated validation, finish setup, select Check Readiness, and then select Turn On Automated Validation. For AI assistance, select Turn On AI Assistance.
  3. Read what the feature needs, what it costs, what data it uses, and how it behaves.
  4. Select the confirmation, and then select Turn On.

Setup refuses to turn on Automated validation while a required check isn’t Ready, and lists what’s missing. A site that’s already on stays on, and turning off is always allowed. The Audit Trail records who turned on the feature and when.

  1. Go to Automations > AI Assisted Package Validation (Preview).
  2. Select Turn Off Automated Validation or Turn Off AI Assistance, and then select Turn Off.

Turning off needs no confirmation. Turning off either part turns off every AI authority, and turning the part back on doesn’t restore them.

WhatTurning off Automated validationTurning off AI assistance
Queued validationsCanceled at once, and the reason is recordedNot affected
Running validationsA running validation starts no new stage and goes to cleanup, then closes as CancelledNot affected. Validations carry on
Temporary resourcesCleanup deletes the temporary app and group, and the virtual machine, disk, and network interface. It leaves the machine’s Intune and Microsoft Entra records. Cleanup carries on after you turn the feature off, until every item reads as gone or you dismiss it. The dialog says how many are still being removedNothing to delete
The backstopKeeps running. It doesn’t depend on the settingNot affected
Retained evidenceStays in your blob container until its retention date, and App Store then deletes it, with the feature on or offAnalyses already on a validation stay there until their retention date
Held jobsWait for your decision. They’re never published on their own, and you can still publish or cancel them with the feature offNot affected
Other settingsValidate before publishing turns off, and turning the feature back on doesn’t restore it. Setup stays available and creates nothingNo more failed or inconclusive validations are sent to a model. A pass that starts after you turn it off sends nothing
PermissionsStay in place. See Remove the PermissionsStay in place

Automations > AI Assisted Package Validation (Preview) has two views, Validations and Settings, and each validation has its own page. Everything you see is kept by App Store, so you can close the browser while a validation, an investigation, or an answer to your question is still in progress. Nothing is lost, and the page shows the latest when you open it again.

Validations opens with a summary: how many validations are running, waiting, passed, failed, inconclusive, or blocked, how many corrections are ready for you, and how many cleanups failed. Select a count to show only those validations.

The list shows every validation, newest first, with its app, version, source (Catalog or Upload), when it ran and who started it, its status, and where it stands with AI assistance, such as Not reviewed, Investigating, or Correction ready.

  • To search, enter part of an app name, package ID, or version in Search.
  • To filter, select a Status, Source, or AI review. Select Clear Filters to show everything again.
  • To sort, select a column heading. Select it again to reverse the order.
  • To move through a long history, select Previous or Next, or change Rows per page.

To open a validation, select its app name or anywhere else in its row. The buttons in a row, such as Validate Again, Cancel, and Stop Investigation, do only what they say. Back to validations returns you to the list with the same search, filters, sort order, page, and scroll position.

A validation’s page puts its result and the next step first. The sections below them are:

  • What AI Assistance Found: the investigation’s report, with the probable cause, its confidence, the evidence it cites, and links to the checks it cites, or else the newest analysis. Your conversation with AI assistance is here too. To ask a follow-up question, enter it under Ask a follow-up question, and then select Add Message. The answer is kept with the validation.
  • Proposed Correction: what the correction changes, the result before and after it, and the detection rule now and after applying it. See Test a Correction and Apply or Reject a Correction.
  • Model Use: how many model calls and tokens the validation used, against its limits.
  • Investigation Steps: every step the investigation took, with its arguments and where its output is stored, with the output’s SHA-256.
  • Cleanup: whether every temporary resource was removed, and what to do if not.
  • Activity History: what App Store did, with the time of each event. An event that happened more than once shows a count, which you can expand to see each time.

While a validation is investigating, select Stop Investigation to end the investigation early. App Store removes the virtual machine, keeps what the investigation recorded, and doesn’t change the result. While any other validation is running, select Cancel Validation to stop it.

If a correction wasn’t tested by itself, for example because Try a correction is off, you can start its test yourself.

  1. On the validation’s page, under Proposed Correction, select Test Correction.
  2. Review what happens, and then select Test Correction.

App Store validates the corrected detection rule on a new virtual machine, the same way as any other validation. The test is a separate validation: it never reuses another validation’s result, and AI assistance doesn’t investigate or retest it. The packaging job and the original validation’s result don’t change. The test counts toward the attempt limit and time budget of Try a correction for that validation, together with any test AI assistance started. The Audit Trail records who started it.

Test Correction appears only when the precheck on the original virtual machine found the app with the corrected rule and the investigation has ended. App Store refuses the test, and says why, if a correction’s validation is already running or the limits are used up.

A correction is ready to apply only after its own validation, on a new virtual machine, passed and that validation’s cleanup completed. Until then, Apply Tested Correction isn’t available, and the page says why.

  1. On the validation’s page, under Proposed Correction, review what the correction changes and the result before and after it.
  2. Select Apply Tested Correction.
  3. Review what will change and exactly what you’re approving: the correction’s validation, the packaging job’s revision, and the correction itself.
  4. Select Apply Correction.

App Store replaces the packaging job’s detection rule with the corrected rule that passed. App Store refuses if anything about the package or the correction changed since the correction was proposed, and shows why. A package that’s already published in Intune isn’t changed. It’s updated through the normal update path. The Audit Trail records who applied the correction.

To turn down a correction, select Reject, and then select Reject again. The packaging job doesn’t change.

If the packaging job is held for validation, applying the correction also moves its hold to a validation of the corrected package. With nothing else changed, App Store reuses the correction’s passing result. The job is then released the same way as any other held job: you select Publish in the list of jobs waiting for a decision, or Release a publishing hold publishes it within its limits. A correction’s own validation never releases a hold on the package without the correction. If App Store can’t move the hold, the page says why. Select Validate the Corrected Package to try again.

For a catalog app, a validation with AI findings has a Help us improve button, so you can share the findings with PowerStacks Support. A custom upload doesn’t have it.

  1. Select Help us improve. Your email app opens a draft to support@powerstacks.com.
  2. Review the draft, and edit it as you like.
  3. Send it from your email app, or close it without sending.

The draft has the catalog package ID, the app version, your App Store version, the validation result, the AI findings, any proposed correction, and the correction’s test results. App Store leaves out logs, links to stored evidence, and anything that identifies your tenant, such as addresses and IDs. If the findings are too long for your email app’s draft, the draft has the essentials. Select Copy full findings, and then paste them into the email.

App Store never sends the email. The Audit Trail records that a draft was prepared, not that anything was sent.

Settings has the setup status and setup wizard, the two features, the AI model, AI Authority, and Licensing and Usage Costs.

App Store creates a virtual machine only when a validation is ready to use it, keeps no idle spare machines, and deletes each machine as soon as its evidence is collected. Stopping or deallocating a machine isn’t cleanup, so App Store deletes it.

For each validation, App Store records every resource it plans to create before it creates it, with the resource’s full Azure ID. That record is how cleanup finds a resource even if App Store restarted partway through a create, or you changed the saved resource group later. Cleanup removes:

  • the temporary Intune app and the temporary device group,
  • the virtual machine, which takes its disk and network interface with it, and anything left after that is deleted directly.

App Store counts a resource as removed only when it reads the resource and finds it gone. A delete that Azure accepted isn’t enough, and neither is a refusal. A validation’s cleanup is complete when all of these are gone, and evidence is removed on its retention date.

App Store never deletes an Intune device or a Microsoft Entra device, including a validation machine. When the validation’s virtual machine was created, its Cleanup section names the machine and says that App Store leaves its records:

App Store doesn’t delete device records. The Intune and Microsoft Entra records of the test device smk012345678901 stay until you delete them. An Intune device cleanup rule can hide the Intune record after the number of days you set, but it doesn’t delete it or the Microsoft Entra record.

If App Store never found the machine’s records, the page says “If the test device … enrolled” instead. A validation whose virtual machine Azure refused names no device.

These records never hold a cleanup open or make it fail, and they don’t stop you from applying a tested correction. They stay until you delete them:

  • Delete the device in the Intune admin center and in the Microsoft Entra admin center.
  • To keep the Intune list tidy in the meantime, create an Intune device cleanup rule for Windows. It hides devices that haven’t checked in for the number of days you set, from 30 to 270. It doesn’t delete them, and it doesn’t touch Microsoft Entra ID.
  • For Microsoft Entra ID, follow Manage stale devices in Microsoft Entra ID. That’s a process you run, and nothing removes the records for you.

A machine’s name starts with smk, followed by 12 characters, so you can filter for them.

Before every delete, App Store checks that the resource belongs to that validation. A virtual machine, disk, or network interface has to carry the validation’s tag and your deployment’s tag, have the name worked out from that validation, and sit in the subscription and resource group recorded for it. A disk or network interface on any virtual machine but the validation’s own is refused, tagged or not. A Microsoft Graph object has to have the derived name and carry App Store’s mark, so an app or group of yours with the same name is refused.

Cleanup never deletes the App Store resource group, storage account, network, managed identity, Key Vault, your images, or your own apps and groups. No part of App Store deletes a resource group, a storage account, a Key Vault, a network, an identity, or an image, and no role it holds has the action to. Cleanup removes evidence only inside the smoke/ folder of the evidence container, and never the container.

Cleanup is separate from the result. A validation’s result is final when its evidence is in, and cleanup carries on after that.

What the page showsWhat it meansWhat to do
Cleaning upCleanup is running, inside its 60 minutesNothing
Cleanup completeEvery temporary resource App Store created was read back as gone. The page says which it removed, for example “App Store removed the virtual machine, disk, network interface, temporary test app, and temporary test group. It kept the test device’s Intune and Microsoft Entra records by design.”Nothing. Delete the test device’s records when you no longer want them
Cleanup pendingThe validation closed, something remains, and App Store tries again every hour, with the feature on or offUsually nothing. See the list below
Cleanup failed24 hours passed, or Azure, Microsoft Graph, or App Store’s own check refused outright. App Store keeps trying every hourRead what’s wrong for each remaining resource, fix it, and App Store notices. See the list below
Cleanup dismissed by a personAn administrator confirmed by hand that nothing remains. Retries stop, and the record staysNothing

The run list shows each validation’s cleanup, and the detail lists every resource that remains: its kind, name, what’s wrong, and what to do. A banner counts the temporary resources that remain. When a cleanup is complete, the page says what App Store removed and that it kept the test device’s records by design. Activity History entries written before this version keep their original words.

What to do about a remaining resource.

What the page saysWhat it meansWhat to do
App Store’s identity can’t delete this. Check that the Runner role is still assignedAzure refused with 403Check the Runner role on the validation resource group, and the Network role on the subnet. If you removed a role, assign it again
A delete lock blocks this. Remove the lock from the scope it namesA CanNotDelete lock covers the resource or its resource groupRemove the lock, or use a separate resource group
App Store’s identity can’t read this in Microsoft Graph. Check its Graph permissionsA Graph permission is missingCheck the Core Microsoft Graph permissions in Permissions. After you grant one, stop and start the App Service
Microsoft Graph refused to delete this. App Store’s identity read it just before, so reading worksGraph refused only the delete. The page gives Graph’s error code and request ID when Graph sends themCheck that the identity still has the permission the page names. For the temporary Intune app, check whether an Intune Multi Admin Approval access policy covers the delete, and exclude App Store’s managed identity from it or delete the app in Intune. App Store tries again every hour
Microsoft Graph refused to delete this, which likely means an Intune Multi Admin Approval policy requires approval for itGraph’s code names approval, so an Intune Multi Admin Approval access policy most likely covers this deleteCheck the access policies in Intune. Exclude App Store’s managed identity from the one that covers this, or delete the app in Intune
The delete was accepted and hasn’t finishedAzure hasn’t finished the deleteWait. App Store reads it again every hour
App Store is still checking thisApp Store hasn’t read it yetWait
A refusal from App Store’s own checkThe resource doesn’t prove it belongs to the validationLeave it. Check it yourself, and delete it only if it’s yours to delete

Dismiss Cleanup is on a failed cleanup. Use it after you’ve removed what’s left by hand, or decided to leave it. It stops the retries and keeps the record.

If App Store stops, nothing inside App Store can delete a machine. The backstop is a separate Azure Automation runbook in your subscription that does. It runs every hour with its own managed identity, and it deletes only virtual machines, disks, and network interfaces that carry this deployment’s tags and whose expiry has passed. An expiry tag by itself isn’t deletion: the runbook is what deletes.

The setup script creates it in the validation resource group:

PieceDetail
Automation accountappstore-validation-cleanup-<deployment ID>, with the Basic SKU and a system-assigned identity. No app registration and no secret. The deployment ID is the value of the appstore-validation-deployment tag, so two App Stores in one subscription each get their own account. An account named appstore-validation-cleanup from an earlier setup keeps working, and the script doesn’t make a second one
RunbookRemove-ExpiredValidationResources.ps1, on a PowerShell 7.6 runtime environment, with no modules
ScheduleHourly, with a fixed ID so a repeat adds no second schedule
RoleCleanup on the validation resource group

The runbook deletes a resource only if all of these are true, checked on a fresh read of that resource:

  1. It’s a virtual machine, a disk, or a network interface in the validation resource group.
  2. Its name is the validation machine’s name, with -osdisk or -nic for the disk and interface, and the name matches the validation tag.
  3. Its deployment tag equals your App Store deployment.
  4. Its expiry tag is a valid time that has passed. A missing or unreadable time means it’s left alone.
  5. A disk isn’t attached to a machine, and a network interface isn’t on one. Machines go first.

It never deletes a resource group, and it touches no database, no Microsoft Graph object, and no secret. It tries each delete by itself, counts it only after a read shows the resource gone, and fails the job at the end if any delete failed, so a failure shows in Azure and on the page. If a read of the list fails, it deletes nothing.

The queue depends on it. App Store doesn’t start a validation if the backstop’s last successful job is more than 3 hours old or can’t be read. The validation waits in the queue with that reason, up to 6 hours, and then closes with it. App Store remembers the answer for 30 minutes.

What the backstop can’t remove. It has no Microsoft Graph access, so while App Store is stopped it can’t remove the temporary Intune app or the temporary group. They don’t bill, and App Store removes them when it starts again. Evidence is removed by retention when App Store returns. If App Store never returns, remove them yourself.

Left behindBillsWho removes it
Virtual machine, disk, network interfaceYesThe backstop, at expiry
Intune temporary app, device groupNoApp Store, when it returns
Microsoft Entra and Intune device recordsNo Azure charge, but stale records until deletedYou. App Store never deletes them. An Intune device cleanup rule can hide the Intune record, but it doesn’t delete it or the Microsoft Entra record
EvidenceA few centsRetention, when App Store returns
A disk with no tags whose machine is gone, a rare case described nextYes, about USD 9.60 a month per diskNot the backstop. App Store’s own cleanup is designed to look for it when App Store starts again, but that hasn’t been tested in a lab yet. If App Store doesn’t return, delete it yourself
Anything in a resource group the backstop wasn’t set up forDependsCheck Readiness compares the saved group with the backstop’s and asks you to run the script again

A disk with no tags. The backstop deletes only what carries App Store’s tags, because a name alone doesn’t prove that App Store created something. Azure creates a test machine’s disk as part of creating the machine, and the create request has no place for the disk’s tags. In PowerStacks lab tests, each new disk already had its machine’s tags the first time it was checked, on each of the three machines checked. Two were checked within a minute of being created, and the third about 10 minutes after. Microsoft doesn’t document this, so App Store doesn’t rely on it: App Store also tags the disk itself from the first check that finds it, whatever state the machine is in, including a machine that failed. The disk is also set to be deleted with its machine, so when the backstop deletes an expired machine, the disk goes with it.

A disk can still be left with no tags, but only if all three of these happen:

  1. Azure doesn’t give the disk its machine’s tags.
  2. App Store stops before it tags the disk.
  3. The disk outlives its machine, for example after a delete that removes the machine but not the disk.

The backstop leaves that disk alone, and it bills until it’s removed. App Store’s own cleanup is designed to look for it, by its record of the validation, when App Store starts again. PowerStacks has tested that in engineering tests only, not yet in a lab, so check for the disk yourself if a validation stopped partway. A test machine’s disk is a 127 GiB Standard SSD, billed as E10, which is about USD 9.60 a month in Central US at Azure retail prices. The disk has no tag, so to find it, look for a disk named smk followed by characters and ending in -osdisk. The lab tests didn’t produce a machine that Azure itself fails to create after its disk exists. The backstop doesn’t read a machine’s provisioning state, so it handles a failed machine the same way as any other.

Pending live proof: that the backstop deletes a validation’s machine, disk, and network interface when App Store is stopped, with nobody editing a tag or starting a job by hand, and that Azure Automation honors the filter App Store uses to read the backstop’s recent jobs. Until the lab shows this, treat the backstop as built and tested by software tests, and not as proved.

To find leftovers, look in the validation resource group for a virtual machine named smk followed by characters, a disk ending in -osdisk, and a network interface ending in -nic, with the tag appstore-smoke-run. Look in Intune and Microsoft Entra ID for a device named smk followed by characters, a group named AppStore-SmokeTest- followed by characters, and an app named AppStore Smoke Test followed by characters. If you move the validation resource group after a failed cleanup, App Store still looks where the validation ran.

PowerStacks doesn’t charge for any part of this feature. You pay your own Azure and model costs. These figures are App Store’s own estimates, so check current prices.

CostEstimate
A whole validation, virtual machine and disk includedAbout $0.10 to $0.20 for a 45-minute validation on Standard_D2s_v5. On preview .6 in the lab, on a Standard_B2s_v2 virtual machine, App Store estimated $0.12 for a passed validation of 56 minutes, $0.16 for a failed one of 40 minutes that had three analyses, and $0.07 for one canceled after 36 minutes
The cleanup backstopUp to about $1.50 a month. The hourly job uses up to 744 job minutes a month. Azure gives 500 free per subscription, shared by every Automation account in it, and charges $0.002 a minute above that. That’s up to $0.49 a month at list price, or up to $1.49 if something else in the subscription has used the free minutes. The account uses the Basic SKU, because a job in a Free account fails once the subscription’s free minutes are used up, and the backstop would stop
Model tokensOn preview .5 in the lab, 16 tests used about 130,000 tokens in all, which is cents at list prices on a low-priced model. A larger model costs more
StorageEvidence stays in your container for 90 days at normal storage prices. A validation’s network and storage use is small, and virtual networks don’t bill. A NAT gateway, if you choose one, does

Each validation shows an estimated Azure and AI cost, and the page shows a total for the last 30 days. App Store works these out from how long each virtual machine and its disk ran, which Azure bills to your subscription, and how many tokens each AI analysis used, which your AI model provider bills, at list prices. It doesn’t know your model’s price, so it uses a low-priced model’s. The estimates don’t include storage or the cleanup backstop, and they aren’t your bill. App Store doesn’t charge for validation.

You’re responsible for the licenses this feature needs. App Store doesn’t provide them and can’t check them. The notice below is shown in setup before anything is turned on or created, stays available from the feature’s page, and asks again if its text ever changes.

Licensing and usage costs

Your organization is responsible for obtaining and maintaining all licenses, subscriptions, and usage rights required to use AI Assisted Package Validation.

Depending on your configuration, these can include Windows 11 virtualization rights, Microsoft Intune licenses, including device-only licenses where they apply, Microsoft Entra ID P1 or P2, and licenses for the apps and software in your test images. If you turn on AI assistance, the AI service you configure, such as Azure OpenAI, can require a separate subscription and can incur usage charges.

Azure compute, storage, networking, and other service charges can also apply. Using this feature doesn’t provide any of these licenses or usage rights.

PowerStacks doesn’t provide licensing advice. If you’re unsure what your organization requires, ask your licensing reseller or VAR, Microsoft, and the relevant software or service providers.

An Intune device license doesn’t provide an enrollment method, doesn’t cover Windows virtualization, and doesn’t cover the apps you validate.

This page keeps three questions apart, because Microsoft answers them in different places and none of them is fully answered:

  • A. Does Microsoft support this enrollment method for this use?
  • B. Which Intune license covers a machine enrolled this way?
  • C. Which Windows license covers a virtual machine that no user signs in to?

Each part gives Microsoft’s words, the page, the date it was read, and what the page leaves unanswered. A lab enrollment proves only that it worked. It isn’t a statement that Microsoft supports the method, or that any license covers it.

PageWhat it saysWhat it leaves unanswered
Sign in to a Windows virtual machine in Azure by using Microsoft Entra ID, read November 2, 2026”Use Intune to automate and scale Microsoft Entra join with mobile device management (MDM) autoenrollment of Azure Windows VMs that are part of your virtual desktop infrastructure (VDI) deployments. MDM autoenrollment requires Microsoft Entra ID P1 licenses.” It also says to enable a system-assigned managed identity before installing the extension. Its sample extension has no settings.It never mentions mdmId. It doesn’t say that the extension enrolls in Intune, or how. It doesn’t define “VDI deployments”, and it says nothing about an unattended machine outside virtual desktops.
Microsoft Entra sign-in for Arc-enabled Windows Server, read November 2, 2026”The Microsoft Entra sign in extension for Arc-enabled Windows Server requires the mdmId property nested within settings. The value of the property can be left as an empty string.” Its sample is "settings": {"mdmId": ""}.It covers Arc-enabled Windows Server only. It doesn’t say what mdmId does, or that Microsoft Intune’s application ID is a valid value, and it has nothing for Azure virtual machines.
Microsoft Entra joined session hosts, read November 2, 2026”Selecting Microsoft Entra ID gives you the option to enroll VMs with Intune automatically”.It covers Azure Virtual Desktop host pools only. It doesn’t name the extension or mdmId.
Using Azure Virtual Desktop with Intune, read November 2, 2026”Microsoft Entra joined and enrolled in Intune by enabling Enroll the VM with Intune in the Azure portal.” And: “Intune treats Azure Virtual Desktop personal VMs the same as Windows Enterprise physical desktops.”It covers personal remote desktops in a host pool only. It doesn’t name the mechanism, and says nothing about machines outside a host pool.
Manage Windows virtual machines with Intune, read November 2, 2026”Intune supports managing virtual machines running Windows Enterprise with certain limitations.” And: “We recommend that you don’t use Intune to manage on-demand, session-host virtual machines, also known as non-persistent virtual desktop infrastructure (VDI). Each VM must be enrolled when it’s created. Also, regularly deleting VMs creates orphaned device records in Intune until they’re cleaned up.” It adds that “Out of Box Experience (OOBE) enrollment isn’t supported on non-persistent VMs that can only be accessed by using RDP”, and that Windows Autopilot self-deploying and pre-provisioning “aren’t supported because they require a physical Trusted Platform Module (TPM).”It doesn’t say which enrollment methods Microsoft supports for an Azure virtual machine. It doesn’t say whether a machine that lives under a day and is deleted after each run counts as non-persistent.
Set up automatic enrollment for Windows devices, read November 2, 2026”Automatic enrollment can be used in the following device management and provisioning scenarios:” The list is bring-your-own-device (BYOD) personal devices, bulk enrollment, Group Policy, Windows Autopilot (user driven and self-deploying), and co-management with Configuration Manager.The Azure virtual machine extension isn’t listed. The MDM user scope selects users, and this path has no user.
Windows enrollment options in Intune, read November 2, 2026The Windows options are Windows automatic enrollment, Windows Autopilot, BYOD user enrollment, and co-management. The userless row reads “Devices are user-less, like kiosk, dedicated, or shared device.” and “This enrollment method requires users to sign in with their organization account. An organization admin can sign in, and automatically enroll.”It doesn’t say whether enrollment with no sign-in at any step is supported. The virtual machine extension isn’t an option on the page.

Where this leaves A. Microsoft documents the extension for joining a machine to Microsoft Entra ID, and documents enrolling Azure Virtual Desktop machines in Intune. It doesn’t document this combination, for a machine no user signs in to, outside Azure Virtual Desktop. Until Microsoft answers, this page calls it the method App Store uses, shown to work in PowerStacks’ lab, and not documented by Microsoft for this use. See open questions 1, 10, and 12.

PageWhat it saysWhat it leaves unanswered
Microsoft Intune licensing, read November 2, 2026”An Intune license is required for any user or device that benefits directly or indirectly from the Microsoft Intune service, including access through a Microsoft API.” And: “Device licenses apply when a device is enrolled through any of the following methods:” The list is Windows Autopilot Self-Deploying mode, Apple Device Enrollment Program without user affinity or Entra Shared Device Mode, Apple School Manager without user affinity, Apple Configurator without user affinity, Android Enterprise dedicated, and using a device enrollment manager account. “When a device is enrolled by using a device license, the following Intune functions aren’t supported:” app protection policies, Conditional Access, and user-based management features.The Azure virtual machine extension isn’t on the list. The page doesn’t say the list is complete, or that device licenses apply only to those methods. It doesn’t name a license for the extension path.
Assign licenses to users, read November 2, 2026”Device licenses don’t need to be assigned to the devices. Each device that accesses and uses the online services and related software (including System Center software) must have a device license available in the Microsoft 365 tenant.” And: “If a device is used by more than one user, each device requires a device based software license or all users require a user software license.”It doesn’t say what counts as a device license for a device that has no user, or for which enrollment methods.
Step 1: Set up Microsoft Intune, read November 2, 2026 (a Learn search excerpt, not the full page)“Each user or userless device requires an Intune license to access the service.”It doesn’t say which license type.
Intune with multi-session Azure Virtual Desktop, read November 2, 2026 (a Learn search excerpt, not the full page)“The appropriate Azure Virtual Desktop and Microsoft Intune license is required if a user or device benefits directly or indirectly from the Microsoft Intune service, including access to the Microsoft Intune service through a Microsoft API.”It covers multi-session host pools only.
Sign in to a Windows virtual machine in Azure by using Microsoft Entra ID, Set up automatic enrollment for Windows devices, and Microsoft Intune licensing, read November 2, 2026The sign-in page says “MDM autoenrollment requires Microsoft Entra ID P1 licenses.” The automatic enrollment page lists “Microsoft Entra ID P1 or P2”. On co-management, the Intune licensing page says “Microsoft Entra ID P1 or P2 assigned to each user”.It doesn’t say whose Microsoft Entra ID P1 or P2 license applies when the machine has no user.

Where this leaves B. Microsoft’s list of the enrollment methods that use an Intune device license doesn’t include the extension that App Store uses. Whether a device-only license applies is open. Until Microsoft answers, read the Intune requirement as an Intune license available for each validation machine, and don’t read it as “device-only is enough”. See open questions 2 and 13.

PageWhat it saysWhat it leaves unanswered
How to deploy Windows 11 on Azure, read November 2, 2026”For customers with Windows 11 Enterprise E3/E5 per user or Azure Virtual Desktop Access per user (User Subscription Licenses or Add-on User Subscription Licenses), Multitenant Hosting Rights for Windows 11 allows you to bring your Windows 11 Licenses to the cloud and run Windows 11 Virtual Machines on Azure without paying for another license.” And: “Users must have one of the below subscription licenses in order to use Windows 11 images in Azure for any production workload.” The list is Microsoft 365 E3, E5, A3, A5, F3, Business Premium, and Student Use Benefit; Windows Enterprise E3 and E5; Windows VDA E3 and E5; and Windows Education A3 and A5. Its sample sets "licenseType": "Windows_Client".Everything is per user. It says nothing about a machine no user accesses. It doesn’t define “production workload”, and it doesn’t say what Windows_Client asserts for each machine.
Use Windows client in Azure for dev/test scenarios, read November 2, 2026”You can use Windows 10 Enterprise (x64) or Windows 11 Enterprise (x64) in Azure for dev/test scenarios provided you have an appropriate Visual Studio (formerly MSDN) subscription.” And: “Active Visual Studio subscribers (people who have acquired a Visual Studio subscription license) can use Windows client images for development and testing purposes.”It ties dev/test to subscribers. It doesn’t say whether automated validation of a customer’s package before it reaches users is dev/test or production.
Microsoft Product Terms, Windows Desktop Operating System, read November 3, 2026 directly from the live page, which shows no effective dateUnder “Windows 11 Virtualization on Azure”: “Customers with Windows 11 Enterprise Per User SLs, Windows 11 Education Per User SLs, or VDA Per User SLs using Microsoft Entra ID-based activation on supported editions may install the Windows 10 Creators Update or later version software on a virtual machine running in Customer’s Microsoft Azure accounts. Each Licensed User may access up to four instances of the software.” And: “When configuring the image(s) on Microsoft Azure, Customers must indicate their use of the multitenant hosting for Windows”. The section “does not apply to Students receiving access to software through Student Use Benefit”. Under “Azure Virtual Desktop for Development and Test”: “Users licensed with Visual Studio subscriptions and MSDN Platforms with active SA” … “may access Azure Virtual Desktop Windows, and Windows Server virtual machines running in Customer’s Microsoft Azure accounts for development and test purposes.”It has no rule for an unattended machine. It doesn’t say how the four-instance limit counts when up to three validations run at once, or whether licenseType Windows_Client is the “indicate their use” step. It doesn’t say what “Microsoft Entra ID-based activation” means for a machine nobody signs in to. The Learn page above lists Student Use Benefit as an entitlement, and this page excludes it from the section. A separate section says Azure Virtual Desktop machines don’t count against a user’s device activation limit, and these machines aren’t Azure Virtual Desktop machines.
Windows licensing overview, read November 2, 2026 (a Learn search excerpt, not the full page)Windows 11 Enterprise E3 and E5 are “available per-user”. The page says it doesn’t replace or override the Product Terms.It states the entitlement per user again, and says nothing about a machine no user accesses.

Where this leaves C. Microsoft states the Windows 11 entitlement per user. How Multitenant Hosting Rights apply to a machine that only automation uses, and whether a validation counts as production or as dev/test, are open. This page states the license as your responsibility, and an Intune license doesn’t provide it. App Store sets the license type Windows_Client on every machine, which states that you hold a qualifying license. See open questions 3 and 11.

ProductStatementSetup checks it
Microsoft Entra IDAutomatic MDM enrollment needs Microsoft Entra ID P1 or P2 and an Intune subscription. Whose license applies to a machine with no user is open question 13No
ApplicationsYou need a license for each app you validate and for everything in your image. The validation machine is another install of each appNo
AzureCompute, disks, storage, Automation, and a NAT gateway if you use one. No license comes with the featureNo
AI serviceA subscription and usage charges for the model you configure, only if AI assistance is onNo

PowerStacks doesn’t give licensing advice. Ask your licensing reseller or VAR, and Microsoft.

Each is a question to put to Microsoft or to test in a lab. Until one is answered, App Store works as the last column says. The numbers stay fixed, so a number means the same question wherever this page refers to it.

#The questionWhy it’s openWho can answerUntil it’s answered
1Is AADLoginForWindows with the mdmId setting set to Microsoft Intune’s application ID, on a virtual machine outside an Azure Virtual Desktop host pool, a supported way to join Microsoft Entra ID and enroll in Intune? If not, what’s the supported value or method?Microsoft’s sign-in page mentions autoenrollment for virtual desktop deployments, and its sample has no mdmId. The Virtual Desktop pages don’t name the extension or mdmId. mdmId appears on one page, for Arc-enabled servers, with an empty value. The automatic enrollment page’s list of scenarios doesn’t name this path. It worked for 165 machines in one lab run, and that isn’t a support statementMicrosoftThis page calls it the method App Store uses, shown to work in PowerStacks’ lab, and not documented by Microsoft for this use
10Is this enrollment supported when no user signs in at any step and the device stays userless?Microsoft’s Windows enrollment guide describes the userless method as one where users sign in with their organization account, and an administrator can sign in to enroll. No page says enrollment with no sign-in is supported. The extension isn’t an option on that pageMicrosoftDocumented as unverified
12Is Intune management supported for a machine that exists for under a day and is deleted after each run, given Microsoft’s recommendation against Intune for non-persistent virtual desktop infrastructure?The recommendation is written for on-demand session hosts. Microsoft doesn’t say where a machine that lives for hours and is deleted by design falls. App Store deletes each virtual machine as part of cleanup and leaves its Intune and Microsoft Entra records until you delete themMicrosoftDocumented as unverified
#The questionWhy it’s openWho can answerUntil it’s answered
2For a Windows 11 Enterprise Azure virtual machine enrolled by that extension with no user, does an Intune device-only license apply? If not, which license does the machine need?Microsoft’s list of the methods that use a device license doesn’t include this one, and the page doesn’t say the list is completeMicrosoft licensing”An Intune license available for each validation machine”, and this question. Never “device-only is enough”
13Which Microsoft Entra ID P1 or P2 license applies to MDM automatic enrollment through this extension when the machine has no user?The sign-in page says MDM autoenrollment needs Microsoft Entra ID P1, and the automatic enrollment page says P1 or P2. The Intune licensing page, on co-management, says the license is assigned to each user. This machine has no userMicrosoft licensingStated as your responsibility, with this question
#The questionWhy it’s openWho can answerUntil it’s answered
3Do Multitenant Hosting Rights cover a Windows 11 virtual machine used only by automation, with no licensed user? Is a validation a production workload, or dev/test? Is setting the license type Windows_Client the correct declaration?Microsoft says users must hold a qualifying license for production workloads, and ties dev/test to Visual Studio subscribers and listed offers. The Product Terms say customers must indicate their use of multitenant hosting when they configure the image. No page addresses a machine no user touchesMicrosoft licensingStated as your responsibility, with this question
11When up to three validation machines run at once, does each count against a named licensed user’s “up to four instances” under the Product Terms? If so, which user?The Product Terms limit each licensed user to four instances. Nothing says how a machine that no user accesses countsMicrosoft licensingStated as your responsibility, with this question
#The questionWhy it’s openWho can answerUntil it’s answered
4Does blocking personal Windows enrollment stop this path?With personal devices blocked, Microsoft marks automatic MDM enrollment with a Microsoft Entra join as corporate and blocks it unless the device is registered with Windows Autopilot. This path isn’t listed either wayA lab testDocumented as unverified
5Does enrollment work with MDM user scope set to Some or None, or with device join limited to selected users?Both settings select users, and this path has no userA lab test, with care, because other work uses the tenantDocumented as unverified
6Does an enforced Conditional Access policy on Intune enrollment block this path?Not tested. The lab’s policy was in report-only modeA lab testDocumented as unverified
7Which enrollment restrictions does this path get: the default policy, or targeted ones?Microsoft lists Azure Virtual Desktop and Windows 365 as default-policy cases, and doesn’t list this pathA lab test, or MicrosoftIf you need to change anything, change the default policy
8Does the extension support Windows 11 before 24H2?Microsoft’s sign-in page lists 24H2 or later in its requirements, and its exit code text says Windows 10 1809 or laterMicrosoftThe supported baseline is 24H2 or later
9Does a device with no primary user stay healthy for a whole run under a compliance policy?Not tested as a questionA lab testRecorded

All compute and data stay in your tenant, except what your own model endpoint receives, and only when AI assistance is on. Nothing goes to PowerStacks unless you send it yourself: Help us improve opens a draft in your own email app, and App Store never sends it. See Help Us Improve.

DataWhere it goesKept for
Validation virtual machines and evidence, such as installer logs and device statusYour Azure subscriptionEvidence stays for 90 days, and App Store then deletes it. Virtual machines are deleted when the validation ends
Validation records, your messages on a validation, and AI analysesApp Store’s database in your subscriptionSee Retention and Deletion
Package definition, validation results, evidence extracts, and your messages on a validation, with Azure OpenAIMicrosoft’s Azure OpenAI service. Where it’s processed depends on the deployment type, as described belowNot stored in the model. See the abuse monitoring note below
Package definition, validation results, evidence extracts, and your messages on a validation, with a direct providerThat provider, under your agreement with themYour agreement with that provider sets this

With Azure OpenAI, the deployment type decides where prompts and responses are processed:

Deployment typeProcessed in
StandardYour resource’s geography
Data ZoneAny geography in the data zone, as Microsoft defines it. For a resource in the United States, anywhere in the United States. For a resource in the European Union, any European Union member nation
GlobalAny geography where the model is deployed

The deployment type affects where data is processed, not where it’s stored at rest, which stays in your resource’s geography.

Microsoft states that prompts and completions aren’t stored in the model and aren’t used to train it. Microsoft can store prompts and completions in an abuse monitoring data store for human review. That store is in your resource’s geography, and these Microsoft pages give no retention period for it. For customers approved for modified abuse monitoring, Microsoft states that the data storage and human review aren’t performed, although automated review may still run.

Validation data stays in your own database and storage. App Store applies a separate retention period to each kind of record.

DataHow long it’s keptHow it’s deleted
Evidence90 days after the validation endsApp Store deletes the file and any earlier versions of it, with the feature on or off. If your storage account has soft delete on, a deleted file stays recoverable for that account’s retention period. App Store’s own account keeps deleted files for 30 days
AI analysis90 daysApp Store deletes the analysis and the analysis messages. The validation’s record stays, because an analysis can quote evidence
A validation’s record and your messages on it365 days after it closesApp Store deletes the record, with its attempts, messages, and cleanup records
What a model provider storedSee the table and the abuse monitoring note aboveApp Store can’t delete what a provider has stored

A validation with a temporary resource still to remove is kept, whatever its age, until that’s resolved or dismissed, because its record can be the only list of what’s still there. So is a validation whose evidence is still stored, and one that a held job still points at.

A change to a retention period applies to what closes next for evidence, and is read at each pass for analysis and records. App Store doesn’t offer a page to change these periods in this preview. The 90, 365, and 90 days are the defaults. Deleting the evidence by hand is also fine: App Store notices it’s gone. A quoted line in an analysis stays with the validation’s record until the analysis expires.

With the feature off, a pass on the retention date does retention and nothing else. It starts no validation and makes no Azure, Microsoft Graph, or model call beyond the storage and database work retention needs.

What you seeWhat it meansWhat to do
Permissions are still taking effectA permission was granted and App Store’s token doesn’t show it yet. This isn’t a failure. For a Microsoft Graph permission, the identity’s token is cachedMicrosoft says a new permission can take up to 24 hours to reach a managed identity’s token. Select Check Readiness again later. You can also stop the App Service, wait 3 minutes, and start it. That can help, but it isn’t guaranteed. Restarting isn’t enough, and running the script again won’t help. If the script hasn’t run, run it first. For an Azure role, Microsoft says a new role assignment can take up to 10 minutes to take effect. In testing, one grant to App Store’s managed identity took effect somewhere between 15 and 87 minutes after it was made, so select Check Readiness again later. If it’s still there 2 hours after the script ran, run the script again. This holds back turning on until it clears
Turning on is refused, with a listA required check isn’t Ready, you haven’t accepted the licensing notice, or the Azure resources changed after the last checkFix what the list names, and then select Check Readiness
Needs attention on the backstopThe backstop isn’t set up, hasn’t finished a job in 3 hours, or App Store can’t read its jobsRun the setup script. If you just ran it, wait for the next hourly job. Check the schedule in the Azure portal
This validation didn’t start, because App Store can’t confirm that the backstop is workingThe queue won’t start a machine without a working backstopFix the backstop. The validation waits up to 6 hours, and then closes with this reason
The evidence container allows public accessThe container isn’t private, and evidence can hold details of your devicesTurn off public access on the container
A lock on this resource group would stop every cleanupA CanNotDelete or ReadOnly lock covers the groupRemove the lock, or use a separate resource group
App Store can’t list these. Paste the IDApp Store’s identity can’t read that list, which is a normal answer. App Store doesn’t ask for broad access to fill a listPaste the resource’s ID, or the value, into the box
Azure refused the test VM, with a status and codeA quota, policy, provider, image, or role problem that would be the same next timeUse the code to find the cause: quota is under Usage + quotas on the subscription. A missing provider is registered with the setup script. An Azure Policy refusal names the policy
A validation ends Inconclusive and never enrolledNo Microsoft Entra or Intune record appeared in 60 minutesCheck automatic enrollment and the MDM user scope, platform restrictions, Conditional Access, and who can join devices, in that order. These can’t be read by App Store. See Open Questions
The image shows a prior enrollmentThe image was joined or enrolled before it was capturedRebuild the image from a clean Windows 11 Enterprise image, as described in Windows, and capture it again
Blocked by the test environmentIntune never started the install, even after App Store restarted the Intune Management Extension. This says nothing about the packageValidate again. A policy that delivers Managed Installer can take up to 30 minutes to reach a device
An app you didn’t expect is on a validation machineSomething assigned to all devices reached itSee What Reaches a Validation Machine
Cleanup pending or Cleanup failedSomething temporary remainsSee Cleanup States
AI assistance didn’t review this resultAI assistance is off, or the result isn’t analyzed on its ownTurn it on, or add a message to the validation to ask

Turning off a feature leaves the permissions you granted in place. Remove only the permissions marked Optional in Permissions, because App Store needs the Core ones anyway.

To remove an Azure role, use the role and scope in that table. For a custom role, the role name is the one in Permissions:

Terminal window
Remove-AzRoleAssignment -ObjectId <object ID of the holder> -RoleDefinitionName '<role>' -Scope <scope>

Then stop the App Service and start it again, because a token issued earlier keeps the permission until it expires. An inherited role can’t be removed at the lower scope. The role assignment output names the scope it came from. Removing the roles doesn’t remove the backstop, the evidence container, or the network. Remove the Cleanup role last, and only after nothing is left in the validation resource group, because without it nothing can delete an expired machine.

Nothing in this version of the feature has been verified on a real subscription yet. It’s implemented and tested with software tests, and the lab proof is still to come. This section says what has run on real devices, in earlier builds of the validation flow, and what’s waiting.

Pending live proof. These are built and tested by software tests, and none has run live:

  • The setup wizard, and the setup script’s creation of the evidence container, the network, and the backstop.
  • The custom roles being enough for every operation with no Contributor anywhere.
  • The backstop deleting a validation’s virtual machine, disk, and network interface when App Store is stopped, and the filter App Store uses to read its recent jobs.
  • Cleanup against real Azure and Microsoft Graph: the ledger, the check in front of every delete, a refusal from a role or a lock, and the states Cleanup pending, Cleanup failed, and dismissed.
  • Cleanup carrying on after the feature is turned off, and after a restart during creation.
  • Retention, including deleting earlier versions of an evidence file, and retention while the feature is off.
  • AI investigation, corrections, Test Correction, and Apply Tested Correction.
  • That a validation on a customer’s existing App Store subscription, resource group, and storage account leaves those resources intact.

Software tests aren’t proof of automatic deletion. A simulated cleanup, and an expiry tag by itself, don’t show it.

Tested on real devices in earlier builds of the validation flow (builds 1.40.0-preview.5 and 1.40.0-preview.6, in one PowerStacks test tenant):

  • A full validation from a Marketplace image and from a gallery image: Windows 11 Enterprise 24H2 on a Standard_B2s_v2 virtual machine, created, joined, and enrolled with no user, given a device-targeted Required assignment through a device-only group, installed, detected, uninstalled, and cleaned up with read-back. The gallery image was built from the same Windows 11 Enterprise image, with a Visual C++ runtime and a marker added, never joined or enrolled, generalized with Sysprep, and captured to a Trusted Launch image definition replicated to one region.
  • Real apps: Clink and gsudo on both images, and Avogadro on the Marketplace image.
  • Failure paths: an app that installs but isn’t detected, an uninstall that fails, a package the machine refuses, a size with no quota, a cancel during a run, a same-named group that App Store didn’t create (refused), and turning the feature off during a run.
  • Validate Before Publishing: a job held, a failure that holds, a refused unconfirmed publish, Cancel Job, Publish, and Publish Without a Pass with the feature off.
  • AI assistance with Azure OpenAI through the managed identity: Check Model, an analysis that read the real commands and detection rule, citations that were real, a provider limit that left the validation unaffected, and Retest granted, used, and refused at its limit.
  • The earlier setup script: the grant, the wait and restart, and the refusal of two identities that weren’t the App Service’s managed identity.
  • A fresh installation with both parts off, which made no validation or model call.

Not tested on a real device:

  • The Blocked result. The wait and restart before the assignment ran on two machines, and no device stalled. The stall check, its one restart, the 30-minute grace, and the result are tested by software tests only.
  • The retry after a model rate limit.
  • The Release a publishing hold authority. It stayed off in every lab run.
  • An assignment filter on the smk device name.
  • Apply a revision and Repackage, which are unavailable.
  • Reuse of a passed result, and an image that shows a previous enrollment.
  • A provider that uses the OpenAI API with a key in Key Vault.
  • A tenant that doesn’t use Managed Installer, which waits 15 minutes on every validation by design.
  • Windows 10, other Windows 11 builds, multi-session, generation 1, a virtual machine without Trusted Launch, a recovery partition, data disks, N or LTSC editions, a gallery in another subscription, an image that was enrolled before capture, and an image with security agents, policies, a proxy, or a domain history.
  • MDM user scope set to Some or None, an enforced Conditional Access policy on Intune enrollment, and a policy that blocks personal enrollment.
  • Whether Microsoft supports this enrollment method for this use, which Intune license covers a machine enrolled this way, and which Windows license covers a machine no user signs in to. The method worked for 165 machines in one test run, and a lab enrollment proves only that it worked. It isn’t a support or licensing statement.