in Education by
I just want to know whether a blob exists in a particular container or not. Simple question right! I'll download it if yes else I'll do something else . I've done a lot of research but it seems that it doesn't exist. Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Good news for you. It does exist in the new API. You can use exists () function call. Just remember to use GetBlockBlobReference which doesn't perform the call to the server. You can use the given syntax: public static bool BlobExists(CloudBlobClient client, string containerNaHow to get the azure account tenant Id? me, string key) { return client.GetContainerReference(containerName) .GetBlockBlobReference(key) .Exists(); You can learn more about various types of Azure storage on Azure Storage Tutorial.

Related questions

0 votes
    So the scenario is the following: I have multiple instances of a web service that writes a blob of data to ... other unknown issues? Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    How can I delete the associated account with the virtual machines On the preview portal on deleting the storage account ... as well. Select the correct answer from above options...
asked Jan 20, 2022 in Education by JackTerrance
0 votes
    When should I use SQL Azure and when should I use table Storage? I was thinking, use table storage for transaction ... do you think? Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    I'm trying to make a web-based .NET application from scratch. I'm considering using Microsoft Azure to host it ... advice for using it. Select the correct answer from above options...
asked Jan 20, 2022 in Education by JackTerrance
0 votes
    Azure Traffic manager receives a query from _____________. A. Endpoint B. Client C. Routing Method D. All the options...
asked Nov 21, 2022 in Education by JackTerrance
0 votes
    Which endpoint is used for Non-Azure services? A. External Endpoint B. Nested Endpoint C. Azure Endpoints D. All the options...
asked Nov 21, 2022 in Education by JackTerrance
0 votes
    How many endpoints are there in Azure Traffic Manager? A. 1 B. 2 C. 3 D. 4...
asked Nov 21, 2022 in Education by JackTerrance
0 votes
    Azure DNS is the same as Domain Registrar. A. True B. False...
asked Nov 21, 2022 in Education by JackTerrance
0 votes
    Azure Virtual Networks can be created using _________. A. Azure CLI B. Azure Portal C. Azure Powershell D. All the options...
asked Nov 21, 2022 in Education by JackTerrance
0 votes
    A company is planning on hosting an application on an Azure Virtual Machine. It needs to be ensured that the application ... plan. Would this satisfy the requirement A. Yes B. No...
asked Nov 20, 2022 in Education by JackTerrance
0 votes
    In Azure, a public address can be assigned to _____________. A. VPN Gateway B. Application Gateway C. VM D. All the options...
asked Nov 20, 2022 in Education by JackTerrance
0 votes
    You need to ensure that Azure DNS can resolve names for your registered domain. What should you implement? A. An MX Record B. A Secondary Zone C. A CNAME Record D. Zone Delegation...
asked Nov 20, 2022 in Education by JackTerrance
0 votes
    Azure takes care of ___________. A. Subnet allocation B. VM IP range allocation C. DNS resolution D. Underlying routing...
asked Nov 20, 2022 in Technology by JackTerrance
0 votes
    I was doing an arm template deployment of Azure data factory from dev-ops pipelines. Mistakenly I have ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
0 votes
    I was doing an arm template deployment of Azure data factory from dev-ops pipelines. Mistakenly I have ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
...