Download Azure Cloud Services package and configuration without REST API - rest

Is there any way to download Azure Cloud Services package and configuration files without using Azure REST API?
Thank you in advance

As far as I know, if you want to get the Azure Cloud Services configuration, you could use portal directly download it.
You could open azure portal and find the Configuration and click download. It is the configuration files.
Details you could refer to this image:
But if you want to download the Azure Cloud Services package, I think you could only using azure rest api to download it.
Besides, the Azure Cloud Services package is generate according to your cloud servers running application, you could directly use CSPack command-line tool to generate it in the local. More details, you could refer to this article.

Related

How to publish azure service fabric project from command line (powershell, cmd, etc.)

What I have:
Several separate repositories with .NET solutions.
Each solution has a Service Fabric Project (.sfproj).
Each sfproj has a needed publish profile.
Local Service Fabric cluster, which is used for development/debugging.
What I need:
I want to create a ps script which will go solution by solution and deploy the projects to the local service fabric cluster. Right now I'm opening each solution in VS and I'm publishing the app from VS. And it takes a lot of time.
Main question:
How to write a command that will build and publish the sfproj using needed publish profile?
P.S.: I have read Azure service fabric create package command line question here. But I don't understand how to include the needed publish profile.

deploying azure function app via Azure DevOps - how is the app service and storage provisioned?

I need to deploy an azure function app via Azure DevOps.
If I deploy via visual studio, it asks me to create a publish profile, where storage is specified.
I'm unsure how this works however with DevOps.
I have a build pipeline that builds the (.net core) function app, but on the release, I'm unsure how to proceed.
The Microsoft documentation is quite poor in my opinion, so would appreciate any expertise.
Thanks!
You have to create the underlying infrastructure prior to deploying the Azure Function to it.
There are steps you could user here and have an inline script job/stage within your pipeline:
https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-cli-csharp?tabs=azure-cli%2Cin-process#create-supporting-azure-resources-for-your-function
Alternatively you could use an ARM template or terraform to provision the app service and storage account as required.
I've got a sample github actions deployment of a function which uses the inline script method here:
https://github.com/brettmillerb/testfunctionapp/blob/master/.github/workflows/main.yml

How can I upload a file to Azure Artifacts from my powershell console using Azure DevOps REST Api?

I want to upload a file to Azure Artifacts using the Rest API. Can I do it?
We use on-prem Azure DevOps Server 2019.
Please, note that it is not a nuget or an npm package. It is just a file.
It is not a nuget or an npm package. It is just a file.
If what you want to upload is files instead of packages, in Azure devops, I'm afraid only Universal package can available for files to stored.
BUT, what the issue is Universal package does not supported for Azure devops server. It only support in azure devops service now.
In our official forum, there has such suggestion raised to request for this feature added in Azure devops server/TFS. You can vote and share your demand there to raise its priority. Our product group will review it regularly to consider take some features into develop plan.

Get Azure DevOps server (on-premises) data using Power Bi desktop connector

I want to show analytics using power bi desktop from my azure devops server which is deployed on-premises but unable to connect while the error shows analytics extension is not available for on-premises server of devops. I also found the Odata endpoint method but is it possible to do it using connector? Please suggest.
Error i am getting as follows
When i go the provided link, i am unable to download analytics extension as 'Get it free' link is disabled.
Analytics is now available in Azure DevOps Server 2019. The latest version of Power BI has a new connector called "Azure DevOps Server" which supports Analytics Views.
Check the following link for more details:
https://learn.microsoft.com/en-us/azure/devops/report/powerbi/data-connector-connect?view=azure-devops
Your error has indicated the issue, you have to install Analytics extension in your Azure DevOps server:
https://marketplace.visualstudio.com/items?itemName=ms.vss-analytics
Finally i did research and found the solution as Analytics extension can only be downloaded using the DevOps extension section and then it worked for me.

How to integrate OnPrem Azure DevOps Server with the cloud one?

My firm has the Azure DevOps online version where we have all our projects and repo's. We were not able to configure CI/CD for the repo's because our internal server network doesn't have access to the internet.
To overcome this issue, we built a new server that has access to the internet and also to the internal network. On the new server, we installed and configured Azure DevOps Server 2019. We don't want to migrate our repo's from the cloud version to the online version.
I am trying to link the OnPrem repo to the cloud repo but it was not working. I issued a PAT on the cloud version and added it as a service connection under Pipelines in the OnPrem version but still, I am not able to see and link the cloud repo's.
I can clone the repo from the cloud to the OnPrem server but that will not get the latest code as the code is being checked in the cloud repo's
Can anyone please guide me on how to link both of them, please.
Thanks!!!
I don't think there's a meaningful way to integrate Azure DevOps Services and Azure DevOps Server, as they are essentially the same product. I assume (but don't know) that you're looking to integrate Azure DevOps Services to on-premise builds and deployments, as you state that you want to keep the repos in Azure DevOps Services. So, in essence, you want to run build and deployment group agents in on-premise environment.
Take a look at the agent-documentation and especially the communication subsection:
https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/agents?view=azure-devops
Or this old blog post, from which the communication section originates:
https://devblogs.microsoft.com/devops/deploying-to-on-premises-environments-with-visual-studio-team-services-or-team-foundation-server/
The ideal solution would probably be that you run self-hosted build agents in your server that's open to internet, and configure an agent pool for them in Azure DevOps Services. For deployments, you'll want to use Deployment Groups and install deployment group agents to target servers, where they'll just need outbound 443 access for communicating with Azure DevOps Services.
If that's not possible, you'd have to install deployment agents to the build machine, which then sees your other on-premise servers, but this is rather unsatisfactory solution since you'd either have to rely on WinRm capabilities for deployments, or expose too much network between your build server and other on-premise servers.