← Back to Blog

Logic apps integrate

Logic apps integrate Subs name make it easier to comprehend 10 minutes Fixer https://learn.microsoft.com/en-us/azure/templates/microsoft.insights/diagnosticsettings?pivots=deployment-language-arm-template { "id": "/subscriptions/ad744a08-2411-4d78-b417-1f1c83f4f741/resourceGroups

Logic apps integrate

Subs name make it easier to comprehend

logic apps integrate 1

10 minutes

logic apps integrate 2

Fixer

logic apps integrate 3

logic apps integrate 4

logic apps integrate 5

https://learn.microsoft.com/en-us/azure/templates/microsoft.insights/diagnosticsettings?pivots=deployment-language-arm-template

{
"id": "/subscriptions/ad744a08-2411-4d78-b417-1f1c83f4f741/resourceGroups/ContractorMarketing/providers/Microsoft.Logic/workflows/contractormarketing-calendlyfollowup/providers/microsoft.insights/diagnosticSettings/mydiagnostics",
"name": "mydiagnostics",
"properties": {
"logs": [
{
"category": null,
"categoryGroup": "allLogs",
"enabled": true,
"retentionPolicy": {
"days": 0,
"enabled": false
}
}
],
"metrics": [
{
"timeGrain": null,
"enabled": true,
"retentionPolicy": {
"days": 0,
"enabled": false
},
"category": "AllMetrics"
}
],
"storageAccountId": "/subscriptions/ad744a08-2411-4d78-b417-1f1c83f4f741/resourceGroups/ContractorMarketing/providers/Microsoft.Storage/storageAccounts/contractormarketing",
"workspaceId": "/subscriptions/ad744a08-2411-4d78-b417-1f1c83f4f741/resourceGroups/ContractorMarketing/providers/Microsoft.OperationalInsights/workspaces/contractormarketing-loganalytics",
"logAnalyticsDestinationType": null,
"eventHubAuthorizationRuleId": "/subscriptions/ad744a08-2411-4d78-b417-1f1c83f4f741/resourcegroups/ContractorMarketing/providers/Microsoft.EventHub/namespaces/contractormarketing/authorizationrules/RootManageSharedAccessKey",
"eventHubName": "contractormarketing-logicapp"
}
}

old value

{
"id": "/subscriptions/ad744a08-2411-4d78-b417-1f1c83f4f741/resourceGroups/ContractorMarketing/providers/Microsoft.Logic/workflows/contractormarketing-calendlyfollowup/providers/microsoft.insights/diagnosticSettings/mydiagnostics",
"name": "mydiagnostics",
"properties": {
"logs": [
{
"category": null,
"categoryGroup": "allLogs",
"enabled": true,
"retentionPolicy": {
"days": 0,
"enabled": false
}
}
],
"metrics": [
{
"timeGrain": null,
"enabled": true,
"retentionPolicy": {
"days": 0,
"enabled": false
},
"category": "AllMetrics"
}
],
"storageAccountId": "/subscriptions/ad744a08-2411-4d78-b417-1f1c83f4f741/resourceGroups/ContractorMarketing/providers/Microsoft.Storage/storageAccounts/contractormarketing",
"workspaceId": "/subscriptions/ad744a08-2411-4d78-b417-1f1c83f4f741/resourceGroups/ContractorMarketing/providers/Microsoft.OperationalInsights/workspaces/contractormarketing-loganalytics",
"logAnalyticsDestinationType": null,
"eventHubAuthorizationRuleId": "/subscriptions/ad744a08-2411-4d78-b417-1f1c83f4f741/resourcegroups/ContractorMarketing/providers/Microsoft.EventHub/namespaces/contractormarketing/authorizationrules/RootManageSharedAccessKey",
"eventHubName": "contractormarketing-logicapp"
}
}

new value empty

{
"type": "Microsoft.Insights/diagnosticSettings",
"apiVersion": "2021-05-01-preview",
"name": "string",
"scope": "string",
"properties": {
"eventHubAuthorizationRuleId": "string",
"eventHubName": "string",
"logAnalyticsDestinationType": "string",
"logs": [
{
"category": "string",
"categoryGroup": "string",
"enabled": "bool",
"retentionPolicy": {
"days": "int",
"enabled": "bool"
}
}
],
"marketplacePartnerId": "string",
"metrics": [
{
"category": "string",
"enabled": "bool",
"retentionPolicy": {
"days": "int",
"enabled": "bool"
},
"timeGrain": "string"
}
],
"serviceBusRuleId": "string",
"storageAccountId": "string",
"workspaceId": "string"
}
}

Type:

logic apps integrate 6

Logic App Type>>> Type:Microsoft.Logic/workflows

logic apps integrate 7

see at the end

logic apps integrate 8

zero increment easier

logic apps integrate 9

Starts with enters not equals to works

logic apps integrate 10

the last ending has an issue

logic apps integrate 11

{

"message": "No HTTP resource was found that matches the request URI 'https://management.azure.com/subscriptions/ad744a08-2411-4d78-b417-1f1c83f4f741/resourcegroups/ContractorMarketing/providers/Microsoft.Resources/deployments/mydeploy-contractormarketing-schedule-dailyreport-/subscriptions/ad744a08-2411-4d78-b417-1f1c83f4f741/resourceGroups/ContractorMarketing/providers/Microsoft.Logic/workflows/contractormarketing-schedule-dailyreport?x-ms-api-version=2016-06-01&wait=False&api-version=2016-06-01'."

}

mydeploy?

logic apps integrate 12

Name fixing

logic apps integrate 13

new error

{

"error": {

"code": "InvalidRequestContent",
                

"message": "The request content was invalid and could not be deserialized: 'Could not find member 'id' on object of type 'Template'. Path 'properties.template.id', line 1, position 32.'."

}

}

logic apps integrate 14

no id in here...?

logic apps integrate 15

remove id how to associate with logic app

logic apps integrate 16

Maybe it is not the resource trigger

logic apps integrate 17

maybe it is here

https://learn.microsoft.com/en-us/azure/cdn/cdn-azure-diagnostic-logs

46

logic apps integrate 18

autopmation

logic apps integrate 19

logic apps integrate 20

runbook

logic apps integrate 21

logic apps integrate 22

https://stackoverflow.com/questions/53414671/azure-logic-apps-how-to-run-powershell-script-or-azure-cli

fast testing

logic apps integrate 23

logic apps integrate 24

Powershell takes time as well

logic apps integrate 25

Basics

logic apps integrate 26

get id

logic apps integrate 27

Code

Connect-AzAccount

$rsg = 'ContractorMarketing'

$storageid = '/subscriptions/ad744a08-2411-4d78-b417-1f1c83f4f741/resourceGroups/ContractorMarketing/providers/Microsoft.Storage/storageAccounts/contractormarketing'

$diagname = 'mydiagnostics'

$resourceid = '/ContractorMarketing/providers/Microsoft.Logic/workflows/contractormarketing-schedule-dailyreport'

Set-AzDiagnosticSetting -Name $diagname -ResourceId $resourceid -StorageAccountId $storageid -Enabled $true -Categories CoreAnalytics

Powershell running long time

logic apps integrate 28

logic apps integrate 29

it did not get created

logic apps integrate 30

edit in vscode to see the error easier

logic apps integrate 31

logic apps integrate 32

error is there

logic apps integrate 33

logic apps integrate 34

logic apps integrate 35

Install-Module Az

Connect-AzAccount

$rsg = 'ContractorMarketing'

$storageid = '/subscriptions/ad744a08-2411-4d78-b417-1f1c83f4f741/resourceGroups/ContractorMarketing/providers/Microsoft.Storage/storageAccounts/contractormarketing'

$diagname = 'mydiagnostics'

$resourceid = '/ContractorMarketing/providers/Microsoft.Logic/workflows/contractormarketing-schedule-dailyreport'

Set-AzDiagnosticSetting -Name $diagname -ResourceId $resourceid -StorageAccountId $storageid -Enabled $true -Categories CoreAnalytics

logic apps integrate 36

Maybe storage does not have the module

logic apps integrate 37

Create a job

logic apps integrate 38

Where is the parameter?

logic apps integrate 39

Logicapp/

logic apps integrate 40

Json accepted

logic apps integrate 41

Logging opened up maybe we can see now

logic apps integrate 42

tempates are there

logic apps integrate 43

Powershell so many errors

logic apps integrate 44

updated version is not woirking as well

logic apps integrate 45

so many powershell versions are outthere the client side has the issues

logic apps integrate 46

Powershell version are way too many

logic apps integrate 47

runtime 7.2 testing needed

logic apps integrate 48

logic apps integrate 49

Old version

logic apps integrate 50

7.2 is different

logic apps integrate 51

powershell too complex setup

logic apps integrate 52

logic apps integrate 53

multiple enviroment

logic apps integrate 54


Imported from rifaterdemsahin.com · 2024