Removing the Private Link of a Storage Account

Removing the Private Link of a Storage Account

This article explains how to revert a private link azure storage account back to a public link one.

1.  Re-enable the "public network access" for the storage account as shown:

2.  Delete the “private endpoint” connection as shown:

A screenshot of a computer

AI-generated content may be incorrect.

2.  Generate a new SAS token for the storage account and then turn off the private link connection by using Create or Update Storage instance API and nullifying the privateLinkServiceConnection parameter in the API request as shown:

Notes
The following code snippet only shows how to use the nullifying parameter in Python. It might be different for other languages.

  1. import requests
  2. url = "https://api.mk.io/api/v1/projects/projectName/media/storage/storageAccountName"
  3. payload = { 
  4.     "spec": {
  5.         "credential": { 
  6.             "sasToken": "New SAS Token"
  7.         },
  8.         "privateLinkServiceConnection": None,  
  9.         "type": "Microsoft.Storage",
  10.         "url": "Storage Account URL"
  11.     } 
  12. }
  13. headers = {
  14.     "accept": "application/json",
  15.     "content-type": "application/json",
  16.     "authorization": "API Token"
  17. }
  18. response = requests.put(url, json=payload, headers=headers)
  19. print(response.status_code)
  20. print(response.text)


3.   Lastly, confirm and make sure that the new SAS token is in a validated state and that all the assets under the updated storage account are accessible.


    • Related Articles

    • First-Time Account Setup for MK.IO via Azure Marketplace/AWS Marketplace:

      This article explains how to create and activate your MK.IO account through the Azure/AWS Marketplace. It’s important to complete every step, especially filling in the Legal Information section to ensure your account gets approved and becomes active. ...
    • How to add storage account in MK.IO

      In this article, we will describe the steps to follow when you need to add the storage account, hosting all your AMS assets, in MK.IO. 2 main steps will happen: 1. Get your Storage Account access information: Follow the Step1 instructions of this ...
    • Updating Azure SAS Token for Asset Storage

      You have created a storage account in MK/IO by linking your Azure blob storage, linked a container and processed assets. However once the SAS token expires to the storage account, these assets will not be accessible until you edit/update the Storage ...
    • How to use MK.IO APIs - step by step

      Update December 2024: Note that https://docs.mk.io/docs/api-tokens describes the steps to manage personal tokens when using MK.IO APIs ...
    • Download files from an MK.IO Asset via API

      Introduction The MK.IO API allows users to download files stored in an asset. This is a two step process: Get file access information using the getFileAccessInfo API Use the information returned to access a specific file Pre-requisites: One or more ...