Kirill Gavrylyuk, Matias Quaranta, Deborah Chen, and Estefani Arroyo join Scott Hanselman to provide another set of updates for Azure Cosmos DB. Learn about: using Azure Cosmos DB as a Session State Provider for ASP.NET Core; the latest updates for Azure Cosmos DB free tier; how to optimize cost and performance by scaling the throughput (RU/s) of your database or container automatically and instantly; and the great new monitoring and diagnostic features that make it even easier to monitor and debug your Azure Cosmos DB resources using insights, workbooks and logs.[0:00:00]– Introduction with Kirill Gavrylyuk[0:01:56]– Session state provider with Matias Quaranta[0:10:32]– Free tier with Deborah Chen[0:12:57]– Autoscale with Deborah Chen[0:25:18]– Monitoring and Diagnostics with Estefani Arroyo[0:33:21]– Wrap-upMicrosoft Caching Extension using Azure Cosmos DB (GitHub)Azure Cosmos DB free tierCreate Azure Cosmos containers and databases with autoscale throughputProvision autoscale throughput on database or container in Azure Cosmos DB - SQL APIHow to choose between standard (manual) and autoscale provisioned throughputMonitor Azure Cosmos DB data by using diagnostic settings in AzureMonitor and debug with insights in Azure Cosmos DBWork with NoSQL data in Azure Cosmos DB learning pathCreate a free account (Azure)
Steve Michelotti joins Scott Hanselman to show what's new in Azure Government, which provides a physically separate and network-isolated instance of Azure for U.S. federal, state, and local governments in multiple regions in the United States. Learn how Azure Government is both the same and different from Azure public cloud.[0:00:00]– Introduction[0:00:38]– What is Azure Government?[0:05:19]– Azure Government in the Azure portal[0:12:27]– Azure Government in a terminal or shell[0:17:21]– Azure Government in developer tools[0:22:35]– Wrap-upAzure for government overviewAzure for U.S. governmentAzure Government docsOptimize government operations with Azure learning pathCreate a free account (Azure)
We’re happy to announce the first preview release of Package Source Mapping with Visual Studio 2022 preview 4! Package Source Mapping gives you fine-grained control of where your packages come from by mapping every package in your solution to a target package source.The post Introducing Package Source Mapping appeared first on The NuGet Blog.
Derek Martin joins Scott Hanselman to discuss the Azure Kubernetes Service (AKS) Secure Baseline reference implementation from the Azure Architecture Center. Learn what it is, how it works, and how you can use it to start your production deployment in a secure and compliant manner. You'll also learn about the available additions for Payment Card Industry Data Security Standard (PCI-DSS 3.2.1) compliance and multi-region cluster support.[0:00:00]– Introduction[0:00:36]– Overview [0:02:41]– Getting to a production-ready, secure baseline[0:06:47]– Making it your own[0:10:12]– Multiregion clusters[0:12:38]– PCI-DSS compliance[0:15:23]– Wrap-upAzure Architecture CenterBaseline architecture for an Azure Kubernetes Service (AKS) clusterAKS baseline for multiregion clustersIntroduction of an AKS regulated cluster for PCI-DSS 3.2.1Azure Kubernetes Service (AKS) Baseline Cluster (GitHub)Create a free account (Azure)
Yuan Zheng joins Scott Hanselman to discuss and demonstrate Blob storage support for the NFS 3.0 protocol, which enables you to run your applications on a single storage platform. With no application rewrites necessary you will also help eliminate data silos.[0:00:00]– Introduction[0:02:00]– Overview of NFS v3[0:04:42]– Demo: Enabling NFSv3 in your Storage account[0:05:49]– Demo: Secure access using virtual networks[0:07:20]– Demo: Blob storage compatibility with VMs using NFS v3[0:09:12]– Demo: Writing to Blob storage from within a VM[0:12:45]– Wrap-upModernize large-scale NFS workloads and eliminate data silos with Azure Blob StorageNetwork File System (NFS) 3.0 protocol support in Azure Blob StorageAzure Blob Storage overviewConfigure blob storage – Microsoft Learn moduleCreate a free account (Azure)
I've long blogged about my love of setting up a nice terminal, getting the prompt just right, setting my colors, fonts, glyphs, and more. Here's some of my posts. How to make a pretty prompt in Windows Terminal with Powerline, Nerd Fonts, Cascadia Code, WSL, and oh-my-posh Patching the new Cascadia Code to include Powerline Glyphs and other Nerd Fonts for the Windows Terminal What's the difference between a console, a terminal, and a shell? Taking your PowerShell prompt to the next level with Windows Terminal and Oh my Posh 3 I want to take a moment to update my pretty prompt post with a little more detail and a more complex PowerShell $PROFILE, due to some changes in Oh My Posh, PowerShell, and the Windows Terminal. I doubt that this post is perfect and I'm sure there's stuff here that is a little extra. But I like it, and this post will serve as my "setting up a new machine" post until I get around to writing a script to do all this for me in one line. I love my prompt. Let's get you set up! Get PowerShell I don't mean Windows PowerShell (that's "classic" now) I mean the .NET Core-powered cross-platform PowerShell. There's a LOT of ways to get it but I'm a Store person usually so I can get PowerShell (and it'll auto update) from the Microsoft Store or just "winget install Microsoft.PowerShell" from the command line with winget. Get Windows Terminal and set a default Shell Get Windows Terminal if you don't already have it, you can get Windows Terminal free from the Store. If you don't have access to the Microsoft Store, the builds are published on the GitHub releases page. It comes with a lovely font called Cascadia Code...but... Now that you have Windows Terminal, you'll notice that it knows that you have PowerShell installed and will add it to your Windows Terminal dropdown menu! You can set PowerShell as your default Profile - that's the one you'll get by default when you make a new Tab - in settings: Upgrade your Terminal/Console Fonts I like fonts with lots of Glyphs so I also download and Install Caskaydia Cove Nerd Font Complete. This is the same Cascadia Code font but MODIFIED to include hundreds of special characters that you can use to make your prompt cooler. IMPORTANT NOTE: The string literal name of this font for use in settings or VS Code is "CaskaydiaCove NF". If you're using Cascadia Code, there are different strings for each. The NUMBER ONE question I get is 'why don't my glyphs/fonts show up right in Windows Terminal/VS Code?' and the answer is almost always "you're using the wrong font string." It's usually either an extra space or a missing space, so don't be afraid to double check. Remember that Windows Terminal has a lovely Settings UI but you can always click "open JSON file" to manage the settings.json as text if you prefer. Here's mine. Yours will be different and you should customize it! The Windows Terminal documentation is fantastic. Again, see how PowerShell is in BOLD? That's because it's my default. Now, let's add a little...spice... Add "Oh My Posh" to your Shell Oh My Posh has amazing docs so check them out. Do note that some stuff has changed, especially from v2 to v3. EXCITING NOTE: Oh My Posh is portable and works on any shell, so I use it on both my "Pwsh" (PowerShell) in Windows and my Bash shells on WSL running Ubuntu. You can install Oh My Posh with with PowerShell's "Install-Module" or with the platform-specific install instructions. I used the latter, which is somewhat new, but it's tomato/tomato, so use what works for you. Again, read the docs but the idea on Windows is basically this (or get it from GitHub):winget install JanDeDobbeleer.OhMyPosh# restart shell to reload PATHThen edit $PROFILE and add the following line, remembering at this point that oh-my-posh is an executable on the PATH. oh-my-posh --init --shell pwsh --config ~/jandedobbeleer.omp.json | Invoke-ExpressionI have changed my Oh My Posh from Jan's default to include my own stuff, and I keep my latest up in a GitHub Gist and also in my DropBox/OneDrive so it's always syncing to all my machines. Mine is this, after I download from my gist.oh-my-posh --init --shell pwsh --config D:/Dropbox/ohmyposhv3-2.json | Invoke-ExpressionYours will vary. Again, read the docs and experiment! Once added, reload your profile for the changes to take effect, or restart your shell.. $PROFILEThat .json file is filled with "segments" that are documented on the Oh My Posh site in a lot of detail. Overwhelming detail. You can add your computer's battery, your Azure Subscription, the dotnet or node version of your current folder, really anything. Even your Spotify songs. I'm going to make one that show my Blood Sugar.Go explore Oh My Posh Themes and then modify them with your own additional Segments.Again, note that your fonts will need the right glyphs or it will look weird.Here's a GOOD prompt: Here's a BAD prompt with an issue! Why is it wrong? Either the .json file that is your config has been saved wrong or corrupted the Unicode Glyphs, or you've got a font that doesn't have those glyphs. Re-assert your Git segment in Oh My PoshSome folks want full git info, status, added, modified, untracked, etc and others just want the current git branch. Check the Git segment and the Posh Git segment to make sure you are getting the performance AND information you need.I needed to turn on "display_stash_count" and "display_upstream_icon" in my config json, like this:{ "type": "git", "style": "powerline", "powerline_symbol": "", "invert_powerline": false, "foreground": "#193549", "background": "#fffb38", "leading_diamond": "", "trailing_diamond": "", "properties": { "display_status": true, "display_stash_count": true, "display_upstream_icon": true }},Again, this is all optional and affect performance slightly, but be aware of these properties. I believe I have these set the right way I want them in my public gist. Here is me moving around my source code with "z" in stead of cd, but note the prompt changes. Turn your PowerShell directories up to 11 with Terminal-Icons Is your prompt not extra enough? That's because your directory listing needs color AND cool icons!Install-Module -Name Terminal-Icons -Repository PSGalleryAnd then add one line to my $profile (edit with "code $profile"):Import-Module -Name Terminal-IconsSweet! How far is too far?At this point you're basically done, but I also LOVE PSReadLine. It's great generally but also nice for bash and Emacs types who are moving to PowerShell or use PowerShell for work. I've added features like "ctrl shift b" at the command line will run "dotnet build." Why? Because I can and because it's muscle memory so I'm making my prompt work for me.You can also add Predictive Autocomplete to your prompt if you like but I'll leave that as an exercise to the reader! My PowerShell profile is on a public gist, and while it's not perfect and likely has issues, it works for me!Enjoy! Thanks to the Windows Terminal Team and the always lovely Jan De Dobbeleer from Oh My Posh, as well as Brandon Olin from Terminal Icons.Check out our Sponsor! YugabyteDB is a distributed SQL database designed for resilience and scale. It is 100% open source, PostgreSQL-compatible, enterprise-grade, and runs across all clouds. Sign up and get a free t-shirt!© 2021 Scott Hanselman. All rights reserved.
Delbert Murphy joins Scott Hanselman to show how quantum-inspired algorithms mimic quantum physics to solve difficult optimization problems. Quantum-Inspired Optimization (QIO) takes state-of-the-art algorithmic techniques from quantum physics and makes these capabilities available in Azure on conventional hardware, and callable from a Python client. You can use QIO to solve problems with hundreds of thousands of variables, combined into millions of terms, in a few minutes, with this easy-to-consume Azure service.[0:00:00]– Introduction [0:00:40]– What problems can you solve with quantum-inspired optimization?[0:05:35]– A concrete example: Secret Santa[0:08:52]– Demo, Part I: Solving Secret Santa with QIO[0:17:58]– Demo, Part II: Running the code[0:21:12]– Quantum-inspired algorithms[0:24:33]– Wrap-up Solve optimization problems by using quantum-inspired optimizationWhat are quantum-inspired algorithms?Ising formulations of many NP problems (Cornell University)A Tutorial on Formulating and Using QUBO Models (Cornell University)Sample code: delbert/secret-santa (GitHub)Azure Quantum optimization service samples (GitHub)Create a free account (Azure)
Hey friends! I wanted remind you about my podcast! It's http://hanselminutes.com/ and just a few weeks ago I published my 800th episode! My first episode was in January of 2006 so that's over 15 years of shows. And, if I may be a little boastful for a moment, they are pretty darn good. Maybe the first 400 were a little rough but these last 400 have been ROCK SOLID. Just kidding. Seriously, though, this 30 minute long tech show has diverse topics and new faces you haven't heard on other podcasts. If you check out over 800 episodes here https://www.hanselminutes.com/episodes you can search by Title, Guest, OR search all the Transcripts! There's over 400 hours of shows and you can search for the topics you want. Subscribe with your favorite podcast app, the raw RSS is here. We're also available on basically every podcast app out there, including, but not limited to: iTunes Spotify Google Podcasts TuneIn iHeart Stitcher Player.FM Samsung Podcasts, and more! If you enjoy the show, the best thing you can do to help me is SPREAD THE WORD! Tell a friend, share and episode or favorite code, but above all GET FOLKS TO SUBSCRIBE. The world is littered with podcasts that gave up after 9 episodes. There's a ton of average talks shows that ramble on. I've worked really hard - at night, as this is not my day job! - to not only bring you the best guests, but to read their papers, books, and thesis, and ask the questions that YOU would have if you were here with me! Sometimes I even put the Hanselminutes Podcast on YouTube and the results are truly special and heartbreakingly emotional. Thanks for listening, and thanks for sharing! Sponsor: YugabyteDB is a distributed SQL database designed for resilience and scale. It is 100% open source, PostgreSQL-compatible, enterprise-grade, and runs across all clouds. Sign up and get a free t-shirt© 2021 Scott Hanselman. All rights reserved.