Unable to view eventgrid subscriptions in the azure portal. Unable to create new ones too - azure-eventgrid

I have around 12 eventgrid subscriptions already created for topic type 'Azure subscription'. Unable to see any of them in Azure portal since 30th May 2018.
I could see the list in azure cli (refer screenshot list_shown_in_cli)
but could not see the same in GUI (refer screenshot list_not_shown_in_gui).
Moreover, I am unable to create new subscriptions too. I observed the javascript error in browser's developer console when attempted to create new eventgrid subscription (refer screenshot error_creating_eventgrid_subscription).

list of all supported topic types:
{
"value": [
{
"properties": {
"provider": "Microsoft.Eventhub",
"displayName": "Event Hubs Namespaces",
"description": "Microsoft Event Hubs service events.",
"resourceRegionType": "RegionalResource",
"provisioningState": "Succeeded",
"supportedLocations": [
"West US 2",
"West Central US",
"East US 2 EUAP",
"East US",
"West US",
"Central US",
"East US 2",
"West Europe",
"North Europe",
"Southeast Asia",
"East Asia",
"Japan East",
"Japan West",
"Australia East",
"Australia Southeast"
]
},
"id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Eventhub.Namespaces",
"name": "Microsoft.Eventhub.Namespaces",
"type": "Microsoft.EventGrid/topicTypes"
},
{
"properties": {
"provider": "Microsoft.Storage",
"displayName": "Storage Accounts",
"description": "Microsoft Storage service events.",
"resourceRegionType": "RegionalResource",
"provisioningState": "Succeeded",
"supportedLocations": [
"West US 2",
"West Central US",
"East US 2 EUAP",
"East US",
"West US",
"Central US",
"East US 2",
"West Europe",
"North Europe",
"Southeast Asia",
"East Asia",
"Japan East",
"Japan West",
"Australia East",
"Australia Southeast"
]
},
"id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts",
"name": "Microsoft.Storage.StorageAccounts",
"type": "Microsoft.EventGrid/topicTypes"
},
{
"properties": {
"provider": "Microsoft.Resources",
"displayName": "Azure Subscriptions",
"description": "Resource management events under an Azure subscription",
"resourceRegionType": "GlobalResource",
"provisioningState": "Succeeded",
"supportedLocations": []
},
"id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions",
"name": "Microsoft.Resources.Subscriptions",
"type": "Microsoft.EventGrid/topicTypes"
},
{
"properties": {
"provider": "Microsoft.Resources",
"displayName": "Resource Groups",
"description": "Resource management events under a resource group.",
"resourceRegionType": "GlobalResource",
"provisioningState": "Succeeded",
"supportedLocations": []
},
"id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups",
"name": "Microsoft.Resources.ResourceGroups",
"type": "Microsoft.EventGrid/topicTypes"
},
{
"properties": {
"provider": "Microsoft.Devices",
"displayName": "Azure IoT Hub Accounts",
"description": "Azure IoT Hub service events",
"resourceRegionType": "RegionalResource",
"provisioningState": "Succeeded",
"supportedLocations": [
"West US 2",
"West Central US",
"East US",
"West US",
"Central US",
"East US 2",
"West Europe",
"North Europe",
"Southeast Asia",
"East Asia",
"Japan East",
"Japan West",
"Australia East",
"Australia Southeast"
]
},
"id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Devices.IoTHubs",
"name": "Microsoft.Devices.IoTHubs",
"type": "Microsoft.EventGrid/topicTypes"
},
{
"properties": {
"provider": "Microsoft.EventGrid",
"displayName": "Event Grid Topics",
"description": "Custom events via Event Grid Topics",
"resourceRegionType": "RegionalResource",
"provisioningState": "Succeeded",
"supportedLocations": [
"West US 2",
"West Central US",
"East US 2 EUAP",
"East US",
"West US",
"Central US",
"East US 2",
"West Europe",
"North Europe",
"Southeast Asia",
"East Asia",
"Japan East",
"Japan West",
"Australia East",
"Australia Southeast"
]
},
"id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.EventGrid.Topics",
"name": "Microsoft.EventGrid.Topics",
"type": "Microsoft.EventGrid/topicTypes"
},
{
"properties": {
"provider": "Microsoft.ServiceBus",
"displayName": "Service Bus Namespaces",
"description": "Service Bus events",
"resourceRegionType": "RegionalResource",
"provisioningState": "Succeeded",
"supportedLocations": [
"West US 2",
"West Central US",
"East US 2 EUAP",
"East US",
"West US",
"Central US",
"East US 2",
"West Europe",
"North Europe",
"Southeast Asia",
"East Asia",
"Japan East",
"Japan West",
"Australia East",
"Australia Southeast"
]
},
"id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.ServiceBus.Namespaces",
"name": "Microsoft.ServiceBus.Namespaces",
"type": "Microsoft.EventGrid/topicTypes"
},
{
"properties": {
"provider": "Microsoft.Media",
"displayName": "Microsoft Azure Media Services",
"description": "Microsoft Azure Media Services events",
"resourceRegionType": "RegionalResource",
"provisioningState": "Succeeded",
"supportedLocations": [
"West US 2",
"West US",
"West Europe",
"West Central US",
"Southeast Asia",
"North Europe",
"East US",
"East US 2",
"Central US",
"East Asia"
]
},
"id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Media.MediaServices",
"name": "Microsoft.Media.MediaServices",
"type": "Microsoft.EventGrid/topicTypes"
}
]
}

It looks like your error is invalidRG - are you sure the resource group and or resource your are trying to subscribe to are valid?
It may also be an invalid resource type that you are trying to listen to. Things like Container Registry are not yet supported. The full list of supported sources can be found here: https://learn.microsoft.com/en-us/azure/event-grid/event-sources
A good first test to ensure your subscriptions are still available and valid would be so search for them via AZ CLI 2.0
. You can open it in the CloudShell or download to your local client and then run az eventgrid event-subscription list.

Related

Is there any scope for MS Teams message extension to work in Team's channel (private + public)?

MS Teams message extension is working in bot personal chats and default team of tenant but not working in others team's channels.
I'm getting error:
Error
This is manifest file for my app:
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.5/MicrosoftTeams.schema.json",
"manifestVersion": "1.5",
"version": "1.0",
"id": "<<id>>",
"packageName": "com.microsoft.teams.samples",
"developer": {
"name": "Microsoft",
"websiteUrl": "https://dev.botframework.com",
"privacyUrl": "https://privacy.microsoft.com",
"termsOfUseUrl": "https://www.microsoft.com/en-us/legal/intellectualproperty/copyright/default.aspx"
},
"icons": {
"color": "icon-color.png",
"outline": "icon-outline.png"
},
"name": {
"short": "Demo",
"full": "Demo Demo"
},
"description": {
"short": "Sample demonstrating an Action Based Messaging Extension with Preview",
"full": "Sample Action Messaging Extension built with the Bot Builder SDK demonstrating Preview"
},
"accentColor": "#FFFFFF",
"bots": [
{
"botId": "<<botId>>",
"scopes": [
"personal",
"team",
"groupchat"
]
}
],
"composeExtensions": [
{
"botId": "<<botId>>",
"canUpdateConfiguration": false,
"commands": [
{
"id": "create",
"type": "action",
"title": "Create",
"description": "Create new card",
"initialRun": false,
"fetchTask": false,
"context": [
"compose"
],
"parameters": [
{
"name": "description",
"title": "Title",
"description": "Enter Title...",
"inputType": "textarea"
}
]
}
]
}
],
"validDomains": []
}
I have seen others apps are able to send message from message extension without installing it to particular teams.

Django Rest multilevel nested POST data in serializer

I have nested JSON data like below:
{
"resourceType": "Patient",
"identifier": [{
"use": "usual",
"type": {
"coding": [{
"code": "MR",
"display": "Medical Record Number"
}],
"text": "Medical Record Number"
},
"system": "http://example.com",
"value": "1032702",
"assigner": {
"reference": "Organization/198723168",
"display": "Reference Organization",
"data": {
"resourceType": "Organization",
"implicitRules": "",
"language": "",
"contained": "",
"extension": "",
"alias": "",
"contact": "",
"modifierExtension": "",
"active": true,
"name": "Clinic",
"address": [{
"line": [
"3300 Washtenaw Avenue, Suite 227"
],
"city": "Amherst",
"state": "MA",
"postalCode": "01002",
"country": "USA"
}]
}
}
}]
}
In serializers create method, I want to get the data which is nested to identifier->assigner and store that in organization serializer which different than this to which I am POSTing these data. For top level data I can do like validated_data.pop('identifier'). Is there a similar way for nested one?

How to Declare Authorizations HTTP POST msteam?

I have try completed input text then post to webhook.
below code :
{
"#type": "MessageCard",
"#context": "",
"themeColor": "0076D7",
"summary": "Larry Bryant created a new task",
"sections": [{
"activityTitle": "![TestImage]()Larry Bryant created a new task",
"activitySubtitle": "On Project Tango",
"activityImage": "image5.png",
"facts": [{
"name": "Assigned to",
"value": "Unassigned"
}, {
"name": "Due date",
"value": "Mon May 01 2017 17:07:18 GMT-0700 (Pacific Daylight Time)"
}, {
"name": "Status",
"value": "Not started"
}],
"markdown": true
}],
"potentialAction": [{
"#type": "ActionCard",
"name": "Add a comment",
"inputs": [{
"#type": "TextInput",
"id": "comment",
"isMultiline": false,
"title": "Add a comment here for this task"
}],
"actions": [{
"#type": "HttpPOST",
"name": "Send mail",
"target": "webhook/######",
"body": "{'text':''}"
}]
}]
}
but i tried with my api then send mail with authorizations in headers.
below code :
POST webhook/######
Content-Type: application/json
{
"#type": "MessageCard",
"#context": "/extensions",
"themeColor": "0076D7",
"summary": "Larry Bryant created a new task",
"sections": [{
"activityTitle": "![TestImage](/default.png)Larry Bryant created a new task",
"activitySubtitle": "On Project Tango",
"activityImage": "img/image5.png",
"facts": [{
"name": "Assigned to",
"value": "Unassigned"
}, {
"name": "Due date",
"value": "Mon May 01 2017 17:07:18 GMT-0700 (Pacific Daylight Time)"
}, {
"name": "Status",
"value": "Not started"
}],
"markdown": true
}],
"potentialAction": [{
"#type": "ActionCard",
"name": "Add a comment",
"inputs": [{
"#type": "TextInput",
"id": "comment",
"isMultiline": false,
"title": "Add a comment here for this task"
}],
"actions": [{
"#type": "HttpPOST",
"name": "Send mail",
"target": "domain.com/api/sendmail",
"headers": [
{"Authorization": "Bearer token#####"},
{"Content-Type": "application/json"},
],
"body": "{
'subjects':'Title Mail',
'message':'Hello World',
'recipient_list':'email#mail.com',
'bcc':'email#mail.com'
}"
}]
}]
}
Send to msteam completed when i click button then send json to api this is my message error
Thanks for your support . have fun today
The remote endpoint returned an error (HTTP Unauthorized). Please try again later.

Virtual Assitant does not pass off to skill on MS teams

I added a skill to the virtual assistant and uploaded it as an app on MS teams for dev testing. I get the prompt from the VA but it doesn't hand off to the skill. However, when I add the bot to MS teams from the channel section in Web App Bot > MS Teams, it works as intended. The manifest.json file:
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.5/MicrosoftTeams.schema.json",
"manifestVersion": "1.5",
"version": "1.0.0",
"id": "MICROSOFT APP ID",
"packageName": "com.xyz.bot",
"developer": {
"name": "xyz",
"websiteUrl": "xyz",
"privacyUrl": "xyz",
"termsOfUseUrl": "xyz"
},
"icons": {
"color": "color.png",
"outline": "outline.png"
},
"name": {
"short": "Test Bot",
"full": "Test Bot"
},
"description": {
"short": "Test Bot",
"full": "Test Bot"
},
"accentColor": "#F9F9FA",
"bots": [
{
"botId": "MICROSOFT APP ID (same as above)",
"scopes": [
"personal",
"team",
"groupchat"
],
"supportsFiles": false,
"isNotificationOnly": false
}
],
"permissions": [
"identity",
"messageTeamMembers"
],
"validDomains": ["token.botframework.com"]
}
Would appreciate some help in this matter.. Thanks!

Data Structures in D3

A group project of mine are struggling with a data structure, after having been told that it was initially wrong.
Alcohol consumption is the percentage of those who are on the mental health register in that particular city, so it should be a child element of mental health. To me, this looks right, but is producing no output in d3, only England, North England, Bradford City, Mental Health, and Alcohol Consumption produce an output, but not for Leeds. More data will be added, we just needed to get the structure correct.
var data = {
"name": "England",
"children": [
{
"name": "North England",
"children": [
{
"name": "Bradford City",
"children": [
{
"name": "Mental Health",
"value": 1.22,
"children": [
{
"name": "Alcohol Consumption",
"value": 70.23,
}
]
}
],
"name": "Leeds",
"children": [
{
"name": "Mental Health",
"value": 1.22,
"children": [
{
"name": "Alcohol Consumption",
"value": 70.23,
}
]
}
]
}
]
}
]
};
This is the right structure:
var data = {
"name": "England",
"children": [{
"name": "North England",
"children": [{
"name": "Bradford City",
"children": [{
"name": "Mental Health",
"value": 1.22,
"children": [{
"name": "Alcohol Consumption",
"value": 70.23,
}]
}]
}, {
"name": "Leeds",
"children": [{
"name": "Mental Health",
"value": 1.22,
"children": [{
"name": "Alcohol Consumption",
"value": 70.23,
}]
}]
}]
}]
};
The children for North England should be a list of objects.

Resources