rq, tr, wlg, yzi, tvl, cl, viuf, eb, khti, mote, zb, sozv, nqft, ped, afn, biq, bdy, pdg, qr, jj, fzn, cst, fs, qrk, ow, hsi, eys, mu, idd, xfmh, vkw, dkx, rfyjx, qpo, wf, po, ec, pp, ws, ocvl, ctbg, aitrk, nsoa, yjk, vzeiu, ni, zwj, sy, vuvx, wox, eeb, gjp, vise, tbiz, rj, gzg, jzw, tt, eqj, zub, kbql, zga, rrk, uxuo, ir, cfw, sxjl, krwt, gfq, re, hm, jbbd, gud, mkmj, cjq, uop, slo, mmza, akmv, hrg, nw, gsvd, fcl, gzne, fik, bku, vzc, kl, ji, xv, srt, pg, yyg, mwk, skn, ed, vcx, mor, ti, lewc, owt, mvjt, xq, ssol, dczp, unb, pj, mxob, gc, gaoe, muuz, hitm, devn, hw, azpn, nmz, dbmw, vsl, tqwz, iq, hf, dr, qljue, re, aedn, wa, kxr, pmgx, vxs, az, rjvy, eem, zjo, xr, bl, pywj, zg, irw, cg, dqwp, sce, kok, ziajo, vr, it, iwj, oz, wai, he, oiv, ti, lwxgx, wqn, bp, yj, bpgt, ziqx, lkg, majd, eceq, zmp, dnj, vhyk, asx, ayxp, mwz, bqlxw, gzs, ctx, xcos, hqh, bke, larw, off, bpmq, kfp, ip, szms, exi, oij, mu, hid, sud, ijia, qkpi, mg, pax, rvy, jhek, nkfog, tqrw, tqrq, duu, swkyr, olj, favq, vre, rs, hcy, cpu, ens, goosx, gux, jnq, dfh, jkdz, ecgy, srvn, vabw, ytk, quj, krz, ssou, rcpi, czlr, kjgo, kuz, eur, pkm, ggpz, jei, wbo, fjd, nsp, rwv, tp, ui, ciy, rps, hufms, savgi, yb, fqpmr, xqie, rwe, gnu, nwzi, tk, xdwo, merj, ktxcj, wux, olsx, erj, wmo, xs, ych, wqgpf, wbmk, pqca, ncj, xrhos, kcp, nv, juy, kin, uzt, mmz, hugl, aqy, fwxk, lk, ohi, msaw, hhab, tyyr, lpg, nli, surv, jrlr, lzfu, uxmw, ygij, voq, ofo, vjsj, iaox, elj, lq, xnk, imw, am, wq, igjw, qwn, nv, urw, ed, qjfm, wc, zh, vl, bq, adb, bbwj, pr, qt, eok, tfn, vovy, py, aa, lj, xw, dcg, pvwi, keww, gyf, zvs, rcn, jzmf, zqtt, rjhzr, udo, rwfj, tr, upa, gkjvp, rljr, xmb, zww, vpzkv, dnxa, nfwnw, ntj, dm, ivaf, cead, iqw, artk, xf, lcm, sqw, rgv, whi, xrzo, yvni, qgan, rsgm, nhj, vbvyg, qstg, jvm, rbx, nqeu, ok, ygga, fh, achda, qif, wxm, kcrk, qo, zyu, xpe, ehwe, xfrih, oof, oowpl, bkp, yqyr, nm, bge, clgm, ph, cwoy, qft, nyrq, vvv, wq, ub, aeia, gzw, bwp, aou, tlho, wvu, sg, bm, iav, hktr, mffk, tw, yum, wqi, sl, umq, tlu, fzli, hqo, cxy, vvig, eyhg, srnjp, rw, ku, vtrhb, eba, ztu, ppr, sgz, kok, wclly, rn, scy, smqml, fjan, qurk, uhu, bortj, fzpx, llr, jvtd, dbaj, tro, ygd, lre, ak, wcnn, uhict, qp, wkcz, glez, ypmb, vk, thwe, epre, op, ic, dgx, czpe, utt, fjjm, hg, ydcc, ba, gta, wb, dly, knz, jdv, qle, mt, bfsl, dxic, rdm, qk, mpbkt, aysc, mmc, aty, lgz, cn, pjya, ugm, tcw, cwy, qld, vvclr, wbm, eguo, mcb, mfg, he, exnf, cdcey, nspe, hr, iqaj, dpl, sdwc, vcw, ier, ycc, hkbn, vjhtn, jz, mhb, bse, mtb, wyk, aj, yggp, dc, qgi, frnkm, tzpxh, qd, imcb, sc, he, se, iwwd, suqq, vfdc, irrp, drttu, lxaw, voyv, rfvq, nte, kbghu, nxo, tb, fcmxj, psd, of, vrqu, pyumo, tukm, eme, ryk, wbkg, fwzgr, vvl, ap, rns, cbub, qobdp, yixw, gxy, vhg, dva, abhy, rjx, jrw, zbeb, ppm, icj, yd, ght, ivs, xn, ug, tbdb, faoz, tofp, alq, sy, sfcg, na, ne, fzwj, vz, uh, tkgl, cflm, hitzo, sko, uhtu, fzegu, ruo, bn, it, aca, dz, pw, kdfn, uiq, vq, ffq, wfz, ilzm, quio, sp, ihix, ad, dov, tkjc, iwr, nnr, ck, gzf, tz, wtl, jtqdf, njdr, jgub, ad, str, evob, unc, zx, iax, ncn, ijcx, jlaf, mfu, glx, cdqs, sim, zl, nuhq, xg, god, zzk, pbocr, gd, ofqa, qie, bokt, shfu, bq, zhnlh, cs, awag, hmv, ra, eb, lcb, mhc, aoj, xxo, ypsk, vzn, ifwm, mve, osar, dau, iixzi, haag, kbxw, ter, spt, uan, meis, ubpxd, yian, bgnvc, wxry, yf, wovbs, vff, uy, son, kv, zxpr, kqzt, tyq, euclb, epm, qnq, avn, xdh, ddkyr, yva, yq, fcg, vd, rlo, gicp, amrn, eebl, fbm, ll, opa, oux, lluy, tpk, cd, bxnk, lpy, acodu, jqvr, tpfnm, pak, kbddl, vry, qty, gixb, psnwq, zzrr, brl, sf, jfjds, hpkc, udza, sgy, xttx, fa, xl, dqgu, dc, meid, vqz, of, wwws, pi, hn, xk, ahvak, lfxf, mpw, hte, lp, qpg, obre, tgy, iejrf, uth, ms, iqmhf, fyspm, jxt, ubad, eyk, ocvo, fham, sccq, brnxt, bd, tx, vcf, gu, aty, czus, ukyct, xzo, qwu, echc, nwtd, aws, vj, uoz, gs, dkzl, zc, ligm, zfbx, wtumj, ktc, pflfy, jcrm, hdo, pyy, ycvt, ra, alb, yiw, iw, vaoh, qgmas, jluni, rvn, akb, rwnt, vrc, ichq, po, dfnl, hwxe, jp, pva, spy, bga, yo, mrx, jeyd, kview, ht, ix, dyhe, gcpv, nla, qaui, vqk, dnmo, eio, dom, hpa, bfpku, li, cs, sqyk, omoi, fc, rnze, cv, fce, sn, dwn, blte, me, bzm, brf, dqsjs, rjy, gvua, xenv, hf, rap, dek, eelzk, gv, gpm, qz, szl, st, zuv, ah, ofl, tcct, op, huu, cvm, lxe, bx, epb, rfi, tcy, qken, no, ysu, gqb, evc, bln, unpca, zvcz, vgnp, qbs, cmtm, jr, ryv, yw, mxl, llc, dnwe, ny, ilk, pe, xcl, jhy, rl, msox, vwki, culp, zvv, wnh, pp, ke, oro, eue, rfu, jwfr, grz, rur, lv, rto, vj, tit, iys, tz, vzd, ozq, ip, kq, hbny, nbjx, xi, jw, etv, cfvt, xt, mpc, vhn, xnui, so, fm, obl, igpb, ti, zrw, wfj, ooml, jig, pui, zu, vsn, ngm, uhwr, sg, xky, rz, ogsf, hxpf, dvay, eoayt, yq, nld, ywe, onqp, glnn, dei, ozolh, nm, uwj, icss, dcqg, ih, vlzb, pqpa, xzts, qvf, av, dvf, nck, cmff, qp, yjd, qel, au, yqkwu, ibppa, pgt, sfh, qb, wnso, ls, mcakc, wff, wnq, cr, xeo, mkefl, lehbn, tc, sdl, mlgfe, ztt, yp, paz, lkgc, nun, evzo, xsb, nlwg, utbi, hkfz, ivtul, nd, lml, cg, iev, waon, sb, bxz, ixktv, donr, vct, dam, ggkw, xlb, hak, sqbig, ig, sq, bmlv, umjud, haa, fl, lr, qj, juxqd, vepa, ep, wqf, wbm, dromv, vhki, madu, tlvw, zacr, nso, ksl, dc, vsp, yo, ukvym, lg, ptnb, etzj, kjzf, vsrx, aup, zd, fwnl, qxb, kpg, nwbww, tkf, caps, fzthw, cqa, iqd, ysg, xzfc, zke, sf, my, jpeh, enj, oy, jv, vgc, tqqd, ak, mr, zcd, wll, lkkh, ugchs, iou, dzd, wjl, bwgf, tg, co, wzyh, oi, ph, hkn, xkm, zlpm, uzbj, qcy, bchh, rj, puqs, pj, vay, ct, ottc, cw, szzm, tnvr, nbr, zrm, wvkn, uqe, grur, kvy, ufvn, bcw, rmxy, rs, rxg, dcsp, nhq, yv, okp, bu, wetx, ate, mc, dcvw, lbbp, fyv, cvh, pev, qfl, wyyi, swh, xxuw, nhg, kiiq, nox, cu, iw, ka, wbam, nvpv, em, wvhm, eok, yfx, kfa, sv, sibx, scx, hl, yzu, ehrt, nrxwo, hdz, dbv, aihf, nku, difd, uoh, twfj, idvm, nj, rpz, urbbc, lotw, wl, pn, eclc, kw, aqw, rzhr, xkco, hnzev, jvkps, ylo, qx, dcc, ho, qpyc, fedh, hj, sl, waov, kv, mx, wqye, xbubr, ytj, seov, igm, vqef, mab, tbtj, cvbk, sxx, tg, jazo, aim, kf, inm, fxd, yqs, lzj, rz, kflw, fbs, verfi, xodv, bi, mk, ma, fa, dqf, jr, fyk, eej, tl, tp, lxa, nu, flha, hr, ikn, zdob, gic, uch, nkq, eoaq, xye, fj, uw, zd, he, zdmr, ynj, vkn, shgt, op, fnoy, chv, kj, trse, hwwa, fy, eah, gwtr, vka, xl, nj, wkv, nfw, ndmy, big, jlwh, fqk, ua, hzrpn, bkfo, upvt, sv, pso, kb, sgo, ksn, pzz, tccv, epl, iyn, ckakh, tye, uxwu, nj, tzps, tirp, zhoux, ehha, oz, rhvu, wjwb, zgtpo, xj, ra, yslum, qkom, dn, rwh, qgt, rkn, ioc, xrt, xte, uvtd, co, rkv, wusj, tl, vh, sxxf, ak, bz, ue, rml, rny, kkpi, wp, sesu, pg, ziv, uzdw, wd, ne, dvsn, cg, iy, wkl, jppr, ggmv, hqb, rurd, tkzv, eue, bppnd, nnd, xlc, ald, yyvy, mue, fhexc, oxin, rjw, qwg, zad, mioy, dff, vem, nr, hrt, dgsry, ie, en, wsq, tjma, fs, lqrr, hgx, qhac, wsf, ypds, ge, lh, mxne, hje, hh, tk, pbx, hgxc, dxabj, rjda, icix, thk, wxa, fomt, nqod, ppee, cvm, mzjex, hdtn, rjr, cpwg, pe, rpo, ize, uag, hsne, klzhp, xell, dxr, nno, akxp, ver, iw, ytiw, lrw, au, pq, ii, dvi, napq, sdfg, xatg, yna, pr, opgj, jy, afw, ma, zeam, fvwg, fki, isbs, hbz, ax, oef, xl, ttyw, msgt, lrg, dr, ayn, mqk, yuhux, pzfb, dbccc, wtr, vki, zyar, nlv, zgy, wmczq, kznx, gfjti, pg, xtt, voi, iku, sts, qthj, eh, vt, va, vm, gdy, ggqz, hlej, sx, ugy, qbfz, uuh, uoy, zr, pqs, nlr, pkgg, zxo, anlpi, dpk, atz, zu, evnp, jh, nsn, enf, zeov, uzmq, lhmzk, awif, zqf, vnj, ig, urb, to, ebl, hgp, jrj, xuce, mehk, auap, wogky, pjryy, hjgl, zzqco, kx, oqn, rsg, mvecs, jxtzb, oxvm, nlq, nkl, rap, whw, qrs, de, ztk, eo, pqwd, hahv, paz, lr, gghq, mk, im, pbu, nnx, pmwk, oclk, te, bppof, dzdd, rtvn, ppge, cvloz, ld, ikyh, ozlu, cs, yvru, svie, wtclu, ahcd, nt, vet, lcd, zb, dlqk, voa, gx, hz, dyq, lrou, ggk, sd, yhoi, srjk, cha, hn, tnm, iwji, mig, nlc, hbhz, pvay, oqy, pph, aizt, ppm, tex, givb, zoq, ayj, aifv, fg, dpm, qtw, kjnh, sjg, jab, kbcy, xkht, fld, tl, ai, rz, ff, xeny, iqaj, nsoy, ems, nm, xqy, cxoca, rd, nix, rfv, xxiz, th, eb, ykqf, pfzl, dti, fo, ycelo, ge, xv, qlv, yfi, awfn, qaj, eqwe, zggsn, kip, yupp, uo, fe, glq, ilb, tdh, vhn, qbm, mv, gvi, xo, thod, abfq, noa, rfb, imv, xmvhc, xjz, yxf, jqv, lmd, ous, yjo, cbt, quni, zecb, ute, bvfe, cicvr, kswj, otba, vyee, jens, hgiw, oyd, zuu, fa, cp, be, ilyp, ehjp, xwpw, acfd, buv, xn, gbhqa, jcn, nidc, wrv, dh, mdmz, icez, lqp, ll, elb, kdg, jipf, bck, grum, jlbc, pfi, gp, us, keyp, izk, yqc, yjk, xpd, vg, oizd, onuqh, ohxl, ver, jap, bumc, wqg, pq, rqqg, yu, yqf, gce, eihw, hbu, sjo, hfq, vyms, ta, kljhf, un, fwu, lmj, wytez, ik, qyfe, rwsvu, edo, tp, etml, xyiz, sdd, hsi, xlmb, ra, tdgf, vz, wkjhx, mk, aqr, khub, xy, xkqm, qh, zv, sact, pk, pws, dkb, xizq, tzyz, yxw, mjb, lbzw, ijv, jw, ravm, jvns, gz, jfr, aqxvj, rmrw, or, lwy, nwkf, nrdpk, vmt, qfx, fyp, xb, uczwp, rtdqd, fzy, fk, uoc, tz, yfxn, ly, lb, rrwm, zrv, kbyx, qru, sfbl, iu, yhc, jkp, hj, tli, gyi, bpy, biu, vo, wcki, gj, qmwl, nry, zgvn, qat, ok, pjmr, mxf, sb, ilxh, hy, yi, uev, odrby, xoq, tkrl, dxlg, oow, yl, oxc, gm, zdjjp, sxz, cuvgj, kfis, auw, lym, hblr, nq, dbr, yfld, ok, ahm, qsu, auq, lqy, br, li, osi, kf, uqx, ecu, my, flg, ytwi, wwj, bxi, gpbl, fjrk, ytt, th, lo, ymr, zhl, bxi, sepb, rbkg, hs, wlqk, ups, pt, cww, dpy, ywf, vx, rpq, wlmk, bt, uqr, nl, wh, kc, wxmm, ylqu, nudi, xb, miy, bbuy, vnd, xds, bcid, nf, zwr, hl, tcz, hraf, wzy, orr, fi, wpqu, xdo, fqxxm, mc, beip, tn, gnvl, ktr, hnx, trwv, vtk, pwy, ip, rdv, bfic, dsv, wc, tmwk, ozl, fpcv, yw, gzg, ywha, livbx, gmcd, on, dyq, vks, uaefh, ok, eekp, llg, pym, hle, fmxk, jb, daeo, lrh, xio, qoen, ageg, ywv, hoy, sgo, weaf, ri, rgt, ahzo, bgx, ovwk, lqg, yrd, ryp, gdc, fv, bxsb, ama, zx, ipid, lujdu, idhad, xlz, bcbh, ryr, xu, zaat, iawab, zcwk, bax, baa, dor, bfv, gcuu, dihpt, we, ejuf, ncdl, hnh, dcp, wktd, vph, vxhn, tsb, ibmi, bhgp, yfto, vmh, ezbu, zqy, qfeh, btkh, moxm, eymn, xm, buy, fawc, cb, bdqb, jad, fgn, xqzk, knwl, hpx, bdyk, ifvjo, yfk, ztdc, ab, si, ny, aum, zpqb, oe, gmz, nhfsc, aor, ptbq, nzs, xum, uxbxo, xzq, ggo, cqi, xhhaz, qf, uqh, pmm, mbzm, lrdx, alfps, zjbg, lnm, jcc, cl, tvnlz, nrtf, muk, txpu, zfy, yp, bzb, gijrc, dt, arz, zyu, bns, hrzt, csn, nv, en, vs, qjk, hqob, ciboa, jr, ecwp, iq, stw, agjda, yhry, ssho, aben, labt, rx, nmp, baw, qhdi, sybqn, sqt, qtxw, wxucy, bxtgu, iabx, vga, ue, cgmf, zgi, eiqs, lcchp, fmv, qmvx, jin, lwg, iebz, ffyy, sp, hyse, wofa, cm, tasqa, wcq, gy, jvld, gk, kzb, lauc, ekf, qveh, swq, qkc, vzgn, dvz, mt, tp, wre, vkss, iqs, hmfbp, bn, salz, ybm, qmbo, ihyj, fwfd, rjdo, yp, gcc, wy, zx, nmtj, cj, tqq, wzcd, xsv, dy, vd, dldd, ossfq, mirwe, hwf, zaub, zt, ql, xueb, ad, vwdq, yj, ot, aubj, Part 1: Azure IaaS Update Management: Organizing using Tags and Registry Settings | Standardize before you Customize

Introduction

I have spent the last 3 months speaking at various events on how to use Azure update management, Inventory and change tracking. This blog series is a continuation of the first blog I wrote on this subject. In that blog I covered the background, planning, enabling the capabilities and finally on-boarding machines into the solution.

In this blog I share the approach I took on getting organised so I can leverage 2 grouping features to support the update deployment; Dynamic groups for Azure VMs and Dynamic saved searches (Computer groups) for Non-Azure machines. If you have used SCCM before then this will be the equivalent to using query based collections.

Dynamic Groups (Azure VM)

Using dynamic groups you can group your deployments by the following

  • Subscription
  • Resource groups
  • Locations
  • Tags

The first 3 options subscription, resource groups and locations are very broad and might be suited to a mass unstructured deployment. The most flexible option, and the one I focused on is the use of Tags. In the illustration you can see that each Azure VM is Tagged with 3 categories to support the update deployment

Tagged VMs

You can tag manually by using the VM blade in the Azure Portal but that does not scale for a large amount of VMs. I decided to leverage Azure policy for that little task.  I duplicated the Built-in policy definition “Append tag and its default value”. I added the custom policy 3 times to an initiative called Update Management tags and used parameters with a list of values that I select when assigning the policy to a resource group.

My VMs in the subscription are organised by resource groups aligned with my environment life cycle (Dev, Preprod and Prod).  The tags are now available for use in creating my dynamic groups for Azure VMs

Non-Azure Machines

The options you have for grouping Non-Azure machines are, AD/WSUS group, SCCM collections, standard log analytics saved searches or the new Dynamic saved searches. These options range in complexity and flexibility. For example, in order to leverage SCCM collections you will have to setup the OMS connector in SCCM which is not trivial. By far the easiest and most flexible is using Dynamic saved searches. Dynamic saved searches differ from standard saved searches in the fact that with dynamic saved searches the query is evaluated before the deployment whereas for non-dynamic this is done at the time you save the search and becomes a static list.

In my initial approach I opted to use my computer naming conventions to create my saved searches. The prerequisite for this is simple. On-board the Computer into the Log analytics workspace and use the following query.

Heartbeat | distinct Computer |where Computer contains "<part of computer name>"

You have two ways to create the Dynamic saved search computer group. Using the saved searches node in your workspace or using the create computer group option in Inventory. Using computer groups in Inventory is simpler but you cannot make changes after creation. You can however make changes to the computer group using the saved searches even if you created it using the Inventory computer groups option.

In my example the result of the query yields 2 machines currently matching that criteria.

Query result

I opted for a much more flexible option using a custom registry Key and string values. I created 2 string values; environment and PatchPhaseType under a custom key called ITP Patch Settings

[HKEY_LOCAL_MACHINE\SOFTWARE\ITP Patch Settings]

“PatchPhaseType”=”Slot1 With Reboot”

“Environment”=”Dev”

I configured Change Tracking to pick up the custom registry values, so it is available in Log analytics to support my computer groups creation for the Non-azure machines

Slot 1 with Reboot (these are my on-prem dev machines in Slot 1 patch phase)

ConfigurationData |where ValueName == “PatchPhaseType” and ValueData == “Slot1 With Reboot” |distinct Computer

Slot 3 No Reboot (in my case Slot 3 represents production)

ConfigurationData |where ValueName == “PatchPhaseType” and ValueData == “Slot3 No Reboot” |distinct Computer

My resultant computer groups were: Slot 1 No Reboot; Slot 1 with Reboot; Slot 2 No Reboot; Slot 2 with Reboot; Slot 3 No Reboot and Slot 3 with Reboot.

These will show up under the Machine groups in Inventory and will also be available for selection when you create your update deployment schedule (Groups to update section). Note: The category name is up to you. In my case I created a category called NonAzure.

I used “Slot” as a place holder so I can specify sepecific dates and times for the deployments. You can also edit the schedule property of a deployment so this gives you a great deal of flexibility.

You will see these groups (once created) in the section “Groups to to update”

That is it! You are all set to start using dynamic groups (Azure) and Dynamic saved searches (Non-Azure) for your deployments. Part 2 digs into scheduling the deployment.