Skip to content

Commit 7a0bdae

Browse files
Merge pull request #245893 from cmcclister/Broken-link-fix-pauljewellmsft
Broken Links Fixed
2 parents d4afcaa + 45a41fc commit 7a0bdae

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

articles/storage/queues/queues-v11-samples-dotnet.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This article shows code samples that use version 11.x of the Azure Queue Storage
1919

2020
## Create a Queue Storage client
2121

22-
Related article: [Get started with Azure Queue Storage using .NET](storage-dotnet-how-to-use-queues.md#create-the-queue-storage-client)
22+
Related article: [Get started with Azure Queue Storage using .NET](storage-quickstart-queues-dotnet.md?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
2323

2424
The [`CloudQueueClient`](/dotnet/api/microsoft.azure.storage.queue.cloudqueueclient?view=azure-dotnet-legacy&preserve-view=true) class enables you to retrieve queues stored in Queue Storage. Here's one way to create the service client:
2525

@@ -34,7 +34,7 @@ CloudQueueClient queueClient = storageAccount.CreateCloudQueueClient();
3434

3535
## Create a queue
3636

37-
Related article: [Get started with Azure Queue Storage using .NET](storage-dotnet-how-to-use-queues.md#create-a-queue)
37+
Related article: [Get started with Azure Queue Storage using .NET](storage-quickstart-queues-dotnet.md?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
3838

3939
This example shows how to create a queue:
4040

@@ -55,7 +55,7 @@ queue.CreateIfNotExists();
5555

5656
## Insert a message into a queue
5757

58-
Related article: [Get started with Azure Queue Storage using .NET](storage-dotnet-how-to-use-queues.md#insert-a-message-into-a-queue)
58+
Related article: [Get started with Azure Queue Storage using .NET](storage-quickstart-queues-dotnet.md?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
5959

6060
To insert a message into an existing queue, first create a new [`CloudQueueMessage`](/dotnet/api/microsoft.azure.storage.queue.cloudqueuemessage?view=azure-dotnet-legacy&preserve-view=true). Next, call the [`AddMessage`](/dotnet/api/microsoft.azure.storage.queue.cloudqueue.addmessage?view=azure-dotnet-legacy&preserve-view=true) method. A `CloudQueueMessage` can be created from either a string (in UTF-8 format) or a byte array. The following code example creates a queue (if it doesn't already exist) and inserts the message `Hello, World`:
6161

@@ -80,7 +80,7 @@ queue.AddMessage(message);
8080

8181
## Peek at the next message
8282

83-
Related article: [Get started with Azure Queue Storage using .NET](storage-dotnet-how-to-use-queues.md#peek-at-the-next-message)
83+
Related article: [Get started with Azure Queue Storage using .NET](storage-quickstart-queues-dotnet.md?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
8484

8585
You can peek at the message in the front of a queue without removing it from the queue by calling the [`PeekMessage`](/dotnet/api/microsoft.azure.storage.queue.cloudqueue.peekmessage?view=azure-dotnet-legacy&preserve-view=true) method.
8686

@@ -104,7 +104,7 @@ Console.WriteLine(peekedMessage.AsString);
104104

105105
## Change the contents of a queued message
106106

107-
Related article: [Get started with Azure Queue Storage using .NET](storage-dotnet-how-to-use-queues.md#change-the-contents-of-a-queued-message)
107+
Related article: [Get started with Azure Queue Storage using .NET](storage-quickstart-queues-dotnet.md?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
108108

109109
```csharp
110110
// Retrieve storage account from connection string.
@@ -127,7 +127,7 @@ queue.UpdateMessage(message,
127127

128128
## Dequeue the next message
129129

130-
Related article: [Get started with Azure Queue Storage using .NET](storage-dotnet-how-to-use-queues.md#dequeue-the-next-message)
130+
Related article: [Get started with Azure Queue Storage using .NET](storage-quickstart-queues-dotnet.md?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
131131

132132
Your code dequeues a message from a queue in two steps. When you call [`GetMessage`](/dotnet/api/microsoft.azure.storage.queue.cloudqueue.getmessage?view=azure-dotnet-legacy&preserve-view=true), you get the next message in a queue. A message returned from `GetMessage` becomes invisible to any other code reading messages from this queue. By default, this message stays invisible for 30 seconds. To finish removing the message from the queue, you must also call [`DeleteMessage`](/dotnet/api/microsoft.azure.storage.queue.cloudqueue.deletemessage?view=azure-dotnet-legacy&preserve-view=true). This two-step process of removing a message assures that if your code fails to process a message due to hardware or software failure, another instance of your code can get the same message and try again. Your code calls `DeleteMessage` right after the message has been processed.
133133

@@ -151,7 +151,7 @@ queue.DeleteMessage(retrievedMessage);
151151

152152
## Use the async-await pattern with common Queue Storage APIs
153153

154-
Related article: [Get started with Azure Queue Storage using .NET](storage-dotnet-how-to-use-queues.md#use-the-async-await-pattern-with-common-queue-storage-apis)
154+
Related article: [Get started with Azure Queue Storage using .NET](storage-quickstart-queues-dotnet.md?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
155155

156156
```csharp
157157
// Create the queue if it doesn't already exist
@@ -182,7 +182,7 @@ Console.WriteLine("Deleted message");
182182

183183
## Use additional options for dequeuing messages
184184

185-
Related article: [Get started with Azure Queue Storage using .NET](storage-dotnet-how-to-use-queues.md#use-additional-options-for-dequeuing-messages)
185+
Related article: [Get started with Azure Queue Storage using .NET](storage-quickstart-queues-dotnet.md?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
186186

187187
The following code example uses the [`GetMessages`](/dotnet/api/microsoft.azure.storage.queue.cloudqueue.getmessages?view=azure-dotnet-legacy&preserve-view=true) method to get 20 messages in one call. Then it processes each message using a `foreach` loop. It also sets the invisibility timeout to five minutes for each message. The timeout starts for all messages at the same time, so after five minutes have passed since the call to `GetMessages`, any messages that haven't been deleted will become visible again.
188188

@@ -206,7 +206,7 @@ foreach (CloudQueueMessage message in queue.GetMessages(20, TimeSpan.FromMinutes
206206

207207
## Get the queue length
208208

209-
Related article: [Get started with Azure Queue Storage using .NET](storage-dotnet-how-to-use-queues.md#get-the-queue-length)
209+
Related article: [Get started with Azure Queue Storage using .NET](storage-quickstart-queues-dotnet.md?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
210210

211211
You can get an estimate of the number of messages in a queue. The [`FetchAttributes`](/dotnet/api/microsoft.azure.storage.queue.cloudqueue.fetchattributes?view=azure-dotnet-legacy&preserve-view=true) method returns queue attributes including the message count. The [`ApproximateMessageCount`](/dotnet/api/microsoft.azure.storage.queue.cloudqueue.approximatemessagecount?view=azure-dotnet-legacy&preserve-view=true) property returns the last value retrieved by the `FetchAttributes` method, without calling Queue Storage.
212212

@@ -233,7 +233,7 @@ Console.WriteLine("Number of messages in queue: " + cachedMessageCount);
233233

234234
## Delete a queue
235235

236-
Related article: [Get started with Azure Queue Storage using .NET](storage-dotnet-how-to-use-queues.md#delete-a-queue)
236+
Related article: [Get started with Azure Queue Storage using .NET](storage-quickstart-queues-dotnet.md?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
237237

238238
To delete a queue and all the messages contained in it, call the [`Delete`](/dotnet/api/microsoft.azure.storage.queue.cloudqueue.delete?view=azure-dotnet-legacy&preserve-view=true) method on the queue object.
239239

articles/storage/queues/queues-v2-samples-python.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This article shows code samples that use version 2 of the Azure Queue Storage cl
1919

2020
## Create a queue
2121

22-
Related article: [Get started with Azure Queue Storage using Python](storage-python-how-to-use-queue-storage.md#create-a-queue)
22+
Related article: [Get started with Azure Queue Storage using Python](storage-quickstart-queues-python.md?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2C)
2323

2424
Add the following `import` directives:
2525

@@ -61,7 +61,7 @@ queue_service.decode_function = QueueMessageFormat.binary_base64decode
6161

6262
## Insert a message into a queue
6363

64-
Related article: [Get started with Azure Queue Storage using Python](storage-python-how-to-use-queue-storage.md#insert-a-message-into-a-queue)
64+
Related article: [Get started with Azure Queue Storage using Python](storage-quickstart-queues-python.md?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
6565

6666
To insert a message into a queue, use the [`put_message`](/azure/developer/python/sdk/storage/azure-storage-queue/azure.storage.queue.queueservice.queueservice?view=storage-py-v2&preserve-view=true#put-message-queue-name--content--visibility-timeout-none--time-to-live-none--timeout-none-) method to create a new message and add it to the queue.
6767

@@ -73,7 +73,7 @@ queue_service.put_message(queue_name, message)
7373

7474
## Peek at messages
7575

76-
Related article: [Get started with Azure Queue Storage using Python](storage-python-how-to-use-queue-storage.md#peek-at-messages)
76+
Related article: [Get started with Azure Queue Storage using Python](storage-quickstart-queues-python.md?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
7777

7878
You can peek at messages without removing them from the queue by calling the [`peek_messages`](/azure/developer/python/sdk/storage/azure-storage-queue/azure.storage.queue.queueservice.queueservice?view=storage-py-v2&preserve-view=true#peek-messages-queue-name--num-messages-none--timeout-none-) method. By default, this method peeks at a single message.
7979

@@ -86,7 +86,7 @@ for peeked_message in messages:
8686

8787
## Change the contents of a queued message
8888

89-
Related article: [Get started with Azure Queue Storage using Python](storage-python-how-to-use-queue-storage.md#change-the-contents-of-a-queued-message)
89+
Related article: [Get started with Azure Queue Storage using Python](storage-quickstart-queues-python.md?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
9090

9191
The following code uses the [`update_message`](/azure/developer/python/sdk/storage/azure-storage-queue/azure.storage.queue.queueservice.queueservice?view=storage-py-v2&preserve-view=true#update-message-queue-name--message-id--pop-receipt--visibility-timeout--content-none--timeout-none-) method to update a message. The visibility timeout is set to 0, meaning the message appears immediately and the content is updated.
9292

@@ -100,7 +100,7 @@ for message in messages:
100100

101101
## Get the queue length
102102

103-
Related article: [Get started with Azure Queue Storage using Python](storage-python-how-to-use-queue-storage.md#get-the-queue-length)
103+
Related article: [Get started with Azure Queue Storage using Python](storage-quickstart-queues-python.md?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
104104

105105
The [`get_queue_metadata`](/azure/developer/python/sdk/storage/azure-storage-queue/azure.storage.queue.queueservice.queueservice?view=storage-py-v2&preserve-view=true#get-queue-metadata-queue-name--timeout-none-) method returns queue properties including `approximate_message_count`.
106106

@@ -114,7 +114,7 @@ The result is only approximate because messages can be added or removed after th
114114

115115
## Dequeue messages
116116

117-
Related article: [Get started with Azure Queue Storage using Python](storage-python-how-to-use-queue-storage.md#dequeue-messages)
117+
Related article: [Get started with Azure Queue Storage using Python](storage-quickstart-queues-python.md?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
118118

119119
When you call [get_messages](/azure/developer/python/sdk/storage/azure-storage-queue/azure.storage.queue.queueservice.queueservice?view=storage-py-v2&preserve-view=true#get-messages-queue-name--num-messages-none--visibility-timeout-none--timeout-none-), you get the next message in the queue by default. A message returned from `get_messages` becomes invisible to any other code reading messages from this queue. By default, this message stays invisible for 30 seconds. To finish removing the message from the queue, you must also call [delete_message](/azure/developer/python/sdk/storage/azure-storage-queue/azure.storage.queue.queueservice.queueservice?view=storage-py-v2&preserve-view=true#delete-message-queue-name--message-id--pop-receipt--timeout-none-).
120120

@@ -140,7 +140,7 @@ for message in messages:
140140

141141
## Delete a queue
142142

143-
Related article: [Get started with Azure Queue Storage using Python](storage-python-how-to-use-queue-storage.md#delete-a-queue)
143+
Related article: [Get started with Azure Queue Storage using Python](storage-quickstart-queues-python.md?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
144144

145145
To delete a queue and all the messages contained in it, call the [`delete_queue`](/azure/developer/python/sdk/storage/azure-storage-queue/azure.storage.queue.queueservice.queueservice?view=storage-py-v2&preserve-view=true#delete-queue-queue-name--fail-not-exist-false--timeout-none-) method.
146146

articles/storage/queues/queues-v8-samples-java.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This article shows code samples that use version 8 of the Azure Queue Storage cl
1919

2020
## Create a queue
2121

22-
Related article: [Get started with Azure Queue Storage using Java](storage-java-how-to-use-queue-storage.md#how-to-create-a-queue)
22+
Related article: [Get started with Azure Queue Storage using Java](storage-quickstart-queues-java.md?tabs=powershell%2Cpasswordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
2323

2424
Add the following `import` directives:
2525

@@ -58,7 +58,7 @@ catch (Exception e)
5858

5959
## Add a message to a queue
6060

61-
Related article: [Get started with Azure Queue Storage using Java](storage-java-how-to-use-queue-storage.md#how-to-add-a-message-to-a-queue)
61+
Related article: [Get started with Azure Queue Storage using Java](storage-quickstart-queues-java.md?tabs=powershell%2Cpasswordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
6262

6363
To insert a message into an existing queue, first create a new `CloudQueueMessage`. Next, call the `addMessage` method. A `CloudQueueMessage` can be created from either a string (in UTF-8 format) or a byte array. The following code example creates a queue (if it doesn't exist) and inserts the message `Hello, World`.
6464

@@ -91,7 +91,7 @@ catch (Exception e)
9191

9292
## Peek at the next message
9393

94-
Related article: [Get started with Azure Queue Storage using Java](storage-java-how-to-use-queue-storage.md#how-to-peek-at-the-next-message)
94+
Related article: [Get started with Azure Queue Storage using Java](storage-quickstart-queues-java.md?tabs=powershell%2Cpasswordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
9595

9696
You can peek at the message in the front of a queue without removing it from the queue by calling `peekMessage`.
9797

@@ -126,7 +126,7 @@ catch (Exception e)
126126

127127
## Change the contents of a queued message
128128

129-
Related article: [Get started with Azure Queue Storage using Java](storage-java-how-to-use-queue-storage.md#how-to-change-the-contents-of-a-queued-message)
129+
Related article: [Get started with Azure Queue Storage using Java](storage-quickstart-queues-java.md?tabs=powershell%2Cpasswordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
130130

131131
The following code sample searches through the queue of messages, locates the first message content that matches `Hello, world`, modifies the message content, and exits.
132132

@@ -210,7 +210,7 @@ catch (Exception e)
210210

211211
## Get the queue length
212212

213-
Related article: [Get started with Azure Queue Storage using Java](storage-java-how-to-use-queue-storage.md#how-to-get-the-queue-length)
213+
Related article: [Get started with Azure Queue Storage using Java](storage-quickstart-queues-java.md?tabs=powershell%2Cpasswordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
214214

215215
The `downloadAttributes` method retrieves several values including the number of messages currently in a queue. The count is only approximate because messages can be added or removed after your request. The `getApproximateMessageCount` method returns the last value retrieved by the call to `downloadAttributes`, without calling Queue Storage.
216216

@@ -245,7 +245,7 @@ catch (Exception e)
245245

246246
## Dequeue the next message
247247

248-
Related article: [Get started with Azure Queue Storage using Java](storage-java-how-to-use-queue-storage.md#how-to-dequeue-the-next-message)
248+
Related article: [Get started with Azure Queue Storage using Java](storage-quickstart-queues-java.md?tabs=powershell%2Cpasswordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
249249

250250
Your code dequeues a message from a queue in two steps. When you call `retrieveMessage`, you get the next message in a queue. A message returned from `retrieveMessage` becomes invisible to any other code reading messages from this queue. By default, this message stays invisible for 30 seconds. To finish removing the message from the queue, you must also call `deleteMessage`. If your code fails to process a message, this two-step process ensures that you can get the same message and try again. Your code calls `deleteMessage` right after the message has been processed.
251251

@@ -280,7 +280,7 @@ catch (Exception e)
280280

281281
## Additional options for dequeuing messages
282282

283-
Related article: [Get started with Azure Queue Storage using Java](storage-java-how-to-use-queue-storage.md#additional-options-for-dequeuing-messages)
283+
Related article: [Get started with Azure Queue Storage using Java](storage-quickstart-queues-java.md?tabs=powershell%2Cpasswordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
284284

285285
The following code example uses the `retrieveMessages` method to get 20 messages in one call. Then it processes each message using a `for` loop. It also sets the invisibility timeout to five minutes (300 seconds) for each message. The timeout starts for all messages at the same time. When five minutes have passed since the call to `retrieveMessages`, any messages not deleted becomes visible again.
286286

@@ -313,7 +313,7 @@ catch (Exception e)
313313

314314
## List the queues
315315

316-
Related article: [Get started with Azure Queue Storage using Java](storage-java-how-to-use-queue-storage.md#how-to-list-the-queues)
316+
Related article: [Get started with Azure Queue Storage using Java](storage-quickstart-queues-java.md?tabs=powershell%2Cpasswordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
317317

318318
To obtain a list of the current queues, call the `CloudQueueClient.listQueues()` method, which returns a collection of `CloudQueue` objects.
319319

@@ -344,7 +344,7 @@ catch (Exception e)
344344

345345
## Delete a queue
346346

347-
Related article: [Get started with Azure Queue Storage using Java](storage-java-how-to-use-queue-storage.md#how-to-delete-a-queue)
347+
Related article: [Get started with Azure Queue Storage using Java](storage-quickstart-queues-java.md?tabs=powershell%2Cpasswordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in-azure-cli)
348348

349349
To delete a queue and all the messages contained in it, call the `deleteIfExists` method on the `CloudQueue` object.
350350

0 commit comments

Comments
 (0)