async def METHOD_NAME():
    # Instantiate a secret client that will be used to call the service.
    # Here we use the DefaultAzureCredential, but any azure-identity credential can be used.
    VAULT_URL = os.environ["VAULT_URL"]
    credential = DefaultAzureCredential()
    client = SecretClient(vault_url=VAULT_URL, credential=credential)
    # Let's create a secret holding bank account credentials valid for 1 year.
    # if the secret already exists in the key vault, then a new version of the secret is created.
    print("\n.. Create Secret")
    expires_on = datetime.datetime.utcnow() + datetime.timedelta(days=365)
    secret = await client.set_secret("helloWorldSecretNameAsync", "helloWorldSecretValue", expires_on=expires_on)
    print(f"Secret with name '{secret.name}' created with value '{secret.value}'")
    print(f"Secret with name '{secret.name}' expires on '{secret.properties.expires_on}'")
    # Let's get the bank secret using its name
    print("\n.. Get a Secret by name")
    bank_secret = await client.get_secret(secret.name)
    print(f"Secret with name '{bank_secret.name}' was found with value '{bank_secret.value}'.")
    # After one year, the bank account is still active, we need to update the expiry time of the secret.
    # The update method can be used to update the expiry attribute of the secret. It cannot be used to update
    # the value of the secret.
    print("\n.. Update a Secret by name")
    expires_on = bank_secret.properties.expires_on + datetime.timedelta(days=365)
    updated_secret_properties = await client.update_secret_properties(secret.name, expires_on=expires_on)
    print(
        f"Secret with name '{updated_secret_properties.name}' was updated on date "
        f"'{updated_secret_properties.updated_on}'"
    )
    print(
        f"Secret with name '{updated_secret_properties.name}' was updated to expire on "
        f"'{updated_secret_properties.expires_on}'"
    )
    # Bank forced a password update for security purposes. Let's change the value of the secret in the key vault.
    # To achieve this, we need to create a new version of the secret in the key vault. The update operation cannot
    # change the value of the secret.
    new_secret = await client.set_secret(secret.name, "newSecretValueAsync")
    print(f"Secret with name '{new_secret.name}' created with value '{new_secret.value}'")
    # The bank account was closed, need to delete its credentials from the Key Vault.
    print("\n.. Deleting Secret...")
    deleted_secret = await client.delete_secret(secret.name)
    print(f"Secret with name '{deleted_secret.name}' was deleted.")
    print("\nrun_sample done")
    await credential.close()
    await client.close()