Skip to content

Fix more broken links #38403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions docs/azure/sdk/resource-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ using Azure.ResourceManager.ServiceBus;

ArmClient client = new ArmClient(new DefaultAzureCredential());
SubscriptionResource subscription = client.GetDefaultSubscription();
ResourceGroupResource resourceGroup =
ResourceGroupResource resourceGroup =
client.GetDefaultSubscription().GetResourceGroup(resourceGroupName);
```

Expand Down Expand Up @@ -157,7 +157,7 @@ ArmClient client = new ArmClient(new DefaultAzureCredential());
// Next we get a resource group object
// ResourceGroup is a {ResourceName}Resource object from above
SubscriptionResource subscription = await client.GetDefaultSubscriptionAsync();
ResourceGroupResource resourceGroup =
ResourceGroupResource resourceGroup =
await subscription.GetResourceGroupAsync("myRgName");

// Next we get the collection for the virtual machines
Expand Down Expand Up @@ -199,16 +199,16 @@ However, keep in mind that some of those properties could be null. You can usual
You may not want to manually create the `resourceId` from a pure `string`. Each `{ResourceName}Resource` class has a static method that can help you create the resource identifier string.

```csharp
ResourceIdentifier resourceId =
ResourceIdentifier resourceId =
AvailabilitySetResource.CreateResourceIdentifier(
"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"resourceGroupName",
"resourceName");
"resourceGroupName",
"resourceName");
```

#### Manage existing resources

Performing operations on resources that already exist is a common use case when using the management client libraries. In this scenario, you usually have the identifier of the resource you want to work on as a string. Although the new object hierarchy is great for provisioning and working within the scope of a given parent, it is not the most efficient when it comes to this specific scenario.
Performing operations on resources that already exist is a common use case when using the management client libraries. In this scenario, you usually have the identifier of the resource you want to work on as a string. Although the new object hierarchy is great for provisioning and working within the scope of a given parent, it is not the most efficient when it comes to this specific scenario.

Here's an example how you can access an `AvailabilitySetResource` object and manage it directly with its resource identifier:

Expand Down Expand Up @@ -247,11 +247,11 @@ This approach required a lot of code and three API calls are made to Azure. The
So, the previous example would end up looking like this:

```csharp
ResourceIdentifier resourceId =
ResourceIdentifier resourceId =
AvailabilitySetResource.CreateResourceIdentifier(
"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"resourceGroupName",
"resourceName");
"resourceName");
// We construct a new armClient to work with
ArmClient client = new ArmClient(new DefaultAzureCredential());
// Next we get the AvailabilitySet resource client from the armClient
Expand Down Expand Up @@ -377,8 +377,8 @@ For more detailed examples, take a look at [samples](https://github.com/Azure/az

### More sample code

- [Managing Resource Groups](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/samples/Sample2_ManagingResourceGroups.md)
- [Creating a Virtual Network](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/samples/Sample3_CreatingAVirtualNetwork.md)
- [Managing Resource Groups](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/samples/DocSamples/Sample2_ManagingResourceGroups.cs)
- [Creating a Virtual Network](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/samples/DocSamples/Sample3_CreatingAVirtualNetwork.cs)
- [.NET Management Library Code Samples](/samples/browse/?languages=csharp&terms=managing%20using%20Azure%20.NET%20SDK)

### Additional Documentation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@ if(activity != null)
```

- OpenTelemetry provides a set of recommended
[conventions](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/README.md)
[conventions](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/trace.md)
for setting Tags on Activities that represent common types of application work.

- If you are instrumenting functions with high-performance requirements,
- If you're instrumenting functions with high-performance requirements,
<xref:System.Diagnostics.Activity.IsAllDataRequested?displayProperty=nameWithType> is a hint that indicates whether any
of the code listening to Activities intends to read auxiliary information such as Tags. If no listener will read it, then there
is no need for the instrumented code to spend CPU cycles populating it. For simplicity, this sample doesn't apply that
Expand Down
3 changes: 1 addition & 2 deletions docs/whats-new/dotnet-docs-mod0.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ The following people contributed to the .NET docs during this period. Thank you!
- [AptiviCEO](https://github.com/AptiviCEO) - Aptivi CEO ![2 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-2-green)
- [BartoszKlonowski](https://github.com/BartoszKlonowski) - Bartosz Klonowski ![2 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-2-green)
- [bergerb](https://github.com/bergerb) - Brent ![2 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-2-green)
- [nitishwebgentle](https://github.com/nitishwebgentle) - Nitish Kumar | Microsoft MVP ![2 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-2-green)
- nitishwebgentle - Nitish Kumar | Microsoft MVP ![2 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-2-green)
- [0xced](https://github.com/0xced) - Cédric Luthi ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green)
- [AdrianoAE](https://github.com/AdrianoAE) - AdrianoAE ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green)
- [afscrome](https://github.com/afscrome) - Alex Crome ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green)
Expand All @@ -116,7 +116,6 @@ The following people contributed to the .NET docs during this period. Thank you!
- [JimmyCushnie](https://github.com/JimmyCushnie) - Jimmy Cushnie ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green)
- [kblok](https://github.com/kblok) - Darío Kondratiuk ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green)
- [Kiruyuto](https://github.com/Kiruyuto) - Hubert ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green)
- [learn-build-service-prod](https://github.com/learn-build-service-prod) - ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green)
- [lemonez](https://github.com/lemonez) - Ezra Citron ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green)
- [licon4812](https://github.com/licon4812) - James Alickolli ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green)
- [meziantou](https://github.com/meziantou) - Gérald Barré ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green)
Expand Down