Skip to content
View sayedimac's full-sized avatar

Organizations

@OfficeDev @Azure

Block or report sayedimac

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
sayedimac/README.md

Howzit ;)

I added some course examples from my Microsoft courses in the Coursecontent. Clone that repo, do not fork it, I am consolidating 4-5 repos all in this one. It contains:

  • Azure PowerShell and CLI examples
  • DSC examples (IIS on Windows and LAMP stack on Linux)
  • Great diagrams about Github relational structures
  • Bicep examples
  • Much more...

For Azure App Service related demos, clone or fork Slots

  1. Create an App Service
  2. Configure an Environment variable for each of the custom properties in the appsettings.json file in the root of the repo (dbconn, site, colour and auth - don't forget to save 😉)
  3. Create a second deployment Slot - make sure to copy the config of the Production slot, else you will have to recreate the fields as opposed to just setting new values (both slots will merely render the appsettings.json file settings if not set in the app service slots)
  4. In the second slot (I will call mine UAT as I setup Github Approval for a UAT Environment in that repo hehee Mr fancypants)
  5. Got to the second Slot Deployment blade, and deploy the app from Github into your second slot. You should see the values you set fo rhte second slot in the app UI
  6. Swap slots or you can opt for auto Swap which will basically not allow for testing but rather give you a zero downtime type deployment

For container (Docker) demos, clone or fork docker-app. It has several folders but once pushed to ACR, you can easily deploy the container image to ACI, ACA, App Services and AKS. There is a workflow for thislast one, follow these steps:

  • In the root of the repo there is a Dockerfile referencing the actual app in /src directory
  • There is Github workflow called "Build and deploy an app to AKS" which will require you to setup a service principal in Github for your Azure Subscription (Service Princial needs Contribute to Subscription)
  • deployment.yaml will be referenced in the Workflow and deploy the app to an AKS cluster so you should update this file with the corresponding changes in the workflow file where relevant

Pinned Loading

  1. Slots Slots Public template

    Code you can use to target different slots in an Azure App Service

    HTML 1 12

  2. coursecontent coursecontent Public

    Content for Azure courses

    PowerShell 3 11

  3. jstatic jstatic Public

    C#

  4. myfunc myfunc Public

    C# 1

  5. docker-app docker-app Public

    HTML 5