Creating Multiple Deployment Type for an Application

%3CLINGO-SUB%20id%3D%22lingo-sub-1417418%22%20slang%3D%22en-US%22%3ECreating%20Multiple%20Deployment%20Type%20for%20an%20Application%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1417418%22%20slang%3D%22en-US%22%3E%3CP%3ESuppose%20I%20have%20to%20create%20an%20Application%20with%20multiple%20configurations.%3C%2FP%3E%3CP%3EUAT%20Configuration%20-%20Application%20will%20be%20pointing%20to%20UAT%20Server.%3C%2FP%3E%3CP%3EPROD%20Configuration%20-%20Application%20will%20be%20pointing%20to%20PROD%20Server.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20that%20I%20created%20the%20Application%20with%20two%20Deployment%20Types%2C%3C%2FP%3E%3CP%3EDeployment%20Type%26nbsp%3B1%20-%20Pointing%20to%20UAT%20configuration.%3C%2FP%3E%3CP%3EDeployment%20Type%202%20-%20Pointing%20to%20PROD%20Configuration.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20do%20I%20make%20the%20Deployment%20type%20understand%20whether%20the%20user%2Fmachine%20needs%20UAT%20or%20PROD%20configuration.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20PROD%20and%20UAT%20servers%20are%20related%20to%20the%20software%20level%20and%20we%20cannot%20identify%20it%20using%20the%20machine%20settings.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1417418%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECM%202012%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1420771%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20Multiple%20Deployment%20Type%20for%20an%20Application%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1420771%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F658936%22%20target%3D%22_blank%22%3E%40arjun_padanakandy89%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20Deployment%20Types%20are%20chosen%20based%20on%20the%20Requirements%20in%20the%20Application%20Deployments%20Types.%3CBR%20%2F%3EYou'd%20have%20to%20create%20a%20global%20condition%20to%20check%20for%20something%20on%20the%20machine%20to%20know%20if%20it%20is%20for%20UAT%20or%20Prod.%3CBR%20%2F%3EExample%2C%20if%20you%20have%20a%20registry%20setting%20on%20all%20UAT%20machines%2C%20you%20could%20use%20that%20as%20your%20condition%20to%20run%20AppDT%20UAT.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fconfigmgr%2Fapps%2Fdeploy-use%2Fcreate-applications%23bkmk_dt-require%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fconfigmgr%2Fapps%2Fdeploy-use%2Fcreate-applications%23bkmk_dt-require%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1421513%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20Multiple%20Deployment%20Type%20for%20an%20Application%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1421513%22%20slang%3D%22en-US%22%3EActually%2C%20UAT%20and%20PROD%20and%20related%20to%20the%20product%20and%20not%20the%20machine.%20Let%20us%20suppose%20I%20want%20the%20UAT%20configuration%20of%20the%20product%20installed%20on%20my%20machine%2C%20there%20is%20no%20setting%20present%20to%20identify%20if%20my%20machine%20is%20UAT%20or%20PROD.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1424044%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20Multiple%20Deployment%20Type%20for%20an%20Application%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1424044%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F658936%22%20target%3D%22_blank%22%3E%40arjun_padanakandy89%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20there%20is%20nothing%20on%20the%20machine%20to%20identify%20a%20difference%20between%20UAT%20%26amp%3B%20Prod%2C%20then%20you'd%20have%20to%20have%20two%20different%20applications%20and%20make%20both%20available%20and%20the%20end%20user%20would%20have%20to%20pick%20which%20one.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EI'd%20suggest%20that%20in%20your%20install%20of%20the%20software%2C%20that%20you%20write%20a%20custom%20registry%20key%20that%20says%20SoftwareApp%20%3D%20UAT%20or%20SoftwareApp%20%3D%20Prod%2C%20so%20at%20least%20future%20updates%20you%20could%20use%20your%20custom%20registry%20key%20as%20a%20requirement%20to%20push%20out%20the%20application%20and%20it%20would%20know%20to%20apply%20UAT%20or%20Prod%20based%20on%20that.%3CBR%20%2F%3ESomehow%20you%20need%20to%20create%20something%20to%20tell%20the%20machines%20apart%20that%20needs%20Software%20App%20UAT%20and%20Software%20App%20Prod.%26nbsp%3B%20once%20you%20have%20that%2C%20then%20you%20can%20use%20AppDTs%20in%20the%20Same%20Application.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Suppose I have to create an Application with multiple configurations.

UAT Configuration - Application will be pointing to UAT Server.

PROD Configuration - Application will be pointing to PROD Server.

 

Now that I created the Application with two Deployment Types,

Deployment Type 1 - Pointing to UAT configuration.

Deployment Type 2 - Pointing to PROD Configuration.

 

How do I make the Deployment type understand whether the user/machine needs UAT or PROD configuration.

 

The PROD and UAT servers are related to the software level and we cannot identify it using the machine settings.

3 Replies
Highlighted

@arjun_padanakandy89 

The Deployment Types are chosen based on the Requirements in the Application Deployments Types.
You'd have to create a global condition to check for something on the machine to know if it is for UAT or Prod.
Example, if you have a registry setting on all UAT machines, you could use that as your condition to run AppDT UAT.

https://docs.microsoft.com/en-us/mem/configmgr/apps/deploy-use/create-applications#bkmk_dt-require

 

Highlighted
Actually, UAT and PROD and related to the product and not the machine. Let us suppose I want the UAT configuration of the product installed on my machine, there is no setting present to identify if my machine is UAT or PROD.
Highlighted

@arjun_padanakandy89 

If there is nothing on the machine to identify a difference between UAT & Prod, then you'd have to have two different applications and make both available and the end user would have to pick which one.


I'd suggest that in your install of the software, that you write a custom registry key that says SoftwareApp = UAT or SoftwareApp = Prod, so at least future updates you could use your custom registry key as a requirement to push out the application and it would know to apply UAT or Prod based on that.
Somehow you need to create something to tell the machines apart that needs Software App UAT and Software App Prod.  once you have that, then you can use AppDTs in the Same Application.