Hello @Luciano pai do Miguel ,
welcome to this moderated Azure community forum.
Can you be more specific? Are you interested in generating these SAS tokens?
Example code is offered in multiple programming languages, C#, Node.Js, Python, and Java:
A powershell command example is not offered but you can also generate SAS tokens with the CLI extension command 'az iot hub generate-sas-token'.
You can set the duration if needed:
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.