Skip to content

Commit 7ad4130

Browse files
committed
tabs
1 parent 566a1fb commit 7ad4130

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

articles/storage/common/migrate-azure-credentials.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ For local development, make sure you're authenticated with the same Azure AD acc
3131

3232
Next you need to update your code to use passwordless connections.
3333

34+
## [.NET](#tab/dotnet)
35+
3436
1. To use `DefaultAzureCredential` in a .NET application, add the **Azure.Identity** NuGet package to your application.
3537

3638
```dotnetcli
@@ -56,6 +58,8 @@ Next you need to update your code to use passwordless connections.
5658

5759
:::image type="content" source="../blobs/media/storage-quickstart-blobs-dotnet/storage-account-name.png" alt-text="Screenshot showing how to find the storage account name.":::
5860

61+
---
62+
5963
### Run the app locally
6064

6165
After making these code changes, run your application locally. The new configuration should pick up your local credentials, such as the Azure CLI, Visual Studio, or IntelliJ. The roles you assigned to your local dev user in Azure allows your app to connect to the Azure service locally.
@@ -153,6 +157,8 @@ If you connected your services using Service Connector you don't need to complet
153157

154158
You need to configure your application code to look for the specific managed identity you created when it is deployed to Azure. In some scenarios, explicitly setting the managed identity for the app also prevents other environment identities from accidentally being detected and used automatically.
155159

160+
## [.NET](#tab/dotnet)
161+
156162
1. On the managed identity overview page, copy the client ID value to your clipboard.
157163
1. Update the `DefaultAzureCredential` object in the `Program.cs` file of your app to specify this managed identity client ID.
158164

@@ -167,6 +173,8 @@ You need to configure your application code to look for the specific managed ide
167173
}));
168174
```
169175

176+
---
177+
170178
3. Redeploy your code to Azure after making this change in order for the configuration updates to be applied.
171179

172180
### Test the app

0 commit comments

Comments
 (0)