I'm new to DevOps. Any help on this error is highly appreciated.
When I try to create and deploy DevOps project on Azure I'm receiving the following error.
I'm following steps in this link.
https://learn.microsoft.com/en-us/azure/devops-project/azure-devops-project-aks
{
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.",
"details": [
{
"code": "Conflict",
"message": {
"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'.",
"details": [
{
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.",
"details": [
{
"code": "BadRequest",
"message": {
"code": "InvalidRequestValue",
"message": "Failed to create the project 'xxxxxxx'. More details: 'Configuration failed at step: 'Configuring release pipeline'. More details: Failed to acquire authorization token. Details: [AADSTS70002: Error validating credentials. AADSTS50012: Invalid client secret is provided.Trace ID: 5cebc087-cb41-4b95-bc72-3c55cf250400 Correlation ID: 2a51cf8c-c8b1-420d-84a2-e50ca8193044 Timestamp: 2018-08-01 09:07:39Z]. ResponseCode: Unauthorized.'.",
"target": "ProcessCompletedJob"
}
}
]
}
]
}
}
}
]
}
As the error message says, AADSTS50012 indicates that an invalid client secret was provided. Check if your current key is expired in the Azure Portal and try generating a new one.
Related
I'm facing an issue where I keep getting this error on our Azure Devops instance while running our yaml pipeline using the task AzureAppServiceSettings#1 to setup the connection strings for our DB server.
- task: AzureAppServiceSettings#1
displayName: 'Dev app service settings'
inputs:
azureSubscription: '**subscriptionName**'
appName: '**appName**'
resourceGroupName: '**resourceGroupName**'
connectionStrings: |
[
{
"name": "DefaultConneciton",
"value": "Server=tcp:**serverName**,1433;Initial Catalog=**dbName**;Persist Security Info=False;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Authentication=\"Active Directory Default\";",
"type": "SQLAzure",
"slotSetting": false
}
]
After running the task it throws this error:
##[error]Error: Failed to update App service 'appName' Connection Strings. Error: BadRequest - The parameter properties has an invalid
value. (CODE: 400)
I've also tried editing the app settings through Azure Resource Explorer
And had the same output:
{
"Code": "BadRequest",
"Message": "The parameter properties has an invalid value.",
"Target": null,
"Details": [
{
"Message": "The parameter properties has an invalid value."
},
{
"Code": "BadRequest"
},
{
"ErrorEntity": {
"ExtendedCode": "51008",
"MessageTemplate": "The parameter {0} has an invalid value.",
"Parameters": [
"properties"
],
"Code": "BadRequest",
"Message": "The parameter properties has an invalid value."
}
}
],
"Innererror": null
}
I'm being able to edit the connection string only trough the portal.
if you have added the connection Strings parameter on the azure portal, try to remove it on the pipeline or on the azure portal.
if it doesn't work, replace the ** with the ''.
I am trying to retrieve a list of enrolled devices using the microsoft graph api. The authenticated GET request to https://graph.microsoft.com/v1.0/deviceManagement/deviceCompliancePolicySettingStateSummaries
{
"error": {
"code": "UnknownError",
"message": "{\"ErrorCode\":\"Forbidden\",\"Message\":\"{\\r\\n \\\"_version\\\": 3,\\r\\n \\\"Message\\\": \\\"An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: dd0e2f48-90b3-49e0-bb9a-b3b02e4b9482 - Url: https://fef.msua08.manage.microsoft.com/DeviceConfiguration_2005/StatelessDeviceConfigurationFEService/deviceManagement/deviceCompliancePolicySettingStateSummaries?api-version=2020-02-21\\\",\\r\\n \\\"CustomApiErrorPhrase\\\": \\\"\\\",\\r\\n \\\"RetryAfter\\\": null,\\r\\n \\\"ErrorSourceService\\\": \\\"\\\",\\r\\n \\\"HttpHeaders\\\": \\\"{\\\\\\\"WWW-Authenticate\\\\\\\":\\\\\\\"Bearer realm=\\\\\\\\\\\\\\\"urn:intune:service,bb7003b9-cb7f-44b2-b534-54f84f2f0d63,f0f3c450-59bf-4f0d-b1b2-0ef84ddfe3c7\\\\\\\\\\\\\\\"\\\\\\\"}\\\"\\r\\n}\",\"Target\":null,\"Details\":null,\"InnerError\":null,\"InstanceAnnotations\":[]}",
"innerError": {
"request-id": "dd0e2f48-90b3-49e0-bb9a-b3b02e4b9482",
"date": "2020-05-28T11:34:16"
}
}
}
I am following the documentation here.
We just needed to add these resource permissions DeviceManagementConfiguration.ReadWrite.All and DeviceManagementConfiguration.Read.All in Azure AD permissions.
I was trying to create an AKS cluster and it failed with the following message in the portal
{
"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'.",
"details": [
{
"code": "ReconcileStandardLoadBalancerError",
"message": "Reconcile standard load balancer failed. Details: standardLoadBalancerReconciler retry failed: Code=\"SubscriptionNotRegistered\" Message=\"Subscription xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx is not registered with NRP.\" Details=[]."
}
]
}
}
you have to go into All services -> Subscriptions -> Resource providers
And get this registered.
Microsoft.Kubernetes Registered
While i try to deploy Informatica BDM 10.2 from Azure market place, I receive an error at the end of the deployment.
TYPE
Microsoft.Compute/virtualMachines/extensions
STATUSMESSAGE
{ "status": "Failed", "error": { "code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal
provisioning state 'Failed'.", "details": [ { "code":
"VMExtensionProvisioningError", "message": "VM has reported a failure
when processing extension 'ScriptExtGVM'. Error message: \"Malformed
status file [ExtensionError] Invalid status/status: failed\"." } ] } }
RESOURCE
infa1/ScriptExtGVM
Note: infa1 is the Virtual machine name
I am trying to deploy an ARM template that will provision the following elements:
sql server
sql server
sql server db
storage account
app service plan
2 websites
I get the following error information:
RESOURCE ID: /subscriptions/xxxx/resourceGroups/servicename-int-rg/providers/Microsoft.Web/serverfarms/servicename-int-appservice
STATUSMESSAGE: {
"Code": "NotFound",
"Message": "Server farm with name servicename-int-appservice not found.",
"Target": null,
"Details": [
{
"Message": "Server farm with name servicename-int-appservice not found."
},
{
"Code": "NotFound"
},
{
"ErrorEntity": {
"Code": "NotFound",
"Message": "Server farm with name servicename-int-appservice not found.",
"ExtendedCode": "11001",
"MessageTemplate": "Server farm with name {0} not found.",
"Parameters": [
"servicename-int-appservice"
],
"InnerErrors": []
}
}
],
"Innererror": null
}
RESOURCE: servicename-int-appservice
You can see the slightly modified template Gist
I managed to get your template working. What I think is going on - you are supplying hostnames that are not acceptable by Azure, as it expects hostname like blablabla.azurewebsites.net
So what I've did (because I'm lazy) I've removed all the hostname parameters from the Microsoft.Web/serverfarms and Microsoft.Web/sites. It did deploy after that. You could probably figure out how to pass proper host names on your own, since you got this far. :)
here's whats working for me (I've removed all the pieces not relevant to the websites) http://pastebin.com/697bG27Z