Azure, DevOps and .NET articles

Empowering developers since 2015. Real articles, real insights.

DotNet61 Azure46 DevOps37 JavaScript23 VisualStudio17 CSS12 Jekyll8 Git8 All topics →

    Commit with multiple Git accounts automatically using includeIf

    git config --global user.email sets one identity for every repo on the machine. That’s fine until you push to more than one platform, or more than one account on the same platform.

    Read the complete article

    Always use --output tsv when storing an az CLI value in a variable

    To explain why to use the --output tsv, assume the example of assigning a role to a web app’s managed identity which fails with an error Cannot find user or service principal in graph database which looks like a permissions problem. The identity exists and the role name is right.

    So what is the problem here?

    Read the complete article

    Access Azure Storage from GitHub Actions with a Managed Identity

    In this tutorial, we will use OpenID Connect (OIDC) to authenticate GitHub Actions to an Azure Storage Account without storing long-lived client secrets. By establishing a federated credential, GitHub dynamically requests short-lived access tokens from Microsoft Entra ID by proving the workflow originates from a trusted repository, branch, or environment.

    Read the complete article

    Use AzCopy with a SAS token to copy data across Azure tenants

    A few days ago I had to copy blobs from a storage account in one Azure tenant to another storage account in a different tenant. As a pragmatic approach for this task I used azcopy together with a SAS token.

    SAS stands for Shared Access Signature, in simple terms, it is a temporary URL with limited permissions, so you can grant access to a storage resource without exposing the full account key. Using SAS can be useful when you just want to move data from one tenant to another without setting up a full identity and RBAC model for the job.

    Read the complete article

    How to rename a Git branch (locally and remotely)

    You want to rename a Git branch because of a typo or for any other reason? What if you already have pushed to the origin?

    In this article we check the available Git commands to achieve these tasks.

    Read the complete article