def main()

in sample-Python-KeyVault-Function/init-with-msi.py [0:0]


def main(req: func.HttpRequest) -> func.HttpResponse:
    logging.info('Python HTTP trigger function processed a request.')
    secret_bundle = client.get_secret("https://<YOUR VAULT NAME>.vault.azure.net/", "<SECRET NAME>", "<SECRET VERSION>")
    return func.HttpResponse(f"{secret_bundle.value}!")