question

Audi86 avatar image
0 Votes"
Audi86 asked saldana-msft edited

Is there anyway to extract powershell for steps performed in Azure portal?

Hi,
I am just wondering if there is anything out there which give us the powershell code of the steps we performed on Azure portal? for example if I am connecting to Azure and defining a conditional access policies so there is a code which is being generated on back end and I can extract it to use it for automation. Do we have anything available like that?

Regards,

microsoft-graph-identityazure-ad-conditional-access
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sam-Cogan avatar image
1 Vote"
Sam-Cogan answered

The Azure portal does not use PowerShell, it is call the Azure REST API's directly.
For Conditional Access you want to be looking at the *-azureadmsconditionalaccesspolicy cmdlets


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JamesTran-MSFT avatar image
0 Votes"
JamesTran-MSFT answered JamesTran-MSFT commented

@Audi86
Thank you for your post!

Adding onto what @Sam-Cogan mentioned, almost every operation within the Azure Portal is an Azure REST API request. However, when it comes to your question of - if there's anything you can use to get what steps were performed on Azure, to extract the information and use it for automation, you should be able to leverage Fiddler or the Windows Internet Explorer Developer Tools Network Capture for this.

Both the Fiddler and IE Developer Tool will help you debug web applications by capturing network traffic. However, in your specific scenario you can capture this network traffic to get your step-by-step list of what actions were performed and what REST API calls were made.

202543-image.png


I hope this helps!


If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.


Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.


image.png (74.2 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Audi86
I just wanted to check in and see if you had any other questions or if you were able to resolve this issue?

0 Votes 0 ·