Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automation Accounts - Fetch the ARM template from DevOps Repository #39004

Closed
omerzubair opened this issue Sep 17, 2019 — with docs.microsoft.com · 6 comments
Closed

Automation Accounts - Fetch the ARM template from DevOps Repository #39004

omerzubair opened this issue Sep 17, 2019 — with docs.microsoft.com · 6 comments

Comments

Copy link

@omerzubair omerzubair commented Sep 17, 2019 — with docs.microsoft.com

Is there a way to directly fetch the ARM template from DevOps Repository? It will save me a process to copy the latest from DevOps to Storage Account.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@KrishnaG-MSFT

This comment has been minimized.

Copy link
Contributor

@KrishnaG-MSFT KrishnaG-MSFT commented Sep 17, 2019

@omerzubair Thanks for the comment. We are actively investigating on the issue and will get back to you shortly with an update.

@omerzubair

This comment has been minimized.

Copy link
Author

@omerzubair omerzubair commented Sep 19, 2019

Hi @KrishnaG-MSFT
I know i can use DevOps Pipeline to create resources from ARM templates to Azure subscription. However i am building all business logic in Azure Automation account running under the Azure AD APP.
I would like this Azure AD App to reach out to DevOps for latest ARM templates done by developers and deploy. This will save me a step to get stale ARM templates from Storage account.

@omerzubair omerzubair changed the title Fetch the ARM template from DevOps Repository Automation Accounts Fetch the ARM template from DevOps Repository Sep 20, 2019
@omerzubair omerzubair changed the title Automation Accounts Fetch the ARM template from DevOps Repository Automation Accounts - Fetch the ARM template from DevOps Repository Sep 20, 2019
@SwathiDhanwada-MSFT

This comment has been minimized.

Copy link
Contributor

@SwathiDhanwada-MSFT SwathiDhanwada-MSFT commented Sep 20, 2019

@omerzubair In order to fetch ARM template from DevOps repository,you can call REST API using Powershell.

To perform the authentication, you can create personal access token and get the token required to call the REST API that fetches the contents of the file.

Please note there might be other ways to retrieve templates from repository and here is one of the many i could think of.

At this point it appears that there's no edits or updates needed for the documentation. Closing this issue for now. If there are further questions regarding this matter or questions or feedback on the documentation, please do let us know and we will gladly continue the discussion.

@omerzubair

This comment has been minimized.

Copy link
Author

@omerzubair omerzubair commented Sep 20, 2019

Thanks for the suggestion.
If i leave organisation the personal access token will be expired. Is that correct?
Cheers

@KrishnaG-MSFT

This comment has been minimized.

Copy link
Contributor

@KrishnaG-MSFT KrishnaG-MSFT commented Sep 22, 2019

@omerzubair Once the user is removed from Azure AD, the PATs and FedAuth tokens are invalidated within an hour, since the refresh token is valid only for one hour. So I believe ideally sync stops after that period of time.

@omerzubair

This comment has been minimized.

Copy link
Author

@omerzubair omerzubair commented Sep 22, 2019

Hi @KrishnaG-MSFT,
So we should setup the sync as on-prem service account?
Bit similar to our other discussion :

#39296

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.