AzureFunBytes Reminder - Intro to @BicepLang with @adotfrank - 7/8/2021

%3CLINGO-SUB%20id%3D%22lingo-sub-2523634%22%20slang%3D%22en-US%22%3EAzureFunBytes%20Reminder%20-%20Intro%20to%20%40BicepLang%20with%20%3Ca%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F799149%22%3E%40adotfrank%3C%2Fa%3E%20-%207%2F8%2F2021%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2523634%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAzureFunBytes%20is%20a%20weekly%20opportunity%20to%20learn%20more%20about%20the%20fundamentals%20and%20foundations%20that%20make%20up%20Azure.%20It's%20a%20chance%20for%20me%20to%20understand%20more%20about%20what%20people%20across%20the%20Azure%20organization%20do%20and%20how%20they%20do%20it.%20Every%20week%20we%20get%20together%20at%2011%20AM%20Pacific%20on%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F226%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EMicrosoft%20LearnTV%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20learn%20more%20about%20Azure.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%3A%20July%208%2C%202021%2011%20AM%20Pacific%20%2F%202%20PM%20Eastern%3CBR%20%2F%3EWhere%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F226%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EMicrosoft%20LearnTV%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jaydestro_0-1625670472531.gif%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294046iFB23FE412A6E4BDD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jaydestro_0-1625670472531.gif%22%20alt%3D%22jaydestro_0-1625670472531.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20week%20on%20AzureFunBytes%20we%20flex%20some%20Azure%20muscle%20with%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2dv%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EBicep%3C%2FA%3E.%20Bicep%20is%20a%20language%20that%20allows%20you%20to%20use%20declarative%20syntax%20to%20codify%20your%20Azure%20infrastructure%20deployments.%20Bicep%20is%20an%20Azure%20native%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2dm%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EDomain-Specific%20Language%20(DSL)%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ethat%20promotes%20a%20cleaner%20syntax%2C%20improved%20type%20safety%2C%20and%20better%20support%20for%20modularity%20and%20re-use%20of%20code.%20Bicep%20is%20a%20transparent%20abstraction%20over%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2dt%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EAzure%20Resource%20Manager%20(ARM)%20templates%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ethat%20gives%20you%20the%20ability%20to%20create%20nearly%20any%20required%20resource%20with%20in%20Azure.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fbicepdemo.z22.web.core.windows.net%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EBicep%20has%20a%20playground%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ethat%20allows%20you%20to%20start%20using%20existing%20ARM%20Template%20Quickstarts%20right%20away.%20Or%20if%20you%20choose%20to%20build%20them%20from%20scratch%2C%20the%20snippets%20with%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2df%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EVS%20Code%20Bicep%20extension%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ewill%20be%20a%20huge%20help.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jaydestro_1-1625670472473.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294045i45B950FC9ABF750C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jaydestro_1-1625670472473.png%22%20alt%3D%22jaydestro_1-1625670472473.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20was%20lucky%20enough%20to%20get%20one%20of%20the%20experts%20on%20Bicep%20to%20join%20us%20this%20week!%20We'll%20welcome%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2Fadotfrank%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EMicrosoft%20Program%20Manager%20Alex%20Frankel%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eto%20the%20show%20to%20give%20us%20greater%20insight%20into%20how%20to%20use%20Bicep%20to%20create%20our%20infrastructure.%20I'll%20ask%20Alex%20your%20questions%2C%20we'll%20look%20at%20some%20Bicep%20basics%2C%20discuss%20best%20practices%2C%20and%20even%20kick%20off%20some%20deployments.%20Don't%20miss%20this%20incredible%20opportunity%20to%20learn%20about%20building%20your%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2dg%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EInfrastructure%20as%20Code%20(IAC)%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ewith%20Bicep!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20class%3D%22%20fluidvids%22%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fwww.youtube.com%2Fembed%2FzIz23oeLzdA%22%20width%3D%22710%22%20height%3D%22399%22%20allowfullscreen%3D%22allowfullscreen%22%20class%3D%22%20fluidvids-elem%22%20loading%3D%22lazy%22%20data-mce-fragment%3D%221%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOur%20Agenda%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EWhy%20we%20are%20investing%20in%20bicep%20in%20the%20first%20place%3CUL%3E%0A%3CLI%3EARM%20Templates%20are%20by%20far%20the%20most%20popular%20declarative%20tool%20for%20deploying%20to%20Azure%2C%20want%20to%20improve%20experience%20for%20those%20customers%3C%2FLI%3E%0A%3CLI%3EClarify%20that%20Bicep%20is%20just%20one%20of%20many%20great%20options%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EKey%20differences%20between%20Bicep%20and%20ARM%20templates%3CUL%3E%0A%3CLI%3EModules%2C%20richer%20intellisense%2C%20auto%20DependsOn%2C%20richer%20type%20safety%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EHow%20the%20language%20is%20designed%20and%20the%20importance%20of%20tooling%3CUL%3E%0A%3CLI%3EIn%20terms%20of%20language%20design%20(not%20complexity)%2C%20Bicep%20shares%20more%20DNA%20with%20C%23%20and%20TypeScript%20than%20traditional%20%E2%80%9Cscripting%E2%80%9D%20languages%20like%20HCL%20or%20Chef%3C%2FLI%3E%0A%3CLI%3ETooling%20is%20built%20alongside%20the%20language%2C%20so%20our%20syntax%20decisions%20are%20always%20driven%20by%20our%20ability%20to%20build%20tooling%20to%20go%20with%20it%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EBenefits%20of%20being%20%E2%80%9CAzure%20native%E2%80%9D%3CUL%3E%0A%3CLI%3EDay%20zero%20support%20for%20all%20resource%20types%3C%2FLI%3E%0A%3CLI%3ENo%20state%20management%20without%20losing%20the%20ability%20to%20perform%20what-if%20(%E2%80%9Ctf%20plan%E2%80%9D%20equivalent)%20and%20manage%20lifecycle%20(%E2%80%9Ctf%20destroy%E2%80%9D%20equivalent)%3C%2FLI%3E%0A%3CLI%3EWorks%20with%20other%20platform%20capabilities%20like%20Template%20Specs%2C%20Azure%20Marketplace%2C%20etc.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EFull%20details%20of%20how%20the%20Bicep%20language%20works%20can%20be%20found%20in%20the%20%5BBicep%20documentation%5D%20and%20there%20is%20a%20rich%20library%20of%20examples%20to%20help%20you%20get%20a%20jumpstart.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fbicep%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CEM%3EFrom%20the%20Bicep%20GitHub%20repository%20docs%2C%20how%20to%20get%20started%3A%3C%2FEM%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3ETo%20get%20going%20with%20Bicep%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CSTRONG%3EStart%20by%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fbicep%2Fblob%2Fmain%2Fdocs%2Finstalling.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Einstalling%20the%20tooling%3C%2FA%3E.%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EComplete%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fbicep%2Fblob%2Fmain%2Fdocs%2Ftutorial%2F01-simple-template.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EBicep%20tutorial%3C%2FA%3E%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EAlternatively%2C%20you%20can%20try%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fbicepdemo%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EBicep%20Playground%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eor%20use%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fvscode-remote-try-bicep%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EVS%20Code%20Devcontainer%2FCodespaces%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Erepo%20to%20get%20a%20preconfigured%20environment.%3C%2FP%3E%0A%3CP%3EIf%20you%20have%20an%20existing%20ARM%20Template%20or%20set%20of%20resources%20that%20you%20would%20like%20to%20convert%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3E.bicep%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eformat%2C%20see%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fbicep%2Fblob%2Fmain%2Fdocs%2Fdecompiling.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EDecompiling%20an%20ARM%20Template%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EFull%20details%20of%20how%20the%20bicep%20language%20works%20can%20be%20found%20in%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fbicep%2Ftree%2Fmain%2Fdocs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EBicep%20documentation%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20there%20is%20a%20rich%20library%20of%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fbicep%2Ftree%2Fmain%2Fdocs%2Fexamples%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eexamples%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eto%20help%20you%20get%20a%20jumpstart.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--412503821%22%20id%3D%22toc-hId--412503819%22%3E%3CA%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Fazurefunbytes-reminder-intro-to-biceplang-with-adotfrank-7-8-2021-56i6%23how-does-bicep-work%22%20name%3D%22how-does-bicep-work%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3C%2FA%3EHow%20does%20Bicep%20work%3F%3C%2FH2%3E%0A%3CP%3EFirst%2C%20author%20your%20Bicep%20code%20using%20the%20Bicep%20language%20service%20as%20part%20of%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fbicep%2Fblob%2Fmain%2Fdocs%2Finstalling.md%23bicep-vs-code-extension%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EBicep%20VS%20Code%20extension%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EBoth%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2d9%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EAz%20CLI%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(2.20.0%2B)%20and%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2d8%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EPowerShell%20Az%20module%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(v5.6.0%2B)%20have%20Bicep%20support%20built-in.%20This%20means%20you%20can%20use%20the%20standard%20deployment%20commands%20with%20your%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3E*.bicep%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efiles%20and%20the%20tooling%20will%20transpile%20the%20code%20and%20send%20it%20to%20ARM%20on%20your%20behalf.%20For%20example%2C%20to%20deploy%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Emain.bicep%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eto%20a%20resource%20group%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Emy-rg%3C%2FCODE%3E%2C%20we%20can%20use%20the%20CLI%20command%20we%20are%20already%20used%20to%3A%3C%2FP%3E%0A%3CDIV%20class%3D%22highlight%20js-code-highlight%22%3E%0A%3CPRE%20class%3D%22highlight%20plaintext%22%3E%3CCODE%3Eaz%20deployment%20group%20create%20-f%20.%2Fmain.bicep%20-g%20my-rg%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CDIV%20class%3D%22highlight__panel%20js-actions-panel%22%3E%0A%3CDIV%20class%3D%22highlight__panel-action%20js-fullscreen-code-action%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CP%3EFor%20more%20detail%20on%20taking%20advantage%20of%20new%20Bicep%20constructs%20that%20replace%20an%20equivalent%20from%20ARM%20Templates%2C%20you%20can%20read%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fbicep%2Fblob%2Fmain%2Fdocs%2Farm2bicep.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Emoving%20from%20ARM%20%3D%26gt%3B%20Bicep%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Edoc.%3C%2FP%3E%0A%3CP%3EHere's%20an%20example%20of%20a%20Bicep%20template%20to%20create%20a%20two%20subnet%20Azure%20VNET%3A%3C%2FP%3E%0A%3CDIV%20class%3D%22highlight%20js-code-highlight%22%3E%0A%3CPRE%20class%3D%22highlight%20json%22%3E%3CCODE%3E%3CSPAN%20class%3D%22err%22%3Eresource%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22err%22%3EvirtualNetwork%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22err%22%3E'Microsoft.Network%2FvirtualNetworks%40%3C%2FSPAN%3E%3CSPAN%20class%3D%22mi%22%3E2019-11-01%3C%2FSPAN%3E%3CSPAN%20class%3D%22err%22%3E'%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22err%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22p%22%3E%7B%3C%2FSPAN%3E%0A%20%20%3CSPAN%20class%3D%22err%22%3Ename%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22err%22%3E'name'%3C%2FSPAN%3E%0A%20%20%3CSPAN%20class%3D%22err%22%3Elocation%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22err%22%3EresourceGroup().location%3C%2FSPAN%3E%0A%20%20%3CSPAN%20class%3D%22err%22%3Eproperties%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22p%22%3E%7B%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22err%22%3EaddressSpace%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22p%22%3E%7B%3C%2FSPAN%3E%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22err%22%3EaddressPrefixes%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22p%22%3E%5B%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22err%22%3E'%3C%2FSPAN%3E%3CSPAN%20class%3D%22mf%22%3E10.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22err%22%3E.%3C%2FSPAN%3E%3CSPAN%20class%3D%22mf%22%3E0.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22err%22%3E%2F%3C%2FSPAN%3E%3CSPAN%20class%3D%22mi%22%3E16%3C%2FSPAN%3E%3CSPAN%20class%3D%22err%22%3E'%3C%2FSPAN%3E%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22p%22%3E%5D%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22p%22%3E%7D%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22err%22%3Esubnets%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22p%22%3E%5B%3C%2FSPAN%3E%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22p%22%3E%7B%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22err%22%3Ename%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22err%22%3E'Subnet%3C%2FSPAN%3E%3CSPAN%20class%3D%22mi%22%3E-1%3C%2FSPAN%3E%3CSPAN%20class%3D%22err%22%3E'%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22err%22%3Eproperties%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22p%22%3E%7B%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22err%22%3EaddressPrefix%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22err%22%3E'%3C%2FSPAN%3E%3CSPAN%20class%3D%22mf%22%3E10.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22err%22%3E.%3C%2FSPAN%3E%3CSPAN%20class%3D%22mf%22%3E0.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22err%22%3E%2F%3C%2FSPAN%3E%3CSPAN%20class%3D%22mi%22%3E24%3C%2FSPAN%3E%3CSPAN%20class%3D%22err%22%3E'%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22p%22%3E%7D%3C%2FSPAN%3E%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22p%22%3E%7D%3C%2FSPAN%3E%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22p%22%3E%7B%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22err%22%3Ename%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22err%22%3E'Subnet%3C%2FSPAN%3E%3CSPAN%20class%3D%22mi%22%3E-2%3C%2FSPAN%3E%3CSPAN%20class%3D%22err%22%3E'%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22err%22%3Eproperties%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22p%22%3E%7B%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22err%22%3EaddressPrefix%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22err%22%3E'%3C%2FSPAN%3E%3CSPAN%20class%3D%22mf%22%3E10.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22err%22%3E.%3C%2FSPAN%3E%3CSPAN%20class%3D%22mf%22%3E1.0%3C%2FSPAN%3E%3CSPAN%20class%3D%22err%22%3E%2F%3C%2FSPAN%3E%3CSPAN%20class%3D%22mi%22%3E24%3C%2FSPAN%3E%3CSPAN%20class%3D%22err%22%3E'%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22p%22%3E%7D%3C%2FSPAN%3E%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22p%22%3E%7D%3C%2FSPAN%3E%0A%20%20%20%20%3CSPAN%20class%3D%22p%22%3E%5D%3C%2FSPAN%3E%0A%20%20%3CSPAN%20class%3D%22p%22%3E%7D%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22p%22%3E%7D%3C%2FSPAN%3E%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CDIV%20class%3D%22highlight__panel%20js-actions-panel%22%3E%0A%3CDIV%20class%3D%22highlight__panel-action%20js-fullscreen-code-action%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CP%3EYou%20can%20add%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2dp%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eparameters%3C%2FA%3E%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2dr%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Euse%20modules%3C%2FA%3E%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2ds%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Elink%20templates%3C%2FA%3E%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2dq%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eset%20variables%3C%2FA%3E%2C%20and%20set%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2dn%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eoutputs%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ewithin%20your%20template.%20You%20can%20deploy%20your%20Bicep%20templates%20using%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2dh%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EAzure%20CLI%3C%2FA%3E%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2dj%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EPowerShell%3C%2FA%3E%2C%20and%20even%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2dk%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EAzure%20Portal%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D3xLLFuWhmdQ%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EThe%20Bicep%200.4%20community%20call%20from%20June%202%2C%202021%3A%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20class%3D%22%20fluidvids%22%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fwww.youtube.com%2Fembed%2F3xLLFuWhmdQ%22%20width%3D%22710%22%20height%3D%22399%22%20allowfullscreen%3D%22allowfullscreen%22%20class%3D%22%20fluidvids-elem%22%20loading%3D%22lazy%22%20data-mce-fragment%3D%221%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%0A%3CP%3E%3CLI-WRAPPER%3E%3C%2FLI-WRAPPER%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CHR%20%2F%3E%0A%3CP%3ELearn%20about%20Azure%20fundamentals%20with%20me!%3C%2FP%3E%0A%3CP%3ELive%20stream%20is%20normally%20found%20on%20Twitch%2C%20YouTube%2C%20and%20LearnTV%20at%2011%20AM%20PT%20%2F%202%20PM%20ET%20Thursday.%20You%20can%20also%20find%20the%20recordings%20here%20as%20well%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftwitch.tv%2Fazurefunbytes%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EAzureFunBytes%20on%20Twitch%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fjaygordononyoutube%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzureFunBytes%20on%20YouTube%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fchannel%2FUC-ikyViYMM69joIAv7dlMsA%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EAzure%20DevOps%20YouTube%20Channel%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2Fazurefunbytes%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EFollow%20AzureFunBytes%20on%20Twitter%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EUseful%20Docs%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F219%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EGet%20%24200%20in%20free%20Azure%20Credit%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F243%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EMicrosoft%20Learn%3A%20Introduction%20to%20Azure%20fundamentals%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2dc%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EMicrosoft%20Learn%3A%20Deploy%20and%20manage%20resources%20in%20Azure%20by%20using%20Bicep%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2db%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EBicep%20Documentation%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2df%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EQuickstart%3A%20Create%20Bicep%20files%20with%20Visual%20Studio%20Code%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fbicepdemo.z22.web.core.windows.net%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EBicep%20Playground%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2dt%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EARM%20template%20documentation%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F28F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ETutorial%3A%20Create%20and%20deploy%20first%20Azure%20Resource%20Manager%20Bicep%20file%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2FBicepLang%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EBicep%20on%20Twitter%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2d9%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EInstall%20the%20Azure%20CLI%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2dd%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EBest%20practices%20for%20Bicep%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2dg%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EWhat%20is%20Infrastructure%20as%20Code%3F%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcda.ms%2F2dm%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EAbout%20Domain-Specific%20Languages%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2523634%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBicep%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIac%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

 

AzureFunBytes is a weekly opportunity to learn more about the fundamentals and foundations that make up Azure. It's a chance for me to understand more about what people across the Azure organization do and how they do it. Every week we get together at 11 AM Pacific on Microsoft LearnTV and learn more about Azure.

 

When: July 8, 2021 11 AM Pacific / 2 PM Eastern
Where: Microsoft LearnTV

jaydestro_0-1625670472531.gif

 

This week on AzureFunBytes we flex some Azure muscle with Bicep. Bicep is a language that allows you to use declarative syntax to codify your Azure infrastructure deployments. Bicep is an Azure native Domain-Specific Language (DSL) that promotes a cleaner syntax, improved type safety, and better support for modularity and re-use of code. Bicep is a transparent abstraction over Azure Resource Manager (ARM) templates that gives you the ability to create nearly any required resource with in Azure. Bicep has a playground that allows you to start using existing ARM Template Quickstarts right away. Or if you choose to build them from scratch, the snippets with the VS Code Bicep extension will be a huge help.

jaydestro_1-1625670472473.png

 

I was lucky enough to get one of the experts on Bicep to join us this week! We'll welcome Microsoft Program Manager Alex Frankel to the show to give us greater insight into how to use Bicep to create our infrastructure. I'll ask Alex your questions, we'll look at some Bicep basics, discuss best practices, and even kick off some deployments. Don't miss this incredible opportunity to learn about building your Infrastructure as Code (IAC) with Bicep!

 

 

 

Our Agenda:

  • Why we are investing in bicep in the first place
    • ARM Templates are by far the most popular declarative tool for deploying to Azure, want to improve experience for those customers
    • Clarify that Bicep is just one of many great options
  • Key differences between Bicep and ARM templates
    • Modules, richer intellisense, auto DependsOn, richer type safety
  • How the language is designed and the importance of tooling
    • In terms of language design (not complexity), Bicep shares more DNA with C# and TypeScript than traditional “scripting” languages like HCL or Chef
    • Tooling is built alongside the language, so our syntax decisions are always driven by our ability to build tooling to go with it
  • Benefits of being “Azure native”
    • Day zero support for all resource types
    • No state management without losing the ability to perform what-if (“tf plan” equivalent) and manage lifecycle (“tf destroy” equivalent)
    • Works with other platform capabilities like Template Specs, Azure Marketplace, etc.

Full details of how the Bicep language works can be found in the [Bicep documentation] and there is a rich library of examples to help you get a jumpstart.

From the Bicep GitHub repository docs, how to get started:

To get going with Bicep:

  1. Start by installing the tooling.
  2. Complete the Bicep tutorial

Alternatively, you can try the Bicep Playground or use the VS Code Devcontainer/Codespaces repo to get a preconfigured environment.

If you have an existing ARM Template or set of resources that you would like to convert to .bicep format, see Decompiling an ARM Template.

Full details of how the bicep language works can be found in the Bicep documentation and there is a rich library of examples to help you get a jumpstart.

How does Bicep work?

First, author your Bicep code using the Bicep language service as part of the Bicep VS Code extension

Both Az CLI (2.20.0+) and the PowerShell Az module (v5.6.0+) have Bicep support built-in. This means you can use the standard deployment commands with your *.bicep files and the tooling will transpile the code and send it to ARM on your behalf. For example, to deploy main.bicep to a resource group my-rg, we can use the CLI command we are already used to:

az deployment group create -f ./main.bicep -g my-rg
 

For more detail on taking advantage of new Bicep constructs that replace an equivalent from ARM Templates, you can read the moving from ARM => Bicep doc.

Here's an example of a Bicep template to create a two subnet Azure VNET:

resource virtualNetwork 'Microsoft.Network/virtualNetworks@2019-11-01' = {
  name: 'name'
  location: resourceGroup().location
  properties: {
    addressSpace: {
      addressPrefixes: [
        '10.0.0.0/16'
      ]
    }
    subnets: [
      {
        name: 'Subnet-1'
        properties: {
          addressPrefix: '10.0.0.0/24'
        }
      }
      {
        name: 'Subnet-2'
        properties: {
          addressPrefix: '10.0.1.0/24'
        }
      }
    ]
  }
}
 

You can add parameters, use modules, link templates, set variables, and set outputs within your template. You can deploy your Bicep templates using Azure CLI, PowerShell, and even the Azure Portal.

The Bicep 0.4 community call from June 2, 2021:

 

 


Learn about Azure fundamentals with me!

Live stream is normally found on Twitch, YouTube, and LearnTV at 11 AM PT / 2 PM ET Thursday. You can also find the recordings here as well:

AzureFunBytes on Twitch
AzureFunBytes on YouTube
Azure DevOps YouTube Channel
Follow AzureFunBytes on Twitter

Useful Docs:

Get $200 in free Azure Credit
Microsoft Learn: Introduction to Azure fundamentals
Microsoft Learn: Deploy and manage resources in Azure by using Bicep
Bicep Documentation
Quickstart: Create Bicep files with Visual Studio Code
Bicep Playground
ARM template documentation
Tutorial: Create and deploy first Azure Resource Manager Bicep file
Bicep on Twitter
Install the Azure CLI
Best practices for Bicep
What is Infrastructure as Code?
About Domain-Specific Languages

 

0 Replies