azure

AAD B2C MSAL for python Token Validation without the public key in JWKS_URI

AAD B2C MSAL for python Token Validation without the public key in JWKS_URI Question: Hello Everyone I could REALLY use some help on this. When trying to validate my token using this code from MSAL library https://github.com/AzureAD/microsoft-authentication-library-for-python cache = _load_cache() # This web app maintains one cache per session cca = _build_msal_app(cache=cache) accounts = cca.get_accounts() …

Total answers: 2

Extract team members from Azure DevOps via API

Extract team members from Azure DevOps via API Question: i’m trying to make a simple API call from python to azure DevOps: just take the members of a team from an Azure DevOps project using the simple and yet elegant http library called Requests https://pypi.org/project/requests/. Following this documentation from Azure to get the correct API …

Total answers: 2

How to transfer a csv file from notebook folder to a datastore

How to transfer a csv file from notebook folder to a datastore Question: I want to transfer a generated csv file test_df.csv from my Azure ML notebook folder which has a path /Users/Ankit19.Gupta/test_df.csv to a datastore which has a web path https://abc.blob.core.windows.net/azureml/LocalUpload/f3db18b6. I have written the python code as from azureml.core import Workspace ws = …

Total answers: 1

Export a Spark Dataframe (pyspark.pandas.Dataframe) to Excel file from Azure DataBricks

Export a Spark Dataframe (pyspark.pandas.Dataframe) to Excel file from Azure DataBricks Question: I’m struggling with the export of a pyspark.pandas.Dataframe to an Excel file. I’m working on an Azure Databricks Notebook with Pyspark. My goal is to read a csv file from Azure Data Lake Storage container and store it as a Excel file on …

Total answers: 3

Irregular runtime error occurred when calling ssml_to_speech_async in aspeak

Irregular runtime error occurred when calling ssml_to_speech_async in aspeak Question: An RuntimeError occurred while calling ssml_to_speech_async of the instance of SpeechToFileService in aspeak in python. This error seemed to occurred randomly. Even if args and environment is absolutely same, it doesn’t occur every time. Sometimes when I reboot the computer or test next day, the …

Total answers: 1

ModuleNotFoundError while importing python files as modules in Azure App Services

ModuleNotFoundError while importing python files as modules in Azure App Services Question: I am getting started with Azure App Services. I followed this tutorial and was able to get the example main.py app running. The modules (fastapi, uvicorn, etc…) specified in the requirements.txt are all installed and imported correctly. However, when trying to import Python …

Total answers: 2

Publishing python package into azure artifacts

Publishing python package into azure artifacts Question: Due to poor documentation I’m suffering alot to upload my Python Package to my internal Azure Artifacts: I have followed exactly like this Twine authenticate was successful however unable to upload to feed as it keeps asking username! Is my setup correct? I need to self authenticate the …

Total answers: 2

TypeError: string indices must be integers – while trying to read secret

TypeError: string indices must be integers – while trying to read secret Question: I try to read the value of my secret, which is in Azure key vault. To achieve this aim I try this code from here: from azure.identity import DefaultAzureCredential from azure.keyvault.secrets import SecretClient # Create a SecretClient using default Azure credentials credential …

Total answers: 1

Azure Durable function : Runtime Exception with non-None return value

Azure Durable function : Runtime Exception with non-None return value Question: I have been facing an issue with Azure Durable functions, which when executed from my laptop machine runs fine. When i deploy the code , i am being popped up with an runtime exception . Here is the main orchestrator flow #ProcessBlob and generate …

Total answers: 2

Getting Bad request while searching run in mlflow

Getting Bad request while searching run in mlflow Question: Training a ml model with mlflow in azure environment. import mlflow from mlflow import MlflowClient from azureml.core import Experiment, Workspace experiment_name = ‘housing-lin-mlflow’ experiment = Experiment(ws, experiment_name) runs = mlflow.search_runs(experiment_ids=[ experiment.id ]) While fetching runs from search_runs getting this error : RestException: BAD_REQUEST: For input string: …

Total answers: 1