Python

Python Programming Language

Web Resources

4/15/2024, Azure PaaS Blog
Background This article describes how to migrate all Azure Storage Queues data between two different storage accounts.   For this, we will use Azure Storage SDK for Python to copy all queues (and the respective data) from one Azure Storage Queue to another Azure Storage Queue. This approach will keep the data in the source queues, and will create new queues with the respective data in the destination Azure Storage Queue.   This script was developed and tested using the following versions but it is expected to work with previous versions: Python 3.11.7 azure-identity (version:...
4/15/2024, Azure PaaS Blog
Background This article describes how to copy all Azure Storage Queues data between two different storage accounts.   For this, we will use Azure Storage SDK for Python to copy all queues (and the respective data) from one Azure Storage Queue to another Azure Storage Queue. This approach will keep the data in the source queues, and will create new queues with the respective data in the destination Azure Storage Queue.   This script was developed and tested using the following versions but it is expected to work with previous versions: Python 3.11.7 azure-identity (version:...
11/15/2023, Azure PaaS Blog
Background   This article describes how to identify the blobs with index tags and how to remove those tags using the Blob Inventory Service and Python SDK.    Approach   This article is divided into two sections. These sections are independent, which means that you can perform the steps in section 1 and not perform the steps in section 2, or vice versa: Use the Blob Inventory service to identify the blobs with index tags You should follow the steps in this section if you want to know/identify which blobs in your Storage Account have index tags, and to know which index tags are...
10/19/2023, Azure PaaS Blog
Managing Azure Policies through Python SDK   Azure Policy helps to enforce organizational standards and to assess compliance at-scale. It also helps to bring your resources to compliance through bulk remediation for existing resources and automatic remediation for added resources.   Common use cases for Azure Policy include implementing governance for resource consistency, regulatory compliance, security, cost, and management. Policy definitions for these common use cases are already available in your Azure environment as built-ins to help you get started. Specifically, some useful...
7/31/2023, Azure PaaS Blog
Background Information   While the our work environments became more and more complex, the need of automation is a fact. Therefore ,I made a demo on how you can automate various administrative tasks performed on a Service Fabric Cluster using the sfctl module and trigger them via Azure Function. On Function, we deploy a Docker Container that has all the necessary tools and permissions to access SF Cluster. The Azure Service Fabric command-line interface (CLI) is a command-line utility for interacting with and managing Service Fabric entities, like cluster, applications and services....
3/30/2023, Azure PaaS Blog
Scenario: Calls to Service Bus and Event Hub failing with Server Error \ Internal Server Error \ HTTP Error 500 Errors.   Issue Description: SB\EH API calls by the client application (usually sender or consumer) fails with Internal Server Error. The corresponding exception messages are something like this – “The server was unable to process the request due to an internal error”. The exception type and exception messages may vary somewhat based on the programming language of the SDK, SDK version, Wrappers, etc. There are a lot of frequently asked questions related to the Server Error and I...
3/10/2023, Azure PaaS Blog
Sometimes, users will need to install some necessary software/packages in the environment before the task is executed. This can be easily done by using Start task feature of Azure Batch.   But when there are many dependencies to be installed, for example 20 packages in Linux and the installation of some of them will take long time such as Tensorflow, it will cause additional problems such as long start task running time when Azure Batch starts Batch node every time or even possible timeout issue or start task failure issue.   In order to avoid this issue, user has two options: Custom...