locked
Publisher: Microsoft.Compute.TestSar was not found. RRS feed

  • Question

  • Hey guys,

    Since a couple of days I receive an error message when using this command:

    az vm image list -f "Windows-10" --all -otable

    The error is this:
    Publisher: Microsoft.Compute.TestSar was not found.

    This is quite annoying because there's no actual Windows 10 client image in the offline images list (simply remove --all and you'll get the offline list). Does anyone had this issue and was able to resolve it?

    Tuesday, January 28, 2020 11:53 AM

Answers

  • Hello Florian,

    Thanks for the response! Glad you could get it to work.

    From what I see in the debug logs you posted, the location seems to be defaulting to northeurope when running from Azure Cloud Shell (vs probably a different location while running from your client).

    I am consistently able to reproduce this error by passing northeurope as the --location (optional parameter) with the command regardless of where I run it from. I see that other locations like uksouth and centralindia work.

    az vm image list -f "Windows-10" --all -otable --verbose --location uksouth


    Feel free to try other locations as you see fit. Meanwhile, I shall reach out to our internal Teams to investigate this further and get back as I gather more details around the root cause.

    Thanks for bringing this to our attention!

    Thursday, January 30, 2020 10:23 AM
  • Hello Florian,

    I've discussed this issue with our internal Team and have also logged relevant information from here to this similar open GitHub issue.

    Request you to follow the linked GitHub for any updates regarding additional workarounds or resolution.

    Hope this helps!

    Let me know if there is anything else related to this thread that you need assistance with, else please feel free to mark and close this out if any of the above responses have been of help! Thanks again for reaching out!

    Thursday, January 30, 2020 5:38 PM

All replies

  • Hello Florian,

    Thanks for reaching out!

    In order to begin troubleshooting the issue, could you please let me know what version of Azure CLI you've been using to execute the aforementioned command, and where you executed it?

    I tried running the same command on WSL (having Azure CLI version 2.0.65) and could see the results populate without any errors, albeit it took ~170 seconds on an average to execute. The same on Azure Cloud Shell (having Azure CLI version 2.0.80) took ~78 seconds and yet executed without any errors.

    I suggest you try the following:

    • Upgrade your Azure CLI version.
    • Try running the same on Azure Cloud Shell for the best results.
    • Pass --verbose or --debug parameters additionally to check what's happening in the request pipeline.

    Please give these options a try and let me know how it goes! Feel free to revert in case of questions.





    Wednesday, January 29, 2020 5:20 PM
  • Hi Bhargavi,

    I only ran the command in Azure Cloud Shell (via the Azure Portal) and it gave the mentioned error message.
    This morning I passed the verbose and debug parameters in addition. Here's the result for --verbose:

    az vm image list -f "Windows-10" --all -otable --verbose
    Configured default 'northeurope' for arg image_location
    Publisher: Microsoft.Compute.TestSar was not found.
    command ran in 18.805 seconds.

    And here for --debug (shortened due to a maximum character count of 60.000):

    urllib3.connectionpool : Starting new HTTP connection (1): localhost:50342
    msrestazure.azure_active_directory : MSI: Retrieving a token from http://localhost:50342/oauth2/token, with payload {'resource': 'https://management.core.windows.net/'}
    msrest.http_logger : Request URL: 'https://management.azure.com/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Compute/locations/northeurope/publishers/zscaler/artifacttypes/vmimage/offers?api-version=2019-07-01'
    msrest.http_logger : Request method: 'GET'
    msrest.http_logger : Request headers:
    msrest.http_logger :     'Accept': 'application/json'
    msrest.http_logger :     'accept-language': 'en-US'
    msrest.http_logger :     'User-Agent': 'python/3.6.5 (Linux-4.15.0-1066-azure-x86_64-with-debian-stretch-sid) msrest/0.6.9 cloud-shell/1.0 msrest_azure/0.6.2 azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 cloud-shell/1.0'
    msrest.http_logger : Request body:
    msrest.http_logger : None
    msrest.universal_http : Configuring redirects: allow=True, max=30
    msrest.universal_http : Configuring request: timeout=100, verify=True, cert=None
    msrest.universal_http : Configuring proxies: ''
    msrest.universal_http : Evaluate proxies against ENV settings: True
    urllib3.connectionpool : http://localhost:50342 "POST /oauth2/token HTTP/1.1" 200 1857
    msrestazure.azure_active_directory : MSI: Retrieving a token from http://localhost:50342/oauth2/token, with payload {'resource': 'https://management.core.windows.net/'}
    msrest.http_logger : Request URL: 'https://management.azure.com/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Compute/locations/northeurope/publishers/MicrosoftWindowsDesktop/artifacttypes/vmimage/offers/windows-10-ppe/skus/rs5-pro/versions?api-version=2019-07-01'
    msrest.http_logger : Request method: 'GET'
    msrest.http_logger : Request headers:
    msrest.http_logger :     'Accept': 'application/json'
    msrest.http_logger :     'accept-language': 'en-US'
    msrest.http_logger :     'User-Agent': 'python/3.6.5 (Linux-4.15.0-1066-azure-x86_64-with-debian-stretch-sid) msrest/0.6.9 cloud-shell/1.0 msrest_azure/0.6.2 azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 cloud-shell/1.0'
    msrest.http_logger : Request body:
    msrest.http_logger : None
    msrest.universal_http : Configuring redirects: allow=True, max=30
    msrest.universal_http : Configuring request: timeout=100, verify=True, cert=None
    msrest.universal_http : Configuring proxies: ''
    msrest.universal_http : Evaluate proxies against ENV settings: True
    urllib3.connectionpool : https://management.azure.com:443 "GET /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Compute/locations/northeurope/publishers/zoomdata/artifacttypes/vmimage/offers?api-version=2019-07-01HTTP/1.1" 200 None
    msrest.http_logger : Response status: 200
    msrest.http_logger : Response headers:
    msrest.http_logger :     'Cache-Control': 'no-cache'
    msrest.http_logger :     'Pragma': 'no-cache'
    msrest.http_logger :     'Transfer-Encoding': 'chunked'
    msrest.http_logger :     'Content-Type': 'application/json; charset=utf-8'
    msrest.http_logger :     'Content-Encoding': 'gzip'
    msrest.http_logger :     'Expires': '-1'
    msrest.http_logger :     'Vary': 'Accept-Encoding'
    msrest.http_logger :     'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
    msrest.http_logger :     'x-ms-served-by': 'a48d5f97-9950-412d-8475-f8e4141aaa81_132025206424168482'
    msrest.http_logger :     'x-ms-request-id': '9deef210-3b4f-4b5d-837e-534711813566'
    msrest.http_logger :     'Server': 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0'
    msrest.http_logger :     'x-ms-ratelimit-remaining-subscription-reads': '11461'
    msrest.http_logger :     'x-ms-correlation-request-id': '3e7b3daa-5dea-41b0-ae2e-260e6ded4fdb'
    msrest.http_logger :     'x-ms-routing-request-id': 'WESTEUROPE:20200130T070528Z:3e7b3daa-5dea-41b0-ae2e-260e6ded4fdb'
    msrest.http_logger :     'X-Content-Type-Options': 'nosniff'
    msrest.http_logger :     'Date': 'Thu, 30 Jan 2020 07:05:27 GMT'
    msrest.http_logger : Response content:
    msrest.http_logger : [
      {
        "location": "northeurope",
        "name": "zoomdata-server",
        "id": "/Subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.Compute/Locations/northeurope/Publishers/zoomdata/ArtifactTypes/VMImage/Offers/zoomdata-server"
      }
    ]
    urllib3.connectionpool : https://management.azure.com:443 "GET /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Compute/locations/northeurope/publishers/zscaler/artifacttypes/vmimage/offers?api-version=2019-07-01 HTTP/1.1" 200 None
    msrest.http_logger : Response status: 200
    msrest.http_logger : Response headers:
    msrest.http_logger :     'Cache-Control': 'no-cache'
    msrest.http_logger :     'Pragma': 'no-cache'
    msrest.http_logger :     'Transfer-Encoding': 'chunked'
    msrest.http_logger :     'Content-Type': 'application/json; charset=utf-8'
    msrest.http_logger :     'Content-Encoding': 'gzip'
    msrest.http_logger :     'Expires': '-1'
    msrest.http_logger :     'Vary': 'Accept-Encoding'
    msrest.http_logger :     'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
    msrest.http_logger :     'x-ms-served-by': '11c05834-ad02-43d6-820d-a8856aa3923b_132226153077314515'
    msrest.http_logger :     'x-ms-request-id': '723c3130-74cc-482f-b7b3-c4825e8ca85a'
    msrest.http_logger :     'Server': 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0'
    msrest.http_logger :     'x-ms-ratelimit-remaining-subscription-reads': '11733'
    msrest.http_logger :     'x-ms-correlation-request-id': '6defed9b-2edc-4fd1-bc91-4b64800d4a21'
    msrest.http_logger :     'x-ms-routing-request-id': 'WESTEUROPE:20200130T070528Z:6defed9b-2edc-4fd1-bc91-4b64800d4a21'
    msrest.http_logger :     'X-Content-Type-Options': 'nosniff'
    msrest.http_logger :     'Date': 'Thu, 30 Jan 2020 07:05:27 GMT'
    msrest.http_logger : Response content:
    msrest.http_logger : [
      {
        "location": "northeurope",
        "name": "zscaler-private-access",
        "id": "/Subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.Compute/Locations/northeurope/Publishers/zscaler/ArtifactTypes/VMImage/Offers/zscaler-private-access"
      }
    ]
    urllib3.connectionpool : https://management.azure.com:443 "GET /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Compute/locations/northeurope/publishers/MicrosoftWindowsDesktop/artifacttypes/vmimage/offers/windows-10-ppe/skus/rs5-pro/versions?api-version=2019-07-01 HTTP/1.1" 200 None
    msrest.http_logger : Response status: 200
    msrest.http_logger : Response headers:
    msrest.http_logger :     'Cache-Control': 'no-cache'
    msrest.http_logger :     'Pragma': 'no-cache'
    msrest.http_logger :     'Transfer-Encoding': 'chunked'
    msrest.http_logger :     'Content-Type': 'application/json; charset=utf-8'
    msrest.http_logger :     'Content-Encoding': 'gzip'
    msrest.http_logger :     'Expires': '-1'
    msrest.http_logger :     'Vary': 'Accept-Encoding'
    msrest.http_logger :     'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
    msrest.http_logger :     'x-ms-served-by': '0dd6d42f-4571-4310-a86b-4c8d74c6852e_132182679768304566'
    msrest.http_logger :     'x-ms-request-id': 'e7de85b8-7429-46e1-95d8-8b686c9592a2'
    msrest.http_logger :     'Server': 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0'
    msrest.http_logger :     'x-ms-ratelimit-remaining-subscription-reads': '11455'
    msrest.http_logger :     'x-ms-correlation-request-id': '5365f953-9156-46ba-95c0-1c23c4fe2add'
    msrest.http_logger :     'x-ms-routing-request-id': 'WESTEUROPE:20200130T070528Z:5365f953-9156-46ba-95c0-1c23c4fe2add'
    msrest.http_logger :     'X-Content-Type-Options': 'nosniff'
    msrest.http_logger :     'Date': 'Thu, 30 Jan 2020 07:05:28 GMT'
    msrest.http_logger : Response content:
    msrest.http_logger : []
    cli.azure.cli.core.util : Publisher: Microsoft.Compute.TestSar was not found.
    Publisher: Microsoft.Compute.TestSar was not found.
    az_command_data_logger : exit code: 1
    telemetry.save : Save telemetry record of length 2437 in cache
    telemetry.check : Negative: The /home/florian/.azure/telemetry.txt was modified at 2020-01-30 07:03:40.145167, which in less than 600.000000 s
    command ran in 21.943 seconds.

    So far everything ran in Cloud Shell. I recently followed your hint with the local installation of Azure CLI (I didn't had it installed on my client yet) and it worked fine for me. There it ran in about 70 seconds with --verbose. With attached --debug it took about 82 seconds, also fine.

    I'm still curious why the Azure Cloud Shell didn't work so far...


    Thursday, January 30, 2020 7:22 AM
  • Hello Florian,

    Thanks for the response! Glad you could get it to work.

    From what I see in the debug logs you posted, the location seems to be defaulting to northeurope when running from Azure Cloud Shell (vs probably a different location while running from your client).

    I am consistently able to reproduce this error by passing northeurope as the --location (optional parameter) with the command regardless of where I run it from. I see that other locations like uksouth and centralindia work.

    az vm image list -f "Windows-10" --all -otable --verbose --location uksouth


    Feel free to try other locations as you see fit. Meanwhile, I shall reach out to our internal Teams to investigate this further and get back as I gather more details around the root cause.

    Thanks for bringing this to our attention!

    Thursday, January 30, 2020 10:23 AM
  • Hello Florian,

    I've discussed this issue with our internal Team and have also logged relevant information from here to this similar open GitHub issue.

    Request you to follow the linked GitHub for any updates regarding additional workarounds or resolution.

    Hope this helps!

    Let me know if there is anything else related to this thread that you need assistance with, else please feel free to mark and close this out if any of the above responses have been of help! Thanks again for reaching out!

    Thursday, January 30, 2020 5:38 PM