Deaktivieren Des Remotedebuggens.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/disableRemoteDebugging?api-version=2023-12-01
URI-Parameter
Name |
In |
Erforderlich |
Typ |
Beschreibung |
appName
|
path |
True
|
string
|
Der Name der App-Ressource.
|
deploymentName
|
path |
True
|
string
|
Der Name der Bereitstellungsressource.
|
resourceGroupName
|
path |
True
|
string
|
Der Name der Ressourcengruppe, die die Ressource enthält. Dieser Wert kann über die Azure-Ressourcen-Manager-API oder das Portal abgerufen werden.
|
serviceName
|
path |
True
|
string
|
Der Name der Dienstressource.
Regex pattern: ^[a-z][a-z0-9-]*[a-z0-9]$
|
subscriptionId
|
path |
True
|
string
|
Ruft die Abonnement-ID ab, die das Microsoft Azure-Abonnement eindeutig identifiziert. Die Abonnement-ID ist Teil des URI für jeden Dienstaufruf.
|
api-version
|
query |
True
|
string
|
Hierbei handelt es sich um die für diesen Vorgang zu verwendende API-Version.
|
Antworten
Name |
Typ |
Beschreibung |
200 OK
|
RemoteDebugging
|
Erfolg.
|
202 Accepted
|
RemoteDebugging
|
Akzeptiert: Die Antwort gibt an, dass remoteDebugging jetzt deaktiviert wird und einen Location-Header zum Abfragen des Vorgangsergebnisses enthält.
|
Other Status Codes
|
CloudError
|
Fehlerantwort mit Beschreibung des Grunds für den Fehler.
|
Sicherheit
azure_auth
Azure Active Directory-OAuth2-Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name |
Beschreibung |
user_impersonation
|
Identitätswechsel Ihres Benutzerkontos
|
Beispiele
Deployments_DisableRemoteDebugging
Sample Request
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment/disableRemoteDebugging?api-version=2023-12-01
/**
* Samples for Deployments DisableRemoteDebugging.
*/
public final class Main {
/*
* x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2023-12-01/examples/
* Deployments_DisableRemoteDebugging.json
*/
/**
* Sample code: Deployments_DisableRemoteDebugging.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void deploymentsDisableRemoteDebugging(com.azure.resourcemanager.AzureResourceManager azure) {
azure.springServices().manager().serviceClient().getDeployments().disableRemoteDebugging("myResourceGroup",
"myservice", "myapp", "mydeployment", com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.appplatform import AppPlatformManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-appplatform
# USAGE
python deployments_disable_remote_debugging.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = AppPlatformManagementClient(
credential=DefaultAzureCredential(),
subscription_id="00000000-0000-0000-0000-000000000000",
)
response = client.deployments.begin_disable_remote_debugging(
resource_group_name="myResourceGroup",
service_name="myservice",
app_name="myapp",
deployment_name="mydeployment",
).result()
print(response)
# x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2023-12-01/examples/Deployments_DisableRemoteDebugging.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armappplatform_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform/v2"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/685aad3f33d355c1d9c89d493ee9398865367bd8/specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2023-12-01/examples/Deployments_DisableRemoteDebugging.json
func ExampleDeploymentsClient_BeginDisableRemoteDebugging() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armappplatform.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewDeploymentsClient().BeginDisableRemoteDebugging(ctx, "myResourceGroup", "myservice", "myapp", "mydeployment", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.RemoteDebugging = armappplatform.RemoteDebugging{
// Enabled: to.Ptr(false),
// Port: to.Ptr[int32](5005),
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { AppPlatformManagementClient } = require("@azure/arm-appplatform");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Disable remote debugging.
*
* @summary Disable remote debugging.
* x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2023-12-01/examples/Deployments_DisableRemoteDebugging.json
*/
async function deploymentsDisableRemoteDebugging() {
const subscriptionId =
process.env["APPPLATFORM_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
const resourceGroupName = process.env["APPPLATFORM_RESOURCE_GROUP"] || "myResourceGroup";
const serviceName = "myservice";
const appName = "myapp";
const deploymentName = "mydeployment";
const credential = new DefaultAzureCredential();
const client = new AppPlatformManagementClient(credential, subscriptionId);
const result = await client.deployments.beginDisableRemoteDebuggingAndWait(
resourceGroupName,
serviceName,
appName,
deploymentName,
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Sample Response
{
"port": 5005,
"enabled": false
}
location: https://management.azure.com/subscriptions/subid/providers/Microsoft.AppPlatform/...pathToOperationResult...
{
"port": 5005,
"enabled": false
}
Definitionen
CloudError
Eine Fehlerantwort vom Dienst.
Name |
Typ |
Beschreibung |
error
|
CloudErrorBody
|
Eine Fehlerantwort vom Dienst.
|
CloudErrorBody
Eine Fehlerantwort vom Dienst.
Name |
Typ |
Beschreibung |
code
|
string
|
Ein Bezeichner für den Fehler. Codes sind unveränderlich und sollten programmgesteuert verwendet werden.
|
details
|
CloudErrorBody[]
|
Eine Liste mit zusätzlichen Details zum Fehler.
|
message
|
string
|
Eine Meldung, die den Fehler beschreibt, die für die Anzeige in einer Benutzeroberfläche geeignet sein soll.
|
target
|
string
|
Das Ziel des bestimmten Fehlers. Beispiel: Der Name der -Eigenschaft, die einen Fehler aufweist.
|
RemoteDebugging
Remotedebugkonfiguration.
Name |
Typ |
Beschreibung |
enabled
|
boolean
|
Angeben, ob remotedebuggen aktiviert ist
|
port
|
integer
|
Port für das Debuggen von Anwendungen
|