Skip to content

Commit

Permalink
Azure Health Bot MSI support (Azure#14787)
Browse files Browse the repository at this point in the history
* Azure Health Bot - copy the existing version into new directory structure.

* Azure Health Bot - Updates for new API, including:
1. Azure Health Bot MSI support in API 2021-06-10.
2. Examples fixes.
3. Azure Health Bot naming (not Microsoft Healthcare Bot).
  • Loading branch information
guy-microsoft authored Jul 14, 2021
1 parent 85a5f6f commit 10873ac
Show file tree
Hide file tree
Showing 11 changed files with 1,193 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parameters": {
"api-version": "2021-06-10"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.Healthbot/healthbots/read",
"display": {
"provider": "Azure Health Bot",
"resource": "Azure Health Bot",
"operation": "Read Azure Health Bot",
"description": "Read Azure Health Bot"
},
"origin": "user,system"
},
{
"name": "Microsoft.Healthbot/healthbots/write",
"display": {
"provider": "Azure Health Bot",
"resource": "Azure Health Bot",
"operation": "Write Azure Health Bot",
"description": "Writes Azure Health Bot"
},
"origin": "user,system"
},
{
"name": "Microsoft.Healthbot/healthbots/delete",
"display": {
"provider": "Azure Health Bot",
"resource": "Azure Health Bot",
"operation": "Delete Azure Health Bot",
"description": "Deletes Azure Health Bot"
},
"origin": "user,system"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"parameters": {
"subscriptionId": "subscription-id",
"resourceGroupName": "OneResourceGroupName",
"api-version": "2021-06-10"
},
"responses": {
"200": {
"body": {
"value": [
{
"location": "East US",
"name": "samplebotname",
"type": "Microsoft.HealthBot/healthBots",
"id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.HealthBot/healthBots/samplebotname",
"sku": {
"name": "F0"
},
"properties": {
"botManagementPortalLink": "https://us.healthbot.microsoft.com/account/samplebotname-1yhd91k"
},
"systemData": {
"createdBy": "jack@outlook.com",
"createdByType": "User",
"createdAt": "2020-05-05T17:18:19.1234567Z",
"lastModifiedBy": "ryan@outlook.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-05-06T17:18:19.1234567Z"
}
},
{
"location": "East US",
"name": "samplebotname2",
"type": "Microsoft.HealthBot/healthBots",
"id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.HealthBot/healthBots/samplebotname2",
"sku": {
"name": "S1"
},
"identity": {
"userAssignedIdentities": {
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi": {},
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi2": {}
},
"principalId": "principalId",
"tenantId": "tenantId",
"type": "SystemAssigned, UserAssigned"
},
"properties": {
"botManagementPortalLink": "https://us.healthbot.microsoft.com/account/samplebotname2-hdi1osc"
},
"systemData": {
"createdBy": "jack@outlook.com",
"createdByType": "User",
"createdAt": "2020-05-05T17:18:19.1234567Z",
"lastModifiedBy": "ryan@outlook.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-05-06T17:18:19.1234567Z"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"parameters": {
"subscriptionId": "subscription-id",
"resourceGroupName": "OneResourceGroupName",
"api-version": "2021-06-10"
},
"responses": {
"200": {
"body": {
"value": [
{
"location": "East US",
"name": "samplebotname2",
"type": "Microsoft.HealthBot/healthBots",
"id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.HealthBot/healthBots/samplebotname2",
"sku": {
"name": "S1"
},
"identity": {
"userAssignedIdentities": {
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi": {},
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi2": {}
},
"principalId": "principalId",
"tenantId": "tenantId",
"type": "SystemAssigned, UserAssigned"
},
"properties": {
"botManagementPortalLink": "https://us.healthbot.microsoft.com/account/samplebotname2-hdi1osc"
},
"systemData": {
"createdBy": "jack@outlook.com",
"createdByType": "User",
"createdAt": "2020-05-05T17:18:19.1234567Z",
"lastModifiedBy": "ryan@outlook.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-05-06T17:18:19.1234567Z"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"parameters": {
"resourceGroupName": "healthbotClient",
"api-version": "2021-06-10",
"subscriptionId": "subid",
"botName": "samplebotname",
"parameters": {
"location": "East US",
"sku": {
"name": "F0"
},
"identity": {
"userAssignedIdentities": {
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi": {},
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi2": {}
},
"type": "SystemAssigned, UserAssigned"
}
}
},
"responses": {
"200": {
"body": {
"location": "East US",
"name": "samplebotname",
"type": "Microsoft.HealthBot/healthBots",
"id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.HealthBot/healthBots/samplebotname",
"sku": {
"name": "F0"
},
"identity": {
"userAssignedIdentities": {
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi": {},
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi2": {}
},
"principalId": "principalId",
"tenantId": "tenantId",
"type": "SystemAssigned, UserAssigned"
},
"properties": {
"botManagementPortalLink": "https://us.healthbot.microsoft.com/account/contoso"
},
"systemData": {
"createdBy": "jack@outlook.com",
"createdByType": "User",
"createdAt": "2020-05-05T17:18:19.1234567Z",
"lastModifiedBy": "ryan@outlook.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-05-06T17:18:19.1234567Z"
}
}
},
"201": {
"body": {
"location": "East US",
"name": "samplebotname",
"type": "Microsoft.HealthBot/healthBots",
"id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.HealthBot/healthBots/samplebotname",
"sku": {
"name": "F0"
},
"properties": {
"botManagementPortalLink": "https://us.healthbot.microsoft.com/account/contoso",
"provisioningState": "Provisioning"
},
"systemData": {
"createdBy": "jack@outlook.com",
"createdByType": "User",
"createdAt": "2020-05-05T17:18:19.1234567Z",
"lastModifiedBy": "ryan@outlook.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-05-06T17:18:19.1234567Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"resourceGroupName": "healthbotClient",
"api-version": "2021-06-10",
"subscriptionId": "subid",
"botName": "samplebotname"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"parameters": {
"resourceGroupName": "healthbotClient",
"api-version": "2021-06-10",
"subscriptionId": "subid",
"botName": "samplebotname"
},
"responses": {
"200": {
"body": {
"location": "East US",
"name": "samplebotname",
"type": "Microsoft.HealthBot/healthBots",
"id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.HealthBot/healthBots/samplebotname",
"sku": {
"name": "F0"
},
"identity": {
"userAssignedIdentities": {
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi": {},
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi2": {}
},
"principalId": "principalId",
"tenantId": "tenantId",
"type": "SystemAssigned, UserAssigned"
},
"properties": {
"botManagementPortalLink": "https://us.healthbot.microsoft.com/account/contoso"
},
"systemData": {
"createdBy": "jack@outlook.com",
"createdByType": "User",
"createdAt": "2020-05-05T17:18:19.1234567Z",
"lastModifiedBy": "ryan@outlook.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-05-06T17:18:19.1234567Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"parameters": {
"resourceGroupName": "healthbotClient",
"api-version": "2021-06-10",
"subscriptionId": "subid",
"botName": "samplebotname",
"identity": {
"userAssignedIdentities": {
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi": {},
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi2": {}
},
"type": "SystemAssigned, UserAssigned"
},
"parameters": {
"sku": {
"name": "F0"
}
}
},
"responses": {
"200": {
"body": {
"location": "East US",
"name": "samplebotname",
"type": "Microsoft.HealthBot/healthBots",
"id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.HealthBot/healthBots/samplebotname",
"sku": {
"name": "F0"
},
"identity": {
"userAssignedIdentities": {
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi": {},
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi2": {}
},
"principalId": "principalId",
"tenantId": "tenantId",
"type": "SystemAssigned, UserAssigned"
},
"properties": {
"botManagementPortalLink": "https://us.healthbot.microsoft.com/account/contoso"
},
"systemData": {
"createdBy": "jack@outlook.com",
"createdByType": "User",
"createdAt": "2020-05-05T17:18:19.1234567Z",
"lastModifiedBy": "ryan@outlook.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-05-06T17:18:19.1234567Z"
}
}
},
"201": {
"body": {
"location": "East US",
"name": "samplebotname",
"type": "Microsoft.HealthBot/healthBots",
"id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.HealthBot/healthBots/samplebotname",
"sku": {
"name": "F0"
},
"properties": {
"botManagementPortalLink": "https://us.healthbot.microsoft.com/account/contoso"
},
"systemData": {
"createdBy": "jack@outlook.com",
"createdByType": "User",
"createdAt": "2020-05-05T17:18:19.1234567Z",
"lastModifiedBy": "ryan@outlook.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-05-06T17:18:19.1234567Z"
}
}
}
}
}
Loading

0 comments on commit 10873ac

Please sign in to comment.