question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[QUERY] How to deploy an application to an App Service using the new Management libraries?

See original GitHub issue

Library name and version

Azure.ResourceManager.AppService 1.0.0

Query/Question

I have packaged a .NET application (in a zip file) that I want to deploy to an existing App Service. For that, I want to use the new Azure Management libraries in .NET.

I have the following code that retrieve my existing App Service:

 var client = new ArmClient(new DefaultAzureCredential());
 var resource = client.GetWebSiteResource(new ResourceIdentifier("/subscriptions/xxx/resourceGroups/xxxx/providers/Microsoft.Web/sites/xxxxx");
 WebSiteResource webSite = await resource.GetAsync();

But I can’t find a method “Deploy” or something like that to do the web deploy or the zip deploy of my package. How can I do that with the new Management Libraries?

With the previous SDK, I found some sample showing how to use a Deploy method but I can’t find anything on the objects of the new SDK.

Environment

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
xboxeercommented, Aug 18, 2022

@TechWatching the sample uses fluent style SDK while in our new SDK we do not support the fluent SDK anymore -> See our new SDK design guidance here: https://azure.github.io/azure-sdk/general_introduction.html AppService SDK is still evolving so the sample is not ready yet, I’ve created a new issue to track this. Meanwhile, feel free to let us know what other samples you think is necessary for using the new SDK, or if you have any other general feedback to our SDK, let us know in this survey

0reactions
Yao725commented, Feb 21, 2023

Close this issue as we already have #30577 to track this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to deploy an application to an App Service using ...
I need to do this deployment from C# code so I don't want to use Azure CLI, PowerShell, or do that from a...
Read more >
Deploy files to App Service - Azure
Learn to deploy various app packages or discrete libraries, static files, or startup scripts to Azure App Service.
Read more >
[QUERY] Get WebApp deployment info using the fluent ...
Query /Question Is there a way through the management SDK to get this deployment info for an App Service?
Read more >
Web Apps | Apps Script
Next to "Select type," click Enable deployment types settings > Web app. Enter the information about your web app in the fields under...
Read more >
Monitoring Azure App Service
Datadog provides monitoring capabilities for all Azure App Service resource types: Azure Monitor metrics for Apps and Functions using the Azure Integration.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found